|
|
@ -667,7 +667,7 @@ public class NewEntryService { |
|
|
int rowsInserted = jdbcTemplate.update(query, empNo, empName, deptName, designation, typeOfRetirement,retirementClass ,retirementDate , ReasonofPension,dateToAudit,pendingDuration,reasonofPending,dp,remarks,filecategory,filestatus,fileentrytype,deptId,fc_name,otherReason,temp_id); |
|
|
int rowsInserted = jdbcTemplate.update(query, empNo, empName, deptName, designation, typeOfRetirement,retirementClass ,retirementDate , ReasonofPension,dateToAudit,pendingDuration,reasonofPending,dp,remarks,filecategory,filestatus,fileentrytype,deptId,fc_name,otherReason,temp_id); |
|
|
|
|
|
|
|
|
String query1 = "INSERT INTO pensioner_details_history (emp_no, emp_name, dept_name, designation,type_of_retirement,retirement_class, retirement_date,reason_for_provisional_pension ,file_moved_date, remarks,pending_duration,reason_for_pending,dp ,file_category,file_status,file_entry_type,file_moved_by,dept_id,file_category_name,others_provisional_pension,temp_id) VALUES (?,?,?, ?, ?, ?, ?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?)"; |
|
|
String query1 = "INSERT INTO pensioner_details_history (emp_no, emp_name, dept_name, designation,type_of_retirement,retirement_class, retirement_date,reason_for_provisional_pension ,file_moved_date, remarks,pending_duration,reason_for_pending,dp ,file_category,file_status,file_entry_type,file_moved_by,dept_id,file_category_name,others_provisional_pension,temp_id) VALUES (?,?,?, ?, ?, ?, ?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?)"; |
|
|
int rowsInsertedHistory = jdbcTemplate.update(query1, empNo, empName, deptName, designation,typeOfRetirement,retirementClass,retirementDate ,ReasonofPension,dateToAudit,pendingDuration,reasonofPending,dp,remarks,filecategory,filestatus,fileentrytype,filemovedby,deptId,fc_name,otherReason,temp_id); |
|
|
|
|
|
|
|
|
int rowsInsertedHistory = jdbcTemplate.update(query1, empNo, empName, deptName, designation,typeOfRetirement,retirementClass,retirementDate ,ReasonofPension,dateToAudit,remarks,pendingDuration,reasonofPending,dp,filecategory,filestatus,fileentrytype,filemovedby,deptId,fc_name,otherReason,temp_id); |
|
|
|
|
|
|
|
|
String query2 = "INSERT INTO file_movement_history (emp_no,file_moved_date,file_status,file_moved_by,remarks,temp_id) VALUES (?, ?, ?, ?, ?,?)"; |
|
|
String query2 = "INSERT INTO file_movement_history (emp_no,file_moved_date,file_status,file_moved_by,remarks,temp_id) VALUES (?, ?, ?, ?, ?,?)"; |
|
|
int rowsInsertedFileMovement = jdbcTemplate.update(query2, empNo,dateToAudit,filestatus,filemovedby,remarks,temp_id); |
|
|
int rowsInsertedFileMovement = jdbcTemplate.update(query2, empNo,dateToAudit,filestatus,filemovedby,remarks,temp_id); |
|
|
@ -695,6 +695,7 @@ public class NewEntryService { |
|
|
String fileMovedBy = requestData.get("fileMovedBy") != null ? requestData.get("fileMovedBy").toString() : null; |
|
|
String fileMovedBy = requestData.get("fileMovedBy") != null ? requestData.get("fileMovedBy").toString() : null; |
|
|
String remarks = requestData.get("remarks") != null ? requestData.get("remarks").toString() : null; |
|
|
String remarks = requestData.get("remarks") != null ? requestData.get("remarks").toString() : null; |
|
|
String retirementType = requestData.get("retirementType") != null ? requestData.get("retirementType").toString() : null; |
|
|
String retirementType = requestData.get("retirementType") != null ? requestData.get("retirementType").toString() : null; |
|
|
|
|
|
String retirementdate = requestData.get("retirementdate") !=null ? requestData.get("retirementdate").toString() : null; |
|
|
|
|
|
|
|
|
String uac = (String) requestData.get("uac"); |
|
|
String uac = (String) requestData.get("uac"); |
|
|
String uacDate = "yes".equals(uac) && requestData.get("uacDate") != null ? requestData.get("uacDate").toString() : null; |
|
|
String uacDate = "yes".equals(uac) && requestData.get("uacDate") != null ? requestData.get("uacDate").toString() : null; |
|
|
@ -734,23 +735,23 @@ public class NewEntryService { |
|
|
|
|
|
|
|
|
// Insert into cps_pensioner_details |
|
|
// Insert into cps_pensioner_details |
|
|
String queryDetails = "INSERT INTO cps_pensioner_details " + |
|
|
String queryDetails = "INSERT INTO cps_pensioner_details " + |
|
|
"(emp_no, emp_name, dept_name, designation, file_category, retirement_class, type_of_retirement, uac, uac_date, " + |
|
|
|
|
|
|
|
|
"(emp_no, emp_name, dept_name, designation, file_category, retirement_class, retirement_date,type_of_retirement, uac, uac_date, " + |
|
|
"pending_duration,reason_for_pending ,cps, cps_amount, el_or_lpa, el_or_lpa_amount, spfgs, spfgs_amount, remarks, " + |
|
|
"pending_duration,reason_for_pending ,cps, cps_amount, el_or_lpa, el_or_lpa_amount, spfgs, spfgs_amount, remarks, " + |
|
|
"file_status, file_entry_type, dept_id, file_category_name,temp_id) " + |
|
|
"file_status, file_entry_type, dept_id, file_category_name,temp_id) " + |
|
|
"VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?)"; |
|
|
|
|
|
|
|
|
"VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?,?)"; |
|
|
int rowsInsertedDetails = jdbcTemplate.update(queryDetails, |
|
|
int rowsInsertedDetails = jdbcTemplate.update(queryDetails, |
|
|
empNo, empName, deptName, designation, filecategory, classes, retirementType, uac, uacDate, |
|
|
|
|
|
|
|
|
empNo, empName, deptName, designation, filecategory, classes, retirementdate,retirementType, uac, uacDate, |
|
|
pendingDuration,reasonPending ,cps, cpsAmount, elOrLpa, elOrLpaAmount, spfgs, spfgsAmount, remarks, |
|
|
pendingDuration,reasonPending ,cps, cpsAmount, elOrLpa, elOrLpaAmount, spfgs, spfgsAmount, remarks, |
|
|
fileStatus, fileEntryType, deptId, fileCategoryName,temp_id); |
|
|
fileStatus, fileEntryType, deptId, fileCategoryName,temp_id); |
|
|
|
|
|
|
|
|
// Insert into cps_pensioner_details_history |
|
|
// Insert into cps_pensioner_details_history |
|
|
String queryHistory = "INSERT INTO cps_pensioner_details_history " + |
|
|
String queryHistory = "INSERT INTO cps_pensioner_details_history " + |
|
|
"(emp_no, emp_name, dept_name, designation, file_category, retirement_class, type_of_retirement, uac, uac_date, " + |
|
|
|
|
|
|
|
|
"(emp_no, emp_name, dept_name, designation, file_category, retirement_class, retirement_date,type_of_retirement, uac, uac_date, " + |
|
|
"pending_duration,reason_for_pending ,cps, cps_amount, el_or_lpa, el_or_lpa_amount, spfgs, spfgs_amount, remarks, " + |
|
|
"pending_duration,reason_for_pending ,cps, cps_amount, el_or_lpa, el_or_lpa_amount, spfgs, spfgs_amount, remarks, " + |
|
|
"file_status, file_entry_type, file_moved_by, dept_id, file_category_name,temp_id) " + |
|
|
"file_status, file_entry_type, file_moved_by, dept_id, file_category_name,temp_id) " + |
|
|
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?,?)"; |
|
|
|
|
|
|
|
|
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?,?,?)"; |
|
|
int rowsInsertedHistory = jdbcTemplate.update(queryHistory, |
|
|
int rowsInsertedHistory = jdbcTemplate.update(queryHistory, |
|
|
empNo, empName, deptName, designation, filecategory, classes, retirementType, uac, uacDate, |
|
|
|
|
|
|
|
|
empNo, empName, deptName, designation, filecategory, classes, retirementdate,retirementType, uac, uacDate, |
|
|
pendingDuration, reasonPending,cps, cpsAmount, elOrLpa, elOrLpaAmount, spfgs, spfgsAmount, remarks, |
|
|
pendingDuration, reasonPending,cps, cpsAmount, elOrLpa, elOrLpaAmount, spfgs, spfgsAmount, remarks, |
|
|
fileStatus, fileEntryType, fileMovedBy, deptId, fileCategoryName,temp_id); |
|
|
fileStatus, fileEntryType, fileMovedBy, deptId, fileCategoryName,temp_id); |
|
|
|
|
|
|
|
|
|