Browse Source

shelter modified the resuce service for police name parameter

master
Dizho 6 days ago
parent
commit
22bda5e19e
  1. 4
      src/main/java/in/gov/chennaicorporation/mobileservice/configuration/DataSourceConfig.java
  2. 7
      src/main/java/in/gov/chennaicorporation/mobileservice/gccShelter/Service/ShelterResucueService.java

4
src/main/java/in/gov/chennaicorporation/mobileservice/configuration/DataSourceConfig.java

@ -20,8 +20,8 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableTransactionManagement @EnableTransactionManagement
public class DataSourceConfig { 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"; // private static String dbpassword = "gccroot";
// AWS // AWS

7
src/main/java/in/gov/chennaicorporation/mobileservice/gccShelter/Service/ShelterResucueService.java

@ -357,9 +357,11 @@ public class ShelterResucueService {
String resuceDesignation = params.get("resuce_designation"); String resuceDesignation = params.get("resuce_designation");
String hospitalName = params.get("hospital_name"); String hospitalName = params.get("hospital_name");
String policeStationName = params.get("police_station_name");
System.out.println(" resuceDesignation: " + resuceDesignation); System.out.println(" resuceDesignation: " + resuceDesignation);
System.out.println(" hospitalName: " + hospitalName); System.out.println(" hospitalName: " + hospitalName);
System.out.println(" policeStationName: " + policeStationName);
// String address = params.get("address"); ) // String address = params.get("address"); )
// System.out.println(" surveyId: " + surveyId); // System.out.println(" surveyId: " + surveyId);
@ -434,8 +436,8 @@ public class ShelterResucueService {
String logindetailsSql = "INSERT INTO surveyor_location_resuce_details " + String logindetailsSql = "INSERT INTO surveyor_location_resuce_details " +
"(loginId, zone, ward, latitude, longitude, shelter_id, " + "(loginId, zone, ward, latitude, longitude, shelter_id, " +
"resuce_designation, hospital_name, is_active, is_delete, cdate) " +
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, 1, 0, NOW())";
"resuce_designation, hospital_name, police_station_name, is_active, is_delete, cdate) " +
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, 1, 0, NOW())";
org.springframework.jdbc.support.KeyHolder keyHolder = new org.springframework.jdbc.support.GeneratedKeyHolder(); org.springframework.jdbc.support.KeyHolder keyHolder = new org.springframework.jdbc.support.GeneratedKeyHolder();
@ -459,6 +461,7 @@ public class ShelterResucueService {
ps.setString(7, resuceDesignation); ps.setString(7, resuceDesignation);
ps.setString(8, hospitalName); ps.setString(8, hospitalName);
ps.setString(9, policeStationName);
return ps; return ps;
}, },
keyHolder); keyHolder);

Loading…
Cancel
Save