Browse Source

set remarks optional for savecompshistory api

master
Hariprasath S 1 week ago
parent
commit
508a8adbc3
  1. 32
      .classpath
  2. 1
      .gitignore
  3. 23
      .project
  4. 4
      .settings/org.eclipse.core.resources.prefs
  5. 9
      .settings/org.eclipse.jdt.core.prefs
  6. 4
      .settings/org.eclipse.m2e.core.prefs
  7. 7
      src/main/java/in/gov/secureapi/config/DataSourceConfig.java
  8. 2
      src/main/java/in/gov/secureapi/controller/DBFOT_controller.java
  9. 4
      src/main/java/in/gov/secureapi/service/DBFOT_service.java
  10. 2
      src/main/resources/application.properties

32
.classpath

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

1
.gitignore

@ -0,0 +1 @@
/target/

23
.project

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>secure-api</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>

4
.settings/org.eclipse.core.resources.prefs

@ -0,0 +1,4 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding/<project>=UTF-8

9
.settings/org.eclipse.jdt.core.prefs

@ -0,0 +1,9 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.methodParameters=generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=17

4
.settings/org.eclipse.m2e.core.prefs

@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

7
src/main/java/in/gov/secureapi/config/DataSourceConfig.java

@ -20,13 +20,12 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableTransactionManagement
public class DataSourceConfig {
// private static String host = "localhost:3306";
// private static String dbpassword = "root";
// private static String host = "localhost:3306";
// private static String dbpassword = "root";
// private static String dbpassword = "gccroot";
// AWS
private static String host =
"gcc-facial-db-instance-1.cf48eqcciziq.ap-south-1.rds.amazonaws.com:3306";
private static String host ="gcc-facial-db-instance-1.cf48eqcciziq.ap-south-1.rds.amazonaws.com:3306";
private static String dbpassword = "gcc-facial-password";
////////////////////////////// (For GCC APP) ////////////////////////

2
src/main/java/in/gov/secureapi/controller/DBFOT_controller.java

@ -50,7 +50,7 @@ public class DBFOT_controller {
@RequestParam(value = "complaint_raised_by", required = true) String complaint_raised_by,
@RequestParam(value = "complaint_updated_on", required = true) String complaint_updated_on,
@RequestParam(value = "complaint_updated_by", required = true) String complaint_updated_by,
@RequestParam(value = "remarks", required = true) String remarks,
@RequestParam(value = "remarks", required = false) String remarks,
@RequestParam(value = "imgfile", required = false) MultipartFile imgfile,
@RequestParam(value = "cby", required = true) String cby
)

4
src/main/java/in/gov/secureapi/service/DBFOT_service.java

@ -233,6 +233,10 @@ public class DBFOT_service {
Map<String, Object> response = new HashMap<>();
if(remarks.isEmpty()) {
remarks=null;
}
try {
String checkSql =

2
src/main/resources/application.properties

@ -1,4 +1,4 @@
# spring.profiles.active=local
#spring.profiles.active=local
spring.profiles.active=production
spring.application.name=

Loading…
Cancel
Save