Browse Source

updated files

master
yoganandhank 2 years ago
parent
commit
a06dc49e88
  1. 3
      backend/pensioner/service/CompletedService.java
  2. 3
      backend/pensioner/service/DashboardApiService.java
  3. 9
      backend/pensioner/service/DepartmentForwardService.java
  4. 31
      backend/pensioner/service/DepartmentReceivedService.java
  5. 9
      backend/pensioner/service/DeptAuditService.java
  6. 11
      backend/pensioner/service/DeptPartiallyCompService.java
  7. 3
      backend/pensioner/service/FileClosingService.java
  8. 141
      backend/pensioner/service/GetFileStatusService.java
  9. 84
      backend/pensioner/service/NewEntryService.java
  10. 9
      backend/pensioner/service/PensionAuditService.java
  11. 11
      backend/pensioner/service/PensionPartiallyCompService.java
  12. 15
      backend/pensioner/service/PensionReceivedService.java
  13. 3
      backend/pensioner/service/ReceivedDeptProvisionalService.java
  14. 3
      backend/pensioner/service/ReportApiService.java
  15. 9
      backend/pensioner/service/ReturnFromAuditService.java
  16. 74
      gcc_pensioner_emptyDump/gcc_pensioner_cps_pensioner_details.sql
  17. 74
      gcc_pensioner_emptyDump/gcc_pensioner_cps_pensioner_details_history.sql
  18. 55
      gcc_pensioner_emptyDump/gcc_pensioner_department_master.sql
  19. 54
      gcc_pensioner_emptyDump/gcc_pensioner_designation_master.sql
  20. 54
      gcc_pensioner_emptyDump/gcc_pensioner_file_category_master.sql
  21. 56
      gcc_pensioner_emptyDump/gcc_pensioner_file_movement_history.sql
  22. 54
      gcc_pensioner_emptyDump/gcc_pensioner_file_status_master.sql
  23. 53
      gcc_pensioner_emptyDump/gcc_pensioner_login_details.sql
  24. 62
      gcc_pensioner_emptyDump/gcc_pensioner_pension_benefits.sql
  25. 62
      gcc_pensioner_emptyDump/gcc_pensioner_pension_benefits_history.sql
  26. 81
      gcc_pensioner_emptyDump/gcc_pensioner_pensioner_details.sql
  27. 80
      gcc_pensioner_emptyDump/gcc_pensioner_pensioner_details_history.sql
  28. 54
      gcc_pensioner_emptyDump/gcc_pensioner_reason_for_provisional.sql
  29. 54
      gcc_pensioner_emptyDump/gcc_pensioner_type_of_retriment.sql
  30. 61
      gcc_pensioner_emptyDump/gcc_pensioner_zone_benefits.sql
  31. 61
      gcc_pensioner_emptyDump/gcc_pensioner_zone_benefits_history.sql

3
backend/pensioner/service/CompletedService.java

@ -38,6 +38,9 @@ public class CompletedService {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
@Autowired
public GetFileStatusService getFileStatus;
public List<Map<String, Object>> getCPSList(Integer file_cat,Integer deptId) {
String query = "SELECT * FROM cps_pensioner_details where file_category = ? and dept_id=? and file_status=11 ";

3
backend/pensioner/service/DashboardApiService.java

@ -21,6 +21,9 @@ public class DashboardApiService {
public void setDataSource(@Qualifier("mysqlPensionerDataSource") DataSource dataSource) {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
@Autowired
public GetFileStatusService getFileStatus;
public List<Map<String, Object>> getTempEmpDetails(String tempId) {
System.out.println("service");

9
backend/pensioner/service/DepartmentForwardService.java

@ -38,6 +38,9 @@ public class DepartmentForwardService {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
@Autowired
public GetFileStatusService getFileStatus;
public List<Map<String, Object>> fetchDepatmentForwardEmpfiles(Integer file_cat) {
String query = "SELECT * " +
"FROM pensioner_details " +
@ -58,7 +61,11 @@ public class DepartmentForwardService {
String dept_Id = (String) requestData.get("deptId");
int deptId = Integer.parseInt(dept_Id);
int filestatus = 5;
int filestatus = getFileStatus.getFileStatus5Id();
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
String updateQuery = "UPDATE pensioner_details SET file_status = ?,file_moved_date=?,remarks=?,updated_date= CURRENT_TIMESTAMP WHERE temp_id = ? LIMIT 1";
int rowsUpdated = jdbcTemplate.update(updateQuery,filestatus,dateToAudit, remarks,tempId);

31
backend/pensioner/service/DepartmentReceivedService.java

@ -40,6 +40,9 @@ public class DepartmentReceivedService {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
@Autowired
public GetFileStatusService getFileStatus;
public List<Map<String, Object>> fetchPensionReceivedEmpfiles(Integer file_cat) {
String query = "SELECT * " +
"FROM pensioner_details " +
@ -89,23 +92,28 @@ public class DepartmentReceivedService {
// filestatus = CheckFieldsInDept(tempId) ? 11 : 9; //noted
filestatus = CheckFieldsInDept(tempId) ? (CheckFieldsInPensioner(tempId) ? 11 : 10 ) : 9;
filestatus = CheckFieldsInDept(tempId) ? (CheckFieldsInPensioner(tempId) ? getFileStatus.getFileStatus11Id() : getFileStatus.getFileStatus10Id() ) : getFileStatus.getFileStatus9Id();
file_entry_type="FILE_COMPLETED";
}
else if("no".equalsIgnoreCase(benefit_pension) || "no".equalsIgnoreCase(benefit_dcrg)){
filestatus = 10;
filestatus = getFileStatus.getFileStatus10Id();
file_entry_type="PENSION_PARTIAL";
}
else if(benefit_dcrg==null)
{
filestatus = 9;
filestatus = getFileStatus.getFileStatus9Id();
file_entry_type="DEPARTMENT_PARTIAL";
}
//getFileStatus.getFileStatus2Id();
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
String updateQuery = "UPDATE pensioner_details SET file_entry_type=?,file_status = ?, file_moved_date = ?, remarks = ?, updated_date = CURRENT_TIMESTAMP WHERE temp_id = ? LIMIT 1";
@ -349,7 +357,12 @@ public class DepartmentReceivedService {
String file_pending = (String) requestData.get("file_pending");
int deptId = Integer.parseInt(dept_Id);
int filestatus=8;
int filestatus = getFileStatus.getFileStatus8Id();
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
String file_entry_type="FILE_PENDING";
@ -528,7 +541,11 @@ public class DepartmentReceivedService {
String file_entry_type="FILE_RETURNED";
int deptId = Integer.parseInt(dept_Id);
int filestatus=6;
int filestatus = getFileStatus.getFileStatus6Id();
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
String updateQuery = "UPDATE pensioner_details SET file_status = ?,file_entry_type=?,file_moved_date=?,remarks=?,updated_date= CURRENT_TIMESTAMP WHERE temp_id = ? LIMIT 1";
int rowsUpdated = jdbcTemplate.update(updateQuery,filestatus,file_entry_type,dateToAudit, remarks,tempId);

9
backend/pensioner/service/DeptAuditService.java

@ -40,6 +40,9 @@ public class DeptAuditService {
public void setDataSource(@Qualifier("mysqlPensionerDataSource") DataSource dataSource) {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
@Autowired
public GetFileStatusService getFileStatus;
public List<Map<String, Object>> fetchEmployeeDetailsByTable(Integer deptId,Integer file_cat) {
@ -135,7 +138,11 @@ public class DeptAuditService {
int deptId = Integer.parseInt(dept_Id);
int filestatus = 2;
int filestatus = getFileStatus.getFileStatus2Id();
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
String file_entry_type="AUDIT_RETURNED";
// Update file_status in pensioner_details

11
backend/pensioner/service/DeptPartiallyCompService.java

@ -38,6 +38,9 @@ public class DeptPartiallyCompService {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
@Autowired
public GetFileStatusService getFileStatus;
public List<Map<String, Object>> fetchDepatmentPartialEmpfiles(Integer deptId,Integer file_cat) {
String query = "SELECT * " +
"FROM pensioner_details " +
@ -96,7 +99,7 @@ public class DeptPartiallyCompService {
// int rowsUpdated2 = jdbcTemplate.update(updateQuery2, pension_number, ledger_number, benefit_pension, benefit_pension_amount, benefit_dcrg, benefit_dcrg_amount, benefit_commutation, benefit_commutation_amount, tempId);
// System.out.println("Rows updated in pb: " + rowsUpdated2);
filestatus = CheckFieldsforComplete(tempId) ? 11 : CheckFieldsforDept(tempId) ? 10 : 9;
filestatus = CheckFieldsforComplete(tempId) ? getFileStatus.getFileStatus11Id() : CheckFieldsforDept(tempId) ? getFileStatus.getFileStatus10Id() : getFileStatus.getFileStatus9Id();
System.out.println("filestatus inside service="+filestatus);
if(filestatus==11)
@ -109,6 +112,12 @@ public class DeptPartiallyCompService {
if(filestatus==10) {
file_entry_type="PENSION_PARTIAL";
}
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
String updateQuery = "UPDATE pensioner_details SET file_entry_type=?,file_status = ?, file_moved_date = ?, remarks = ?, updated_date = CURRENT_TIMESTAMP WHERE temp_id = ? LIMIT 1";

3
backend/pensioner/service/FileClosingService.java

@ -37,6 +37,9 @@ public class FileClosingService {
public void setDataSource(@Qualifier("mysqlPensionerDataSource") DataSource dataSource) {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
@Autowired
public GetFileStatusService getFileStatus;
public List<Map<String, Object>> fetchEmployeeByTempId(String tempId) {

141
backend/pensioner/service/GetFileStatusService.java

@ -0,0 +1,141 @@
package in.gov.chennaicorporation.gccoffice.pensioner.service;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
@Service
public class GetFileStatusService {
@Autowired
public JdbcTemplate jdbcTemplate;
@Autowired
public void setDataSource(@Qualifier("mysqlPensionerDataSource") DataSource dataSource) {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
public Integer getFileStatus1Id() {
try {
String query = "SELECT id FROM file_status_master WHERE file_status = 'Sent to Audit' AND isactive = 1 AND isdelete = 0 LIMIT 1";
return jdbcTemplate.queryForObject(query, Integer.class);
} catch (EmptyResultDataAccessException e) {
System.out.println("No matching file_status found, returning default value (0).");
return 0; // Default value in case no record is found
}
}
public Integer getFileStatus2Id() {
try {
String query = "SELECT id FROM file_status_master WHERE file_status = 'Returned From Audit' AND isactive = 1 AND isdelete = 0 LIMIT 1";
return jdbcTemplate.queryForObject(query, Integer.class);
} catch (EmptyResultDataAccessException e) {
System.out.println("No matching file_status found, returning default value (0).");
return 0; // Default value in case no record is found
}
}
public Integer getFileStatus3Id() {
try {
String query = "SELECT id FROM file_status_master WHERE file_status = 'Rectify and Sent to Audit' AND isactive = 1 AND isdelete = 0 LIMIT 1";
return jdbcTemplate.queryForObject(query, Integer.class);
} catch (EmptyResultDataAccessException e) {
System.out.println("No matching file_status found, returning default value (0).");
return 0; // Default value in case no record is found
}
}
public Integer getFileStatus4Id() {
try {
String query = "SELECT id FROM file_status_master WHERE file_status = 'Audit Certified' AND isactive = 1 AND isdelete = 0 LIMIT 1";
return jdbcTemplate.queryForObject(query, Integer.class);
} catch (EmptyResultDataAccessException e) {
System.out.println("No matching file_status found, returning default value (0).");
return 0; // Default value in case no record is found
}
}
public Integer getFileStatus5Id() {
try {
String query = "SELECT id FROM file_status_master WHERE file_status = 'File Forwarded to Department' AND isactive = 1 AND isdelete = 0 LIMIT 1";
return jdbcTemplate.queryForObject(query, Integer.class);
} catch (EmptyResultDataAccessException e) {
System.out.println("No matching file_status found, returning default value (0).");
return 0; // Default value in case no record is found
}
}
public Integer getFileStatus6Id() {
try {
String query = "SELECT id FROM file_status_master WHERE file_status = 'Returned to Department' AND isactive = 1 AND isdelete = 0 LIMIT 1";
return jdbcTemplate.queryForObject(query, Integer.class);
} catch (EmptyResultDataAccessException e) {
System.out.println("No matching file_status found, returning default value (0).");
return 0; // Default value in case no record is found
}
}
public Integer getFileStatus7Id() {
try {
String query = "SELECT id FROM file_status_master WHERE file_status = 'File Forwarded to Pension' AND isactive = 1 AND isdelete = 0 LIMIT 1";
return jdbcTemplate.queryForObject(query, Integer.class);
} catch (EmptyResultDataAccessException e) {
System.out.println("No matching file_status found, returning default value (0).");
return 0; // Default value in case no record is found
}
}
public Integer getFileStatus8Id() {
try {
String query = "SELECT id FROM file_status_master WHERE file_status = 'Pension Pending' AND isactive = 1 AND isdelete = 0 LIMIT 1";
return jdbcTemplate.queryForObject(query, Integer.class);
} catch (EmptyResultDataAccessException e) {
System.out.println("No matching file_status found, returning default value (0).");
return 0; // Default value in case no record is found
}
}
public Integer getFileStatus9Id() {
try {
String query = "SELECT id FROM file_status_master WHERE file_status = 'File in Department to complete pending values' AND isactive = 1 AND isdelete = 0 LIMIT 1";
return jdbcTemplate.queryForObject(query, Integer.class);
} catch (EmptyResultDataAccessException e) {
System.out.println("No matching file_status found, returning default value (0).");
return 0; // Default value in case no record is found
}
}
public Integer getFileStatus10Id() {
try {
String query = "SELECT id FROM file_status_master WHERE file_status = 'File in Pension to complete pending values' AND isactive = 1 AND isdelete = 0 LIMIT 1";
return jdbcTemplate.queryForObject(query, Integer.class);
} catch (EmptyResultDataAccessException e) {
System.out.println("No matching file_status found, returning default value (0).");
return 0; // Default value in case no record is found
}
}
public Integer getFileStatus11Id() {
try {
String query = "SELECT id FROM file_status_master WHERE file_status = 'File Completed' AND isactive = 1 AND isdelete = 0 LIMIT 1";
return jdbcTemplate.queryForObject(query, Integer.class);
} catch (EmptyResultDataAccessException e) {
System.out.println("No matching file_status found, returning default value (0).");
return 0; // Default value in case no record is found
}
}
public Integer getFileStatus12Id() {
try {
String query = "SELECT id FROM file_status_master WHERE file_status = 'Retirement File Closed' AND isactive = 1 AND isdelete = 0 LIMIT 1";
return jdbcTemplate.queryForObject(query, Integer.class);
} catch (EmptyResultDataAccessException e) {
System.out.println("No matching file_status found, returning default value (0).");
return 0; // Default value in case no record is found
}
}
}

84
backend/pensioner/service/NewEntryService.java

@ -51,6 +51,9 @@ public class NewEntryService {
public void setDataSource(@Qualifier("mysqlPensionerDataSource") DataSource dataSource) {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
@Autowired
public GetFileStatusService getFileStatus;
// old retiment list getting method
@ -187,9 +190,6 @@ public class NewEntryService {
return response;
}
public Map<String, Object> fetchEmplyeeDetailsbyCode(String empCode) {
@ -310,9 +310,6 @@ public class NewEntryService {
return LocalDate.MIN; // Fallback for invalid dates
}
}
// private LocalDate parseDate(String date) {
@ -351,7 +348,9 @@ public class NewEntryService {
try {
// Query execution and returning the department name
return jdbcTemplate.queryForObject(query, new Object[]{deptId}, String.class);
//return jdbcTemplate.queryForObject(query, new Object[]{deptId}, String.class);
return jdbcTemplate.queryForObject(query, String.class,deptId);
} catch (Exception e) {
// Handle exception if deptId is not found or query fails
e.printStackTrace();
@ -378,18 +377,29 @@ public class NewEntryService {
String dept_Id = (String) requestData.get("deptId");
String file_category = (String) requestData.get("filecategory");
int deptId = Integer.parseInt(dept_Id);
// Safely parse integer values
int deptId;
int filecategory;
try {
deptId = Integer.parseInt(dept_Id);
filecategory = Integer.parseInt(file_category);
} catch (NumberFormatException e) {
System.out.println("Invalid number format for deptId or filecategory.");
return false;
}
int filestatus = getFileStatus.getFileStatus1Id();
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
int filecategory = Integer.parseInt(file_category);
// Execute a query to fetch the required String based on filecategory
String additionalDataQuery = "SELECT file_name FROM file_category_master WHERE id = ?";
String fc_name = jdbcTemplate.queryForObject(additionalDataQuery,
String.class,
filecategory
);
String fc_name = jdbcTemplate.queryForObject(additionalDataQuery,String.class,filecategory);
System.out.println("fc_name==="+fc_name);
int filestatus = 1;
String fileentrytype ="NEW";
System.out.println("filemovedby====="+filemovedby);
@ -516,11 +526,15 @@ public class NewEntryService {
// Execute a query to fetch the required String based on filecategory
String additionalDataQuery = "SELECT file_name FROM file_category_master WHERE id = ?";
String fc_name = jdbcTemplate.queryForObject(additionalDataQuery, new Object[]{filecategory}, String.class);
String fc_name = jdbcTemplate.queryForObject(additionalDataQuery, String.class,filecategory);
System.out.println("fc_name==="+fc_name);
int filestatus = 1;
int filestatus = getFileStatus.getFileStatus1Id();
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
String fileentrytype ="NEW";
int rowsInserted=0;
@ -573,10 +587,14 @@ public class NewEntryService {
int filecategory = Integer.parseInt(file_category);
// Execute a query to fetch the required String based on filecategory
String additionalDataQuery = "SELECT file_name FROM file_category_master WHERE id = ?";
String fc_name = jdbcTemplate.queryForObject(additionalDataQuery, new Object[]{filecategory}, String.class);
String fc_name = jdbcTemplate.queryForObject(additionalDataQuery, String.class,filecategory);
System.out.println("fc_name==="+fc_name);
int filestatus = 7;
int filestatus = getFileStatus.getFileStatus7Id();
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
String fileentrytype ="NEW";
System.out.println("filemovedby====="+filemovedby);
@ -633,10 +651,14 @@ public class NewEntryService {
int filecategory = Integer.parseInt(file_category);
// Execute a query to fetch the required String based on filecategory
String additionalDataQuery = "SELECT file_name FROM file_category_master WHERE id = ?";
String fc_name = jdbcTemplate.queryForObject(additionalDataQuery, new Object[]{filecategory}, String.class);
String fc_name = jdbcTemplate.queryForObject(additionalDataQuery, String.class,filecategory);
System.out.println("fc_name==="+fc_name);
int filestatus = 7;
int filestatus = getFileStatus.getFileStatus7Id();
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
String fileentrytype ="NEW";
System.out.println("filemovedby====="+filemovedby);
@ -699,12 +721,16 @@ public class NewEntryService {
// Default static values
String file_category = (String) requestData.get("filecategory");
int filecategory = Integer.parseInt(file_category);
int fileStatus = 11;
int fileStatus = getFileStatus.getFileStatus11Id();
if (fileStatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
String fileEntryType = "FILE_COMPLETED";
// Fetch file_category_name dynamically
String fileCategoryQuery = "SELECT file_name FROM file_category_master WHERE id = ?";
String fileCategoryName = jdbcTemplate.queryForObject(fileCategoryQuery, new Object[]{filecategory}, String.class);
String fileCategoryName = jdbcTemplate.queryForObject(fileCategoryQuery, String.class,filecategory);
// Generate the variable (PR + current date + current time)
String currentTimestamp = LocalDateTime.now().format(DateTimeFormatter.ofPattern("ddMMyyHHmmss"));
@ -781,7 +807,11 @@ public class NewEntryService {
String file_category = (String) requestData.get("filecategory");
int filecategory = Integer.parseInt(file_category);
int filestatus = 1;
int filestatus = getFileStatus.getFileStatus1Id();
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
String fileentrytype ="NEW";
int rowsInserted = 0;
@ -816,7 +846,7 @@ public class NewEntryService {
" SELECT emp_no FROM cps_pensioner_details WHERE emp_no = ? AND file_category IN (6) " +
") AS combined";
// Note: Pass empCode twice since there are two placeholders.
Integer count = jdbcTemplate.queryForObject(sql, new Object[]{empCode, empCode}, Integer.class);
Integer count = jdbcTemplate.queryForObject(sql, Integer.class,empCode,empCode);
return count != null && count > 0;
}
@ -829,7 +859,7 @@ public class NewEntryService {
" SELECT emp_no FROM cps_pensioner_details WHERE emp_no = ? AND file_category IN (6) " +
") AS combined";
// Note: Pass empCode twice since there are two placeholders.
Integer count = jdbcTemplate.queryForObject(sql, new Object[]{empCode, empCode},Integer.class);
Integer count = jdbcTemplate.queryForObject(sql,Integer.class,empCode,empCode);
System.out.println("count<<<<<<<<<<<"+count);
return count != null && count > 0;
}
@ -842,7 +872,7 @@ public class NewEntryService {
" SELECT emp_no FROM cps_pensioner_details WHERE emp_no = ? AND file_category IN (6) " +
") AS combined";
// Note: Pass empCode twice since there are two placeholders.
Integer count = jdbcTemplate.queryForObject(sql, new Object[]{empCode, empCode}, Integer.class);
Integer count = jdbcTemplate.queryForObject(sql, Integer.class,empCode,empCode);
return count != null && count > 0;
}
@ -858,7 +888,7 @@ public class NewEntryService {
") AS combined";
// Note: Pass empCode twice since there are two placeholders.
Integer count = jdbcTemplate.queryForObject(sql, new Object[]{empCode, empCode}, Integer.class);
Integer count = jdbcTemplate.queryForObject(sql, Integer.class,empCode,empCode);
return count != null && count > 0;
}

9
backend/pensioner/service/PensionAuditService.java

@ -39,6 +39,9 @@ public class PensionAuditService {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
@Autowired
public GetFileStatusService getFileStatus;
public List<Map<String, Object>> fetchDetailsForAudit(Integer file_cat) {
String query = "SELECT * " +
"FROM pensioner_details " +
@ -58,7 +61,11 @@ public class PensionAuditService {
String dept_Id = (String) requestData.get("deptId");
int deptId = Integer.parseInt(dept_Id);
int filestatus = 4;
int filestatus = getFileStatus.getFileStatus4Id();
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
String file_entry_type="AUDIT_CLEARED";

11
backend/pensioner/service/PensionPartiallyCompService.java

@ -39,6 +39,9 @@ public class PensionPartiallyCompService {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
@Autowired
public GetFileStatusService getFileStatus;
public List<Map<String, Object>> fetchPensionPartialEmpfiles(Integer file_cat) {
String query = "SELECT * " +
"FROM pensioner_details " +
@ -96,7 +99,7 @@ public class PensionPartiallyCompService {
int rowsUpdated2 = jdbcTemplate.update(updateQuery2, pension_number, ledger_number, benefit_pension, benefit_pension_amount, benefit_dcrg, benefit_dcrg_amount, benefit_commutation, benefit_commutation_amount, tempId);
System.out.println("Rows updated in pb: " + rowsUpdated2);
filestatus = CheckFieldsforPension(tempId) ? 11 : 10;
filestatus = CheckFieldsforPension(tempId) ? getFileStatus.getFileStatus11Id() : getFileStatus.getFileStatus10Id();
System.out.println("filestatus inside service="+filestatus);
if(filestatus==11)
@ -106,6 +109,12 @@ public class PensionPartiallyCompService {
if(filestatus==10) {
file_entry_type="PENSION_PARTIAL";
}
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
if (rowsUpdated2 > 0) {

15
backend/pensioner/service/PensionReceivedService.java

@ -39,6 +39,9 @@ public class PensionReceivedService {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
@Autowired
public GetFileStatusService getFileStatus;
public List<Map<String, Object>> fetchReceivedDepartmentEmpfiles(Integer deptId,Integer file_cat) {
String query = "SELECT * " +
"FROM pensioner_details " +
@ -77,7 +80,11 @@ public class PensionReceivedService {
String dept_Id = (String) requestData.get("deptId");
int deptId = (dept_Id != null && !dept_Id.isEmpty()) ? Integer.parseInt(dept_Id) : 0;
int filestatus = 7;
int filestatus = getFileStatus.getFileStatus7Id();
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
String gpf = (String) requestData.get("gpf");
String private_affairs = (String) requestData.get("private_affairs");
@ -306,7 +313,11 @@ public boolean checkTempIdInZoneBenefits(String tempId) {
int deptId = Integer.parseInt(dept_Id);
int filestatus = 11;
int filestatus = getFileStatus.getFileStatus11Id();
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
String fileentrytype = "FILE_COMPLETED";
String updateQuery = "UPDATE pensioner_details SET file_status = ?, file_moved_date = ?, remarks = ?, sanctional_gis_date = ?, sanctional_gis_amount = ?, lic_date = ?,file_entry_type=? ,updated_date = CURRENT_TIMESTAMP WHERE temp_id = ? LIMIT 1";

3
backend/pensioner/service/ReceivedDeptProvisionalService.java

@ -37,6 +37,9 @@ public class ReceivedDeptProvisionalService {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
@Autowired
public GetFileStatusService getFileStatus;
public List<Map<String, Object>> fetchDetailsProvisionalPension(Integer file_cat) {

3
backend/pensioner/service/ReportApiService.java

@ -37,6 +37,9 @@ public class ReportApiService {
public void setDataSource(@Qualifier("mysqlPensionerDataSource") DataSource dataSource) {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
@Autowired
public GetFileStatusService getFileStatus;
public List<Map<String, Object>> getFileCategories() {
String sql = "SELECT id,file_name FROM file_category_master";

9
backend/pensioner/service/ReturnFromAuditService.java

@ -39,6 +39,9 @@ public class ReturnFromAuditService {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
@Autowired
public GetFileStatusService getFileStatus;
public List<Map<String, Object>> fetchReturnEmpfiles(Integer deptId,Integer file_cat) {
String query = "SELECT * " +
"FROM pensioner_details " +
@ -58,7 +61,11 @@ public class ReturnFromAuditService {
String dept_Id = (String) requestData.get("deptId");
int deptId = Integer.parseInt(dept_Id);
int filestatus = 3;
int filestatus = getFileStatus.getFileStatus3Id();
if (filestatus == 0) {
System.out.println("File status not found. Aborting insertion.");
return false;
}
// Update file_status in pensioner_details
String updateQuery = "UPDATE pensioner_details SET file_status = ?,file_moved_date=?,remarks=?,updated_date= CURRENT_TIMESTAMP WHERE temp_id = ? LIMIT 1";

74
gcc_pensioner_emptyDump/gcc_pensioner_cps_pensioner_details.sql

@ -0,0 +1,74 @@
-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: gcc_pensioner
-- ------------------------------------------------------
-- Server version 8.0.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `cps_pensioner_details`
--
DROP TABLE IF EXISTS `cps_pensioner_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `cps_pensioner_details` (
`id` int NOT NULL AUTO_INCREMENT,
`emp_no` varchar(20) NOT NULL,
`emp_name` varchar(30) NOT NULL,
`dept_id` int NOT NULL,
`dept_name` varchar(30) NOT NULL,
`designation` varchar(30) NOT NULL,
`file_category` int NOT NULL,
`file_category_name` varchar(70) DEFAULT NULL,
`retirement_class` varchar(10) DEFAULT NULL,
`type_of_retirement` varchar(30) DEFAULT NULL,
`remarks` text,
`file_status` int NOT NULL,
`file_entry_type` varchar(20) NOT NULL,
`uac` varchar(20) DEFAULT NULL,
`uac_date` date DEFAULT NULL,
`pending_duration` varchar(30) DEFAULT NULL,
`reason_for_pending` varchar(255) DEFAULT NULL,
`cps` varchar(20) DEFAULT NULL,
`cps_amount` decimal(15,2) DEFAULT NULL,
`el_or_lpa` varchar(20) DEFAULT NULL,
`el_or_lpa_amount` decimal(15,2) DEFAULT NULL,
`spfgs` varchar(20) DEFAULT NULL,
`spfgs_amount` decimal(15,2) DEFAULT NULL,
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updated_date` varchar(45) DEFAULT NULL,
`temp_id` varchar(45) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cps_pensioner_details`
--
LOCK TABLES `cps_pensioner_details` WRITE;
/*!40000 ALTER TABLE `cps_pensioner_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `cps_pensioner_details` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-02-06 16:33:03

74
gcc_pensioner_emptyDump/gcc_pensioner_cps_pensioner_details_history.sql

@ -0,0 +1,74 @@
-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: gcc_pensioner
-- ------------------------------------------------------
-- Server version 8.0.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `cps_pensioner_details_history`
--
DROP TABLE IF EXISTS `cps_pensioner_details_history`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `cps_pensioner_details_history` (
`id` int NOT NULL AUTO_INCREMENT,
`emp_no` varchar(20) NOT NULL,
`emp_name` varchar(30) NOT NULL,
`dept_id` int NOT NULL,
`dept_name` varchar(30) NOT NULL,
`designation` varchar(30) NOT NULL,
`file_category` int NOT NULL,
`file_category_name` varchar(70) DEFAULT NULL,
`retirement_class` varchar(10) DEFAULT NULL,
`type_of_retirement` varchar(30) DEFAULT NULL,
`remarks` text,
`file_status` int NOT NULL,
`file_entry_type` varchar(20) DEFAULT NULL,
`file_moved_by` varchar(20) NOT NULL,
`uac` varchar(20) DEFAULT NULL,
`uac_date` date DEFAULT NULL,
`pending_duration` varchar(30) DEFAULT NULL,
`reason_for_pending` varchar(255) DEFAULT NULL,
`cps` varchar(20) DEFAULT NULL,
`cps_amount` decimal(15,2) DEFAULT NULL,
`el_or_lpa` varchar(20) DEFAULT NULL,
`el_or_lpa_amount` decimal(15,2) DEFAULT NULL,
`spfgs` varchar(20) DEFAULT NULL,
`spfgs_amount` decimal(15,2) DEFAULT NULL,
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`temp_id` varchar(45) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cps_pensioner_details_history`
--
LOCK TABLES `cps_pensioner_details_history` WRITE;
/*!40000 ALTER TABLE `cps_pensioner_details_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `cps_pensioner_details_history` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-02-06 16:33:03

55
gcc_pensioner_emptyDump/gcc_pensioner_department_master.sql

@ -0,0 +1,55 @@
-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: gcc_pensioner
-- ------------------------------------------------------
-- Server version 8.0.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `department_master`
--
DROP TABLE IF EXISTS `department_master`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `department_master` (
`id` int NOT NULL AUTO_INCREMENT,
`dept_id` int NOT NULL,
`dept_name` varchar(70) NOT NULL,
`isactive` tinyint(1) NOT NULL DEFAULT '1',
`isdelete` tinyint(1) NOT NULL DEFAULT '0',
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `department_master`
--
LOCK TABLES `department_master` WRITE;
/*!40000 ALTER TABLE `department_master` DISABLE KEYS */;
INSERT INTO `department_master` VALUES (1,1,'A-Accounts Central Cell',1,0,'2025-01-08 08:57:10'),(2,2,'J-Bridges',1,0,'2025-01-08 08:58:02'),(3,3,'B-Buildings',1,0,'2025-01-08 09:06:02'),(4,4,'BR-Bus Route Roads',1,0,'2025-01-08 09:06:02'),(5,5,'X-Chief Engineer Office',1,0,'2025-01-08 09:06:02'),(6,6,'C-Council',1,0,'2025-01-08 09:06:02'),(7,7,'HD-District Family Welfare',1,0,'2025-01-08 09:06:02'),(8,8,'E-Education',1,0,'2025-01-08 09:06:02'),(9,9,'L-Electrical',1,0,'2025-01-08 09:06:02'),(10,10,'G-General',1,0,'2025-01-08 09:06:02'),(11,11,'H-Health',1,0,'2025-01-08 09:12:46'),(12,12,'V-Land and Estate',1,0,'2025-01-08 09:12:46'),(13,13,'Y-Legal Cell',1,0,'2025-01-08 09:12:46'),(14,14,'M-Mechanical',1,0,'2025-01-08 09:12:46'),(15,15,'P-Parks and Playfields',1,0,'2025-01-08 09:12:46'),(16,16,'R-Revenue',1,0,'2025-01-08 09:12:46'),(17,17,'Q-Solid Waste Management',1,0,'2025-01-08 09:12:46'),(18,18,'D-Storm Water Drains',1,0,'2025-01-08 09:12:46'),(19,19,'T-Taxation Appeals Committee',1,0,'2025-01-08 09:12:46'),(20,20,'W-Works',1,0,'2025-01-08 09:12:46'),(21,21,'FA-Zone 1',1,0,'2025-01-08 09:15:21'),(22,22,'FB-Zone 2',1,0,'2025-01-08 09:19:47'),(23,23,'FC-Zone 3',1,0,'2025-01-08 09:23:05'),(24,24,'FD-Zone 4',1,0,'2025-01-08 09:23:05'),(25,25,'FE-Zone 5',1,0,'2025-01-08 09:23:05'),(26,26,'FF-Zone 6',1,0,'2025-01-08 09:23:05'),(27,27,'FG-Zone 7',1,0,'2025-01-08 09:23:05'),(28,28,'FH-Zone 8',1,0,'2025-01-08 09:23:05'),(29,29,'FJ-Zone 9',1,0,'2025-01-08 09:23:05'),(30,30,'FK-Zone 10',1,0,'2025-01-08 09:23:05'),(31,31,'Z-Education-Elementary',1,0,'2025-01-08 09:31:08'),(32,32,'NA-THIRUVOTTIYUR',1,0,'2025-01-08 09:31:08'),(33,33,'NB-MANALI',1,0,'2025-01-08 09:31:08'),(34,34,'NC-MADHAVARAM',1,0,'2025-01-08 09:31:08'),(35,35,'ND-TONDIARPET',1,0,'2025-01-08 09:31:08'),(36,36,'NE-ROYAPURAM',1,0,'2025-01-08 09:31:08'),(37,37,'NF-THIRU-VI-KA NAGAR',1,0,'2025-01-08 09:31:08'),(38,38,'NG-AMBATTUR',1,0,'2025-01-08 09:31:08'),(39,39,'NH-ANNA NAGAR',1,0,'2025-01-08 09:31:08'),(40,40,'NJ-TEYNAMPET',1,0,'2025-01-08 09:31:08'),(41,41,'NK-KODAMBAKKAM',1,0,'2025-01-08 09:31:08'),(42,42,'NL-VALASARAVAKKAM',1,0,'2025-01-08 09:31:08'),(43,43,'NM-ALANDUR',1,0,'2025-01-08 09:31:08'),(44,44,'NN-ADYAR',1,0,'2025-01-08 09:31:08'),(45,45,'NP-PERUNGUDI',1,0,'2025-01-08 09:31:08'),(46,46,'NQ-SHOZHINGANALLUR',1,0,'2025-01-08 09:31:08'),(47,48,'RN-Regional office - North',1,0,'2025-01-08 09:31:08'),(48,49,'RS-Regional office - South',1,0,'2025-01-08 09:31:08'),(49,50,'RC-Regional office - Central',1,0,'2025-01-08 09:31:08'),(50,51,'S-Chief Engineer Office (SWD, BRR, SP)',1,0,'2025-01-08 10:16:00'),(51,52,'K-Chief Engineer Office - SWM',1,0,'2025-01-08 10:16:20'),(52,53,'SP-SPECIAL PROJECTS',1,0,'2025-01-08 10:16:23'),(53,54,'PT - PLANNING AND TRAINING',1,0,'2025-01-08 10:16:25'),(54,55,'JP-Chief Engineer Office (Buildings, Bridges and Planning)',1,0,'2025-01-08 10:16:28'),(55,56,'CP-Chief Engineer Office - Parks',1,0,'2025-01-08 10:16:30'),(56,57,'CL-Chief Engineer Office - Electrical',1,0,'2025-01-08 10:16:31'),(57,58,'EL-ELECTION',1,0,'2025-01-08 10:21:56'),(58,2000,'Pensioner',1,0,'2025-01-22 09:15:27');
/*!40000 ALTER TABLE `department_master` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-02-06 16:33:02

54
gcc_pensioner_emptyDump/gcc_pensioner_designation_master.sql
File diff suppressed because it is too large
View File

54
gcc_pensioner_emptyDump/gcc_pensioner_file_category_master.sql

@ -0,0 +1,54 @@
-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: gcc_pensioner
-- ------------------------------------------------------
-- Server version 8.0.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `file_category_master`
--
DROP TABLE IF EXISTS `file_category_master`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `file_category_master` (
`id` int NOT NULL AUTO_INCREMENT,
`file_name` varchar(255) NOT NULL,
`isactive` tinyint(1) NOT NULL DEFAULT '1',
`isdelete` tinyint(1) NOT NULL DEFAULT '0',
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `file_category_master`
--
LOCK TABLES `file_category_master` WRITE;
/*!40000 ALTER TABLE `file_category_master` DISABLE KEYS */;
INSERT INTO `file_category_master` VALUES (1,'Retirement',1,0,'2025-01-20 07:02:29'),(2,'Family Pension',1,0,'2025-01-20 07:02:29'),(3,'Pendency',1,0,'2025-01-20 07:02:29'),(4,'GIS',1,0,'2025-01-20 07:02:29'),(5,'Provisional Retirement',1,0,'2025-01-20 07:02:29'),(6,'Contributory Pension Scheme',1,0,'2025-01-20 07:02:29');
/*!40000 ALTER TABLE `file_category_master` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-02-06 16:33:04

56
gcc_pensioner_emptyDump/gcc_pensioner_file_movement_history.sql

@ -0,0 +1,56 @@
-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: gcc_pensioner
-- ------------------------------------------------------
-- Server version 8.0.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `file_movement_history`
--
DROP TABLE IF EXISTS `file_movement_history`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `file_movement_history` (
`id` int NOT NULL AUTO_INCREMENT,
`temp_id` varchar(45) NOT NULL,
`emp_no` varchar(30) NOT NULL,
`file_moved_date` date NOT NULL,
`file_status` varchar(40) NOT NULL,
`file_moved_by` varchar(20) NOT NULL,
`remarks` text,
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `file_movement_history`
--
LOCK TABLES `file_movement_history` WRITE;
/*!40000 ALTER TABLE `file_movement_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `file_movement_history` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-02-06 16:33:03

54
gcc_pensioner_emptyDump/gcc_pensioner_file_status_master.sql

@ -0,0 +1,54 @@
-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: gcc_pensioner
-- ------------------------------------------------------
-- Server version 8.0.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `file_status_master`
--
DROP TABLE IF EXISTS `file_status_master`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `file_status_master` (
`id` int NOT NULL AUTO_INCREMENT,
`file_status` varchar(60) NOT NULL,
`isactive` tinyint(1) NOT NULL DEFAULT '1',
`isdelete` tinyint(1) NOT NULL DEFAULT '0',
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `file_status_master`
--
LOCK TABLES `file_status_master` WRITE;
/*!40000 ALTER TABLE `file_status_master` DISABLE KEYS */;
INSERT INTO `file_status_master` VALUES (1,'Sent to Audit',1,0,'2025-01-08 11:07:32'),(2,'Returned From Audit',1,0,'2025-01-08 11:14:08'),(3,'Rectify and Sent to Audit',1,0,'2025-01-08 11:14:08'),(4,'Audit Certified',1,0,'2025-01-08 11:14:08'),(5,'File Forwarded to Department',1,0,'2025-01-08 11:28:21'),(6,'Returned to Department',1,0,'2025-01-08 11:28:21'),(7,'File Forwarded to Pension',1,0,'2025-01-08 11:28:21'),(8,'Pension Pending',1,0,'2025-01-08 11:28:21'),(9,'File in Department to complete pending values',1,0,'2025-01-08 11:28:21'),(10,'File in Pension to complete pending values',1,0,'2025-01-08 11:28:21'),(11,'File Completed',1,0,'2025-01-08 11:28:21');
/*!40000 ALTER TABLE `file_status_master` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-02-06 16:33:04

53
gcc_pensioner_emptyDump/gcc_pensioner_login_details.sql

@ -0,0 +1,53 @@
-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: gcc_pensioner
-- ------------------------------------------------------
-- Server version 8.0.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `login_details`
--
DROP TABLE IF EXISTS `login_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `login_details` (
`id` int NOT NULL AUTO_INCREMENT,
`gcc_login_id` int NOT NULL,
`emp_dept_id` int NOT NULL,
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `login_details`
--
LOCK TABLES `login_details` WRITE;
/*!40000 ALTER TABLE `login_details` DISABLE KEYS */;
INSERT INTO `login_details` VALUES (1,14,1,'2025-01-08 12:51:50'),(2,15,2,'2025-01-08 12:51:50'),(3,16,2,'2025-01-22 09:20:51');
/*!40000 ALTER TABLE `login_details` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-02-06 16:33:02

62
gcc_pensioner_emptyDump/gcc_pensioner_pension_benefits.sql

@ -0,0 +1,62 @@
-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: gcc_pensioner
-- ------------------------------------------------------
-- Server version 8.0.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `pension_benefits`
--
DROP TABLE IF EXISTS `pension_benefits`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pension_benefits` (
`id` int NOT NULL AUTO_INCREMENT,
`emp_no` varchar(20) NOT NULL,
`temp_id` varchar(45) NOT NULL,
`file_pending` varchar(30) DEFAULT NULL,
`pension_number` varchar(30) DEFAULT NULL,
`ledger_number` varchar(30) DEFAULT NULL,
`benefit_pension` varchar(30) DEFAULT NULL,
`benefit_pension_amount` decimal(15,2) DEFAULT NULL,
`benefit_dcrg` varchar(30) DEFAULT NULL,
`benefit_dcrg_amount` decimal(15,2) DEFAULT NULL,
`benefit_commutation` varchar(30) DEFAULT NULL,
`benefit_commutation_amount` decimal(15,2) DEFAULT NULL,
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updated_date` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pension_benefits`
--
LOCK TABLES `pension_benefits` WRITE;
/*!40000 ALTER TABLE `pension_benefits` DISABLE KEYS */;
/*!40000 ALTER TABLE `pension_benefits` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-02-06 16:33:04

62
gcc_pensioner_emptyDump/gcc_pensioner_pension_benefits_history.sql

@ -0,0 +1,62 @@
-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: gcc_pensioner
-- ------------------------------------------------------
-- Server version 8.0.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `pension_benefits_history`
--
DROP TABLE IF EXISTS `pension_benefits_history`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pension_benefits_history` (
`id` int NOT NULL AUTO_INCREMENT,
`emp_no` varchar(20) NOT NULL,
`temp_id` varchar(45) NOT NULL,
`file_pending` varchar(30) DEFAULT NULL,
`pension_number` varchar(30) DEFAULT NULL,
`ledger_number` varchar(30) DEFAULT NULL,
`benefit_pension` varchar(30) DEFAULT NULL,
`benefit_pension_amount` decimal(15,2) DEFAULT NULL,
`benefit_dcrg` varchar(30) DEFAULT NULL,
`benefit_dcrg_amount` decimal(15,2) DEFAULT NULL,
`benefit_commutation` varchar(30) DEFAULT NULL,
`benefit_commutation_amount` decimal(15,2) DEFAULT NULL,
`file_moved_by` varchar(20) NOT NULL,
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pension_benefits_history`
--
LOCK TABLES `pension_benefits_history` WRITE;
/*!40000 ALTER TABLE `pension_benefits_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `pension_benefits_history` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-02-06 16:33:04

81
gcc_pensioner_emptyDump/gcc_pensioner_pensioner_details.sql

@ -0,0 +1,81 @@
-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: gcc_pensioner
-- ------------------------------------------------------
-- Server version 8.0.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `pensioner_details`
--
DROP TABLE IF EXISTS `pensioner_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pensioner_details` (
`id` int NOT NULL AUTO_INCREMENT,
`emp_no` varchar(20) NOT NULL,
`emp_name` varchar(30) NOT NULL,
`dept_id` int NOT NULL,
`dept_name` varchar(30) NOT NULL,
`designation` varchar(30) NOT NULL,
`file_category` int NOT NULL,
`file_category_name` varchar(70) DEFAULT NULL,
`retirement_date` date DEFAULT NULL,
`retirement_class` varchar(10) DEFAULT NULL,
`type_of_retirement` varchar(30) DEFAULT NULL,
`file_moved_date` date DEFAULT NULL,
`remarks` text,
`file_status` int NOT NULL,
`file_entry_type` varchar(20) NOT NULL,
`service_death` varchar(30) DEFAULT NULL,
`relationship_deceased` varchar(20) DEFAULT NULL,
`sanctioned_gis_amount` decimal(15,2) DEFAULT NULL,
`sanctioned_funeral_advance` decimal(15,2) DEFAULT NULL,
`pending_duration` varchar(20) DEFAULT NULL,
`reason_for_pending` varchar(255) DEFAULT NULL,
`reason_for_provisional_pension` varchar(255) DEFAULT NULL,
`others_provisional_pension` varchar(200) DEFAULT NULL,
`dp` varchar(20) DEFAULT NULL,
`pr_amount` decimal(15,2) DEFAULT NULL,
`pr_percentage` varchar(45) DEFAULT NULL,
`sanctional_gis_date` date DEFAULT NULL,
`sanctional_gis_amount` decimal(15,2) DEFAULT NULL,
`lic_date` date DEFAULT NULL,
`temp_id` varchar(45) NOT NULL,
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updated_date` varchar(45) DEFAULT NULL,
`is_closed` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pensioner_details`
--
LOCK TABLES `pensioner_details` WRITE;
/*!40000 ALTER TABLE `pensioner_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `pensioner_details` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-02-06 16:33:03

80
gcc_pensioner_emptyDump/gcc_pensioner_pensioner_details_history.sql

@ -0,0 +1,80 @@
-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: gcc_pensioner
-- ------------------------------------------------------
-- Server version 8.0.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `pensioner_details_history`
--
DROP TABLE IF EXISTS `pensioner_details_history`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pensioner_details_history` (
`id` int NOT NULL AUTO_INCREMENT,
`emp_no` varchar(20) NOT NULL,
`emp_name` varchar(30) NOT NULL,
`dept_id` int NOT NULL,
`dept_name` varchar(30) NOT NULL,
`designation` varchar(30) NOT NULL,
`file_category` int NOT NULL,
`file_category_name` varchar(70) DEFAULT NULL,
`retirement_class` varchar(10) DEFAULT NULL,
`retirement_date` date DEFAULT NULL,
`type_of_retirement` varchar(30) DEFAULT NULL,
`file_moved_date` date DEFAULT NULL,
`remarks` text,
`file_status` int NOT NULL,
`file_entry_type` varchar(20) NOT NULL,
`file_moved_by` varchar(20) NOT NULL,
`service_death` varchar(30) DEFAULT NULL,
`relationship_deceased` varchar(20) DEFAULT NULL,
`sanctioned_gis_amount` decimal(15,2) DEFAULT NULL,
`sanctioned_funeral_advance` decimal(15,2) DEFAULT NULL,
`pending_duration` varchar(20) DEFAULT NULL,
`reason_for_pending` varchar(255) DEFAULT NULL,
`reason_for_provisional_pension` varchar(255) DEFAULT NULL,
`others_provisional_pension` varchar(200) DEFAULT NULL,
`dp` varchar(20) DEFAULT NULL,
`pr_amount` decimal(15,2) DEFAULT NULL,
`pr_percentage` varchar(45) DEFAULT NULL,
`sanctional_gis_date` date DEFAULT NULL,
`sanctional_gis_amount` decimal(15,2) DEFAULT NULL,
`lic_date` date DEFAULT NULL,
`temp_id` varchar(45) NOT NULL,
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pensioner_details_history`
--
LOCK TABLES `pensioner_details_history` WRITE;
/*!40000 ALTER TABLE `pensioner_details_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `pensioner_details_history` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-02-06 16:33:04

54
gcc_pensioner_emptyDump/gcc_pensioner_reason_for_provisional.sql

@ -0,0 +1,54 @@
-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: gcc_pensioner
-- ------------------------------------------------------
-- Server version 8.0.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `reason_for_provisional`
--
DROP TABLE IF EXISTS `reason_for_provisional`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `reason_for_provisional` (
`id` int NOT NULL AUTO_INCREMENT,
`provisional_reason` varchar(60) NOT NULL,
`isactive` tinyint(1) NOT NULL DEFAULT '1',
`isdelete` tinyint(1) NOT NULL DEFAULT '0',
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reason_for_provisional`
--
LOCK TABLES `reason_for_provisional` WRITE;
/*!40000 ALTER TABLE `reason_for_provisional` DISABLE KEYS */;
INSERT INTO `reason_for_provisional` VALUES (1,'Disciplinary Pending',1,0,'2025-02-01 08:51:12'),(2,'CourtCase Pending',1,0,'2025-02-01 08:51:12'),(3,'DVAC Pending',1,0,'2025-02-01 08:51:12'),(4,'Others',1,0,'2025-02-01 08:51:12');
/*!40000 ALTER TABLE `reason_for_provisional` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-02-06 16:33:04

54
gcc_pensioner_emptyDump/gcc_pensioner_type_of_retriment.sql

@ -0,0 +1,54 @@
-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: gcc_pensioner
-- ------------------------------------------------------
-- Server version 8.0.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `type_of_retriment`
--
DROP TABLE IF EXISTS `type_of_retriment`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `type_of_retriment` (
`id` int NOT NULL AUTO_INCREMENT,
`retriment_type` varchar(60) NOT NULL,
`isactive` tinyint(1) NOT NULL DEFAULT '1',
`isdelete` tinyint(1) NOT NULL DEFAULT '0',
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `type_of_retriment`
--
LOCK TABLES `type_of_retriment` WRITE;
/*!40000 ALTER TABLE `type_of_retriment` DISABLE KEYS */;
INSERT INTO `type_of_retriment` VALUES (1,'Super Annuation',1,0,'2025-01-31 11:32:24'),(2,'Voluntary',1,0,'2025-01-31 11:32:24'),(3,'Compulsory',1,0,'2025-01-31 11:32:24'),(4,'Medical Invalidation',1,0,'2025-01-31 11:32:24'),(5,'Provisional',1,0,'2025-02-01 06:22:17');
/*!40000 ALTER TABLE `type_of_retriment` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-02-06 16:33:03

61
gcc_pensioner_emptyDump/gcc_pensioner_zone_benefits.sql

@ -0,0 +1,61 @@
-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: gcc_pensioner
-- ------------------------------------------------------
-- Server version 8.0.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `zone_benefits`
--
DROP TABLE IF EXISTS `zone_benefits`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `zone_benefits` (
`id` int NOT NULL AUTO_INCREMENT,
`emp_no` varchar(20) NOT NULL,
`temp_id` varchar(45) NOT NULL,
`gpf` varchar(30) DEFAULT NULL,
`gpf_amount` decimal(15,2) DEFAULT NULL,
`spfgs` varchar(30) DEFAULT NULL,
`spfgs_amount` decimal(15,2) DEFAULT NULL,
`dcrg` varchar(30) DEFAULT NULL,
`private_affairs` varchar(30) DEFAULT NULL,
`private_affairs_amount` decimal(15,2) DEFAULT NULL,
`recovery_emp` text,
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updated_date` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `zone_benefits`
--
LOCK TABLES `zone_benefits` WRITE;
/*!40000 ALTER TABLE `zone_benefits` DISABLE KEYS */;
/*!40000 ALTER TABLE `zone_benefits` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-02-06 16:33:02

61
gcc_pensioner_emptyDump/gcc_pensioner_zone_benefits_history.sql

@ -0,0 +1,61 @@
-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: gcc_pensioner
-- ------------------------------------------------------
-- Server version 8.0.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `zone_benefits_history`
--
DROP TABLE IF EXISTS `zone_benefits_history`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `zone_benefits_history` (
`id` int NOT NULL AUTO_INCREMENT,
`emp_no` varchar(20) NOT NULL,
`temp_id` varchar(45) NOT NULL,
`gpf` varchar(30) DEFAULT NULL,
`gpf_amount` decimal(15,2) DEFAULT NULL,
`spfgs` varchar(30) DEFAULT NULL,
`spfgs_amount` decimal(15,2) DEFAULT NULL,
`dcrg` varchar(30) DEFAULT NULL,
`private_affairs` varchar(30) DEFAULT NULL,
`private_affairs_amount` decimal(15,2) DEFAULT NULL,
`recovery_emp` text,
`file_moved_by` varchar(20) NOT NULL,
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `zone_benefits_history`
--
LOCK TABLES `zone_benefits_history` WRITE;
/*!40000 ALTER TABLE `zone_benefits_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `zone_benefits_history` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-02-06 16:33:02
Loading…
Cancel
Save