|
|
|
@ -357,9 +357,11 @@ public class ShelterResucueService { |
|
|
|
|
|
|
|
String resuceDesignation = params.get("resuce_designation"); |
|
|
|
String hospitalName = params.get("hospital_name"); |
|
|
|
String policeStationName = params.get("police_station_name"); |
|
|
|
|
|
|
|
System.out.println(" resuceDesignation: " + resuceDesignation); |
|
|
|
System.out.println(" hospitalName: " + hospitalName); |
|
|
|
System.out.println(" policeStationName: " + policeStationName); |
|
|
|
|
|
|
|
// String address = params.get("address"); ) |
|
|
|
// System.out.println(" surveyId: " + surveyId); |
|
|
|
@ -434,8 +436,8 @@ public class ShelterResucueService { |
|
|
|
|
|
|
|
String logindetailsSql = "INSERT INTO surveyor_location_resuce_details " + |
|
|
|
"(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(); |
|
|
|
|
|
|
|
@ -459,6 +461,7 @@ public class ShelterResucueService { |
|
|
|
|
|
|
|
ps.setString(7, resuceDesignation); |
|
|
|
ps.setString(8, hospitalName); |
|
|
|
ps.setString(9, policeStationName); |
|
|
|
return ps; |
|
|
|
}, |
|
|
|
keyHolder); |
|
|
|
|