|
|
@ -36,7 +36,6 @@ import jakarta.servlet.http.HttpSession; |
|
|
@RequestMapping("/crs/api") |
|
|
@RequestMapping("/crs/api") |
|
|
public class ApiController { |
|
|
public class ApiController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private JdbcTemplate jdbcTemplate; |
|
|
private JdbcTemplate jdbcTemplate; |
|
|
|
|
|
|
|
|
@ -46,11 +45,9 @@ public class ApiController { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private BirthAndDeathDetailsService birthAndDeathDetailsService; |
|
|
private BirthAndDeathDetailsService birthAndDeathDetailsService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final RestTemplate restTemplate = new RestTemplate(); |
|
|
private final RestTemplate restTemplate = new RestTemplate(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*///////////////// otp configuration /////////////////////*/ |
|
|
|
|
|
|
|
|
/* ///////////////// otp configuration ///////////////////// */ |
|
|
|
|
|
|
|
|
@GetMapping(value = "/sendOTP") |
|
|
@GetMapping(value = "/sendOTP") |
|
|
public String sendOtp(HttpServletRequest request, @RequestParam String mobile) { |
|
|
public String sendOtp(HttpServletRequest request, @RequestParam String mobile) { |
|
|
@ -60,42 +57,48 @@ public class ApiController { |
|
|
|
|
|
|
|
|
Map<String, Object> response = new HashMap<>(); |
|
|
Map<String, Object> response = new HashMap<>(); |
|
|
|
|
|
|
|
|
String MobileNo=mobile; |
|
|
|
|
|
System.out.print("\n MobileNo---:"+mobile); |
|
|
|
|
|
|
|
|
String MobileNo = mobile; |
|
|
|
|
|
System.out.print("\n MobileNo---:" + mobile); |
|
|
Random rand = new Random(); |
|
|
Random rand = new Random(); |
|
|
int otp = rand.nextInt(90000) + 10000; |
|
|
int otp = rand.nextInt(90000) + 10000; |
|
|
|
|
|
|
|
|
//int otp= 22222; |
|
|
|
|
|
System.out.print("\n otp---:"+otp); |
|
|
|
|
|
|
|
|
// int otp= 22222; |
|
|
|
|
|
System.out.print("\n otp---:" + otp); |
|
|
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("dd-MMM-yyyy%20HH:mm"); |
|
|
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("dd-MMM-yyyy%20HH:mm"); |
|
|
LocalDateTime now = LocalDateTime.now(); |
|
|
LocalDateTime now = LocalDateTime.now(); |
|
|
System.out.println(dtf.format(now)); |
|
|
System.out.println(dtf.format(now)); |
|
|
//String generatedToken = "Welcome to GCC! Your OTP for C%26D waste collectors Registration process is "+otp; |
|
|
|
|
|
|
|
|
// String generatedToken = "Welcome to GCC! Your OTP for C%26D waste collectors |
|
|
|
|
|
// Registration process is "+otp; |
|
|
|
|
|
|
|
|
//String generatedToken = "Welcome to GCC "+otp+" is your OTP for gcc QR System"; |
|
|
|
|
|
|
|
|
// String generatedToken = "Welcome to GCC "+otp+" is your OTP for gcc QR |
|
|
|
|
|
// System"; |
|
|
|
|
|
|
|
|
String generatedToken = "Welcome to GCC! Your OTP for Birth and Death Certificate login is " + otp; |
|
|
String generatedToken = "Welcome to GCC! Your OTP for Birth and Death Certificate login is " + otp; |
|
|
//String generatedToken = "Welcome to GCC! Your OTP for C and D waste collectors Registration process is " + otp; |
|
|
|
|
|
// String key="qxg4mklD"; |
|
|
|
|
|
String key="pfTEYN6H"; |
|
|
|
|
|
String urlString= appConfig.getGetOtpUrl()+"from=GCCCRP&key="+key+"&sender=GCCCRP&to="+MobileNo+"&body="+generatedToken+"&entityid=1401572690000011081&templateid=1407174687453240990"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//String urlString = "https://tmegov.onex-aura.com/api/sms?from=GCCCRP&key=pfTEYN6H&sender=GCCCRP&to=9360777472&body=Welcome%20to%20GCC!%20Your%20OTP%20for%20C%26D%20waste%20collectors%20Registration%20process%20is%20"+otp+"&entityid=1401572690000011081&templateid=1407172959127552127"; |
|
|
|
|
|
//String urlString= appConfig.getGetOtpUrl()+"from=GCCCRP&key="+key+"&sender=GCCCRP&to="+MobileNo+"&body="+generatedToken+"&entityid=1401572690000011081&templateid=1407168250479102852"; |
|
|
|
|
|
// String urlString=appConfig.getGetOtpUrl()+"user=GCCtrans&authkey=92kOC1RBGBIws&sender=GCCCRP&mobile="+MobileNo+"&text="+generatedToken+"&rpt=1&summary=1&output=json&entityid=1401572690000011081&templateid=1407168250479102852"; |
|
|
|
|
|
System.out.print("\n urlString---: "+urlString); |
|
|
|
|
|
|
|
|
// String generatedToken = "Welcome to GCC! Your OTP for C and D waste |
|
|
|
|
|
// collectors Registration process is " + otp; |
|
|
|
|
|
// String key="qxg4mklD"; |
|
|
|
|
|
String key = "pfTEYN6H"; |
|
|
|
|
|
String urlString = appConfig.getGetOtpUrl() + "from=GCCCRP&key=" + key + "&sender=GCCCRP&to=" + MobileNo |
|
|
|
|
|
+ "&body=" + generatedToken + "&entityid=1401572690000011081&templateid=1407174687453240990"; |
|
|
|
|
|
|
|
|
|
|
|
// String urlString = |
|
|
|
|
|
// "https://tmegov.onex-aura.com/api/sms?from=GCCCRP&key=pfTEYN6H&sender=GCCCRP&to=9360777472&body=Welcome%20to%20GCC!%20Your%20OTP%20for%20C%26D%20waste%20collectors%20Registration%20process%20is%20"+otp+"&entityid=1401572690000011081&templateid=1407172959127552127"; |
|
|
|
|
|
// String urlString= |
|
|
|
|
|
// appConfig.getGetOtpUrl()+"from=GCCCRP&key="+key+"&sender=GCCCRP&to="+MobileNo+"&body="+generatedToken+"&entityid=1401572690000011081&templateid=1407168250479102852"; |
|
|
|
|
|
// String |
|
|
|
|
|
// urlString=appConfig.getGetOtpUrl()+"user=GCCtrans&authkey=92kOC1RBGBIws&sender=GCCCRP&mobile="+MobileNo+"&text="+generatedToken+"&rpt=1&summary=1&output=json&entityid=1401572690000011081&templateid=1407168250479102852"; |
|
|
|
|
|
System.out.print("\n urlString---: " + urlString); |
|
|
String bodyMessage = ""; |
|
|
String bodyMessage = ""; |
|
|
try { |
|
|
try { |
|
|
RestTemplate restTemplate = new RestTemplate(); |
|
|
RestTemplate restTemplate = new RestTemplate(); |
|
|
String Response = restTemplate.getForObject(urlString, String.class); |
|
|
String Response = restTemplate.getForObject(urlString, String.class); |
|
|
bodyMessage=Response; |
|
|
|
|
|
System.out.println("\n bodyMessage"+bodyMessage); |
|
|
|
|
|
|
|
|
bodyMessage = Response; |
|
|
|
|
|
System.out.println("\n bodyMessage" + bodyMessage); |
|
|
|
|
|
|
|
|
System.out.println("OTP sent successfully!"); |
|
|
System.out.println("OTP sent successfully!"); |
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
System.out.print("ERROR---: "+e); |
|
|
|
|
|
|
|
|
System.out.print("ERROR---: " + e); |
|
|
bodyMessage = "Error"; |
|
|
bodyMessage = "Error"; |
|
|
} |
|
|
} |
|
|
HttpSession session = request.getSession(); |
|
|
HttpSession session = request.getSession(); |
|
|
@ -104,11 +107,12 @@ public class ApiController { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/////////////////////verify otp method with session handling///////////////////// |
|
|
|
|
|
|
|
|
///////////////////// verify otp method with session |
|
|
|
|
|
///////////////////// handling///////////////////// |
|
|
|
|
|
|
|
|
@GetMapping(value = "/verifyOTP") |
|
|
@GetMapping(value = "/verifyOTP") |
|
|
public Map<String, String> verifyOtp(HttpServletRequest request, @RequestParam String otp, |
|
|
public Map<String, String> verifyOtp(HttpServletRequest request, @RequestParam String otp, |
|
|
@RequestParam String mobNo,@RequestParam String flag) { |
|
|
|
|
|
|
|
|
@RequestParam String mobNo, @RequestParam String flag) { |
|
|
HttpSession session = request.getSession(); |
|
|
HttpSession session = request.getSession(); |
|
|
Map<String, String> response = new HashMap<>(); |
|
|
Map<String, String> response = new HashMap<>(); |
|
|
Map<String, Object> userDetails; |
|
|
Map<String, Object> userDetails; |
|
|
@ -119,20 +123,21 @@ public class ApiController { |
|
|
|
|
|
|
|
|
if (session_otp != null && session_otp.equals(entered_otp)) { |
|
|
if (session_otp != null && session_otp.equals(entered_otp)) { |
|
|
System.out.println("Entered OTP Correct"); |
|
|
System.out.println("Entered OTP Correct"); |
|
|
if("1".equals(flag)) { |
|
|
|
|
|
|
|
|
if ("1".equals(flag)) { |
|
|
userDetails = birthAndDeathDetailsService.getUserDetails(mobNo); |
|
|
userDetails = birthAndDeathDetailsService.getUserDetails(mobNo); |
|
|
if(userDetails != null) { |
|
|
|
|
|
|
|
|
if (userDetails != null) { |
|
|
session.setAttribute("userId", userDetails.get("user_id")); |
|
|
session.setAttribute("userId", userDetails.get("user_id")); |
|
|
session.setAttribute("userName", userDetails.get("user_name")); |
|
|
session.setAttribute("userName", userDetails.get("user_name")); |
|
|
session.setAttribute("verifiedotp", "success"); |
|
|
session.setAttribute("verifiedotp", "success"); |
|
|
response.put("userName", (String) userDetails.get("user_name")); |
|
|
response.put("userName", (String) userDetails.get("user_name")); |
|
|
} |
|
|
} |
|
|
System.out.println("userId---:" + userDetails.get("user_id")+"\nuserName:"+userDetails.get("user_name")); |
|
|
|
|
|
|
|
|
System.out.println( |
|
|
|
|
|
"userId---:" + userDetails.get("user_id") + "\nuserName:" + userDetails.get("user_name")); |
|
|
} |
|
|
} |
|
|
response.put("status", "Success"); |
|
|
response.put("status", "Success"); |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
//System.out.println("Incorrect OTP. Please enter correct OTP."); |
|
|
|
|
|
|
|
|
// System.out.println("Incorrect OTP. Please enter correct OTP."); |
|
|
session.setAttribute("verifiedotp", "error"); |
|
|
session.setAttribute("verifiedotp", "error"); |
|
|
|
|
|
|
|
|
response.put("status", "Error"); |
|
|
response.put("status", "Error"); |
|
|
@ -151,12 +156,8 @@ public class ApiController { |
|
|
return response; |
|
|
return response; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////birth details getting method/////////////////// |
|
|
|
|
|
// now using in live |
|
|
|
|
|
|
|
|
/////////////////////// birth details getting method/////////////////// |
|
|
|
|
|
// now using in live |
|
|
// @GetMapping("/birth-details") |
|
|
// @GetMapping("/birth-details") |
|
|
// public ResponseEntity<?> fetchBirthCertificateSecurely( |
|
|
// public ResponseEntity<?> fetchBirthCertificateSecurely( |
|
|
// @RequestParam String dob, |
|
|
// @RequestParam String dob, |
|
|
@ -174,11 +175,11 @@ public class ApiController { |
|
|
// } |
|
|
// } |
|
|
|
|
|
|
|
|
// try { |
|
|
// try { |
|
|
// Map<String, Object> result = birthAndDeathDetailsService.fetchBirthCertificate(dob, sex, regno, childname, fathername, mothername); |
|
|
|
|
|
|
|
|
// Map<String, Object> result = |
|
|
|
|
|
// birthAndDeathDetailsService.fetchBirthCertificate(dob, sex, regno, childname, |
|
|
|
|
|
// fathername, mothername); |
|
|
// return ResponseEntity.ok(result); |
|
|
// return ResponseEntity.ok(result); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// } catch (Exception e) { |
|
|
// } catch (Exception e) { |
|
|
|
|
|
|
|
|
// e.printStackTrace(); |
|
|
// e.printStackTrace(); |
|
|
@ -189,11 +190,10 @@ public class ApiController { |
|
|
// } |
|
|
// } |
|
|
// } |
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
// from external api restapiservices |
|
|
|
|
|
|
|
|
// from external api restapiservices |
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/birth-details") |
|
|
|
|
|
public ResponseEntity<?> fetchBirthCertificateSecurely(@RequestBody Map<String, String> params) { |
|
|
|
|
|
|
|
|
@PostMapping("/birth-details") |
|
|
|
|
|
public ResponseEntity<?> fetchBirthCertificateSecurely(@RequestBody Map<String, String> params) { |
|
|
String dob = params.get("dob"); |
|
|
String dob = params.get("dob"); |
|
|
String sex = params.get("sex"); |
|
|
String sex = params.get("sex"); |
|
|
String childname = params.getOrDefault("childname", ""); |
|
|
String childname = params.getOrDefault("childname", ""); |
|
|
@ -207,13 +207,12 @@ public ResponseEntity<?> fetchBirthCertificateSecurely(@RequestBody Map<String, |
|
|
return ResponseEntity.badRequest().body(error); |
|
|
return ResponseEntity.badRequest().body(error); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//System.out.println("fathername " + fathername); |
|
|
|
|
|
//System.out.println("mothername " + mothername); |
|
|
|
|
|
|
|
|
// System.out.println("fathername " + fathername); |
|
|
|
|
|
// System.out.println("mothername " + mothername); |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
Map<String, Object> result = birthAndDeathDetailsService.fetchLocalBirthCertificate( |
|
|
Map<String, Object> result = birthAndDeathDetailsService.fetchLocalBirthCertificate( |
|
|
dob, fathername, mothername, childname, sex |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
dob, fathername, mothername, childname, sex); |
|
|
return ResponseEntity.ok(result); |
|
|
return ResponseEntity.ok(result); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|
@ -238,17 +237,13 @@ public ResponseEntity<?> fetchBirthCertificateSecurely(@RequestBody Map<String, |
|
|
error.put("message", "Something went wrong. Please try again later."); |
|
|
error.put("message", "Something went wrong. Please try again later."); |
|
|
return ResponseEntity.status(500).body(error); |
|
|
return ResponseEntity.status(500).body(error); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// from external api restapiservices death certificate |
|
|
|
|
|
|
|
|
// from external api restapiservices death certificate |
|
|
|
|
|
|
|
|
@PostMapping("/death-details") |
|
|
|
|
|
public ResponseEntity<?> fetchDeathCertificateSecurely(@RequestBody Map<String, String> params) { |
|
|
|
|
|
|
|
|
@PostMapping("/death-details") |
|
|
|
|
|
public ResponseEntity<?> fetchDeathCertificateSecurely(@RequestBody Map<String, String> params) { |
|
|
String dod = params.get("dod"); |
|
|
String dod = params.get("dod"); |
|
|
String sex = params.get("sex"); |
|
|
String sex = params.get("sex"); |
|
|
String personname = params.getOrDefault("personname", ""); |
|
|
String personname = params.getOrDefault("personname", ""); |
|
|
@ -262,19 +257,20 @@ public ResponseEntity<?> fetchDeathCertificateSecurely(@RequestBody Map<String, |
|
|
return ResponseEntity.badRequest().body(error); |
|
|
return ResponseEntity.badRequest().body(error); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//System.out.println("fathername " + fathername); |
|
|
|
|
|
//System.out.println("mothername " + mothername); |
|
|
|
|
|
|
|
|
// System.out.println("fathername " + fathername); |
|
|
|
|
|
// System.out.println("mothername " + mothername); |
|
|
|
|
|
|
|
|
|
|
|
System.out.println("sex: " + sex); |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
Map<String, Object> result = birthAndDeathDetailsService.fetchLocalDeathCertificate( |
|
|
Map<String, Object> result = birthAndDeathDetailsService.fetchLocalDeathCertificate( |
|
|
dod, fathername, mothername, personname, sex |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
dod, fathername, mothername, personname, sex); |
|
|
return ResponseEntity.ok(result); |
|
|
return ResponseEntity.ok(result); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|
Map<String, Object> error = new HashMap<>(); |
|
|
Map<String, Object> error = new HashMap<>(); |
|
|
|
|
|
|
|
|
String message = e.getMessage() != null ? e.getMessage().toLowerCase() : ""; |
|
|
|
|
|
|
|
|
String message = e.getMessage() != null ? e.getMessage().toLowerCase() : ""; |
|
|
|
|
|
|
|
|
if (message.contains("404")) { |
|
|
if (message.contains("404")) { |
|
|
error.put("status", false); |
|
|
error.put("status", false); |
|
|
@ -294,17 +290,9 @@ String message = e.getMessage() != null ? e.getMessage().toLowerCase() : ""; |
|
|
return ResponseEntity.status(500).body(error); |
|
|
return ResponseEntity.status(500).body(error); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
////////////////////////death details getting method/////////////////// |
|
|
|
|
|
|
|
|
//////////////////////// death details getting method/////////////////// |
|
|
|
|
|
|
|
|
@GetMapping("/death-details") |
|
|
@GetMapping("/death-details") |
|
|
public ResponseEntity<?> fetchDeathCertificateSecurely( |
|
|
public ResponseEntity<?> fetchDeathCertificateSecurely( |
|
|
@ -323,7 +311,8 @@ String message = e.getMessage() != null ? e.getMessage().toLowerCase() : ""; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
Map<String, Object> result = birthAndDeathDetailsService.fetchDeathCertificate(dod, sex, regno, personname, fathername, mothername); |
|
|
|
|
|
|
|
|
Map<String, Object> result = birthAndDeathDetailsService.fetchDeathCertificate(dod, sex, regno, personname, |
|
|
|
|
|
fathername, mothername); |
|
|
return ResponseEntity.ok(result); |
|
|
return ResponseEntity.ok(result); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|
@ -334,20 +323,18 @@ String message = e.getMessage() != null ? e.getMessage().toLowerCase() : ""; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/////////////////save new user method///////////////// |
|
|
|
|
|
|
|
|
///////////////// save new user method///////////////// |
|
|
|
|
|
|
|
|
@PostMapping("/saveNewUser") |
|
|
@PostMapping("/saveNewUser") |
|
|
public ResponseEntity<?> saveNewUser (@RequestParam String user_name, @RequestParam(required = false) String user_address, @RequestParam String user_mobile) { |
|
|
|
|
|
|
|
|
public ResponseEntity<?> saveNewUser(@RequestParam String user_name, |
|
|
|
|
|
@RequestParam(required = false) String user_address, @RequestParam String user_mobile) { |
|
|
// Convert name to uppercase before saving |
|
|
// Convert name to uppercase before saving |
|
|
String upperCaseName = user_name.toUpperCase(); |
|
|
String upperCaseName = user_name.toUpperCase(); |
|
|
|
|
|
|
|
|
return birthAndDeathDetailsService.saveNewUser(upperCaseName, user_address, user_mobile); |
|
|
return birthAndDeathDetailsService.saveNewUser(upperCaseName, user_address, user_mobile); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/////////////////check existing or not method//////////// |
|
|
|
|
|
|
|
|
///////////////// check existing or not method//////////// |
|
|
|
|
|
|
|
|
@PostMapping("/checkUser") |
|
|
@PostMapping("/checkUser") |
|
|
public ResponseEntity<Map<String, Object>> checkUser(@RequestParam String mobile) { |
|
|
public ResponseEntity<Map<String, Object>> checkUser(@RequestParam String mobile) { |
|
|
@ -362,23 +349,21 @@ String message = e.getMessage() != null ? e.getMessage().toLowerCase() : ""; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////save certificate logs method/////////////////// |
|
|
|
|
|
|
|
|
/////////////////////// save certificate logs method/////////////////// |
|
|
|
|
|
|
|
|
@PostMapping("/saveCertificateLogs") |
|
|
@PostMapping("/saveCertificateLogs") |
|
|
public ResponseEntity<?> saveCertificateLogs(HttpServletRequest request, @RequestParam String regNo, @RequestParam String eventDate, |
|
|
|
|
|
@RequestParam String Url, @RequestParam String service){ |
|
|
|
|
|
|
|
|
public ResponseEntity<?> saveCertificateLogs(HttpServletRequest request, @RequestParam String regNo, |
|
|
|
|
|
@RequestParam String eventDate, |
|
|
|
|
|
@RequestParam String Url, @RequestParam String service) { |
|
|
HttpSession session = request.getSession(); |
|
|
HttpSession session = request.getSession(); |
|
|
int userid = 0 ; |
|
|
|
|
|
try{ |
|
|
|
|
|
|
|
|
int userid = 0; |
|
|
|
|
|
try { |
|
|
userid = (int) session.getAttribute("userId"); |
|
|
userid = (int) session.getAttribute("userId"); |
|
|
}catch(Exception e){ |
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|
} |
|
|
} |
|
|
return birthAndDeathDetailsService.saveCertificateLogs(regNo, eventDate, Url, service, userid); |
|
|
return birthAndDeathDetailsService.saveCertificateLogs(regNo, eventDate, Url, service, userid); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |