|
|
|
|
@ -331,7 +331,8 @@ public class SIArchivesBiz {
|
|
|
|
|
SqlSession sqlSession = MyBatisFactory.sqlSessionFactory.openSession();
|
|
|
|
|
try {
|
|
|
|
|
OtherSchemeMapper otherSchemeMapper = sqlSession.getMapper(OtherSchemeMapper.class);
|
|
|
|
|
InsuranceArchivesOtherSchemePO insuranceArchivesOtherSchemePO = otherSchemeMapper.getOtherByEmployeeId(Collections.singletonList(employeeId)).get(0);
|
|
|
|
|
List<InsuranceArchivesOtherSchemePO> otherList = otherSchemeMapper.getOtherByEmployeeId(Collections.singletonList(employeeId));
|
|
|
|
|
InsuranceArchivesOtherSchemePO insuranceArchivesOtherSchemePO = otherList.size() != 0 ? otherList.get(0) : null;
|
|
|
|
|
InsuranceArchivesOtherSchemeDTO data = InsuranceArchivesBO.convertOtherPOtoDTO(insuranceArchivesOtherSchemePO, employeeId);
|
|
|
|
|
if (insuranceArchivesOtherSchemePO == null) {
|
|
|
|
|
data.setEmployeeId(employeeId);
|
|
|
|
|
@ -355,7 +356,8 @@ public class SIArchivesBiz {
|
|
|
|
|
SqlSession sqlSession = MyBatisFactory.sqlSessionFactory.openSession();
|
|
|
|
|
try {
|
|
|
|
|
FundSchemeMapper fundSchemeMapper = sqlSession.getMapper(FundSchemeMapper.class);
|
|
|
|
|
InsuranceArchivesFundSchemePO insuranceArchivesFundSchemePO = fundSchemeMapper.getFundByEmployeeId(Collections.singletonList(employeeId)).get(0);
|
|
|
|
|
List<InsuranceArchivesFundSchemePO> fundList = fundSchemeMapper.getFundByEmployeeId(Collections.singletonList(employeeId));
|
|
|
|
|
InsuranceArchivesFundSchemePO insuranceArchivesFundSchemePO = fundList.size() != 0 ? fundList.get(0) : null;
|
|
|
|
|
InsuranceArchivesFundSchemeDTO data = InsuranceArchivesBO.convertFundPOtoDTO(insuranceArchivesFundSchemePO, employeeId);
|
|
|
|
|
if (insuranceArchivesFundSchemePO == null) {
|
|
|
|
|
data.setEmployeeId(employeeId);
|
|
|
|
|
@ -394,7 +396,8 @@ public class SIArchivesBiz {
|
|
|
|
|
SqlSession sqlSession = MyBatisFactory.sqlSessionFactory.openSession();
|
|
|
|
|
try {
|
|
|
|
|
SocialSchemeMapper socialSchemeMapper = sqlSession.getMapper(SocialSchemeMapper.class);
|
|
|
|
|
return socialSchemeMapper.getSocialByEmployeeId(Collections.singletonList(employeeId)).get(0);
|
|
|
|
|
List<InsuranceArchivesSocialSchemePO> socialList = socialSchemeMapper.getSocialByEmployeeId(Collections.singletonList(employeeId));
|
|
|
|
|
return socialList.size() != 0 ? socialList.get(0) : null;
|
|
|
|
|
}finally {
|
|
|
|
|
sqlSession.close();
|
|
|
|
|
}
|
|
|
|
|
@ -564,8 +567,8 @@ public class SIArchivesBiz {
|
|
|
|
|
param.setDimissionDateStart(param.getDimissionDate()[0]);
|
|
|
|
|
param.setDimissionDateEnd(param.getDimissionDate()[1]);
|
|
|
|
|
}
|
|
|
|
|
long current = param.getCurrent() == null ? 1L : param.getCurrent();
|
|
|
|
|
long pageSize = param.getPageSize() == null ? 10 : param.getPageSize();
|
|
|
|
|
Integer current = param.getCurrent() == null ? 1 : param.getCurrent();
|
|
|
|
|
Integer pageSize = param.getPageSize() == null ? 10 : param.getPageSize();
|
|
|
|
|
long startNum = (current - 1) * pageSize;
|
|
|
|
|
param.setStartNum(startNum);
|
|
|
|
|
param.setPageSize(pageSize);
|
|
|
|
|
@ -659,6 +662,7 @@ public class SIArchivesBiz {
|
|
|
|
|
SqlSession sqlSession = MyBatisFactory.sqlSessionFactory.openSession();
|
|
|
|
|
Map<Integer, Map<String, String>> result = new HashMap<>();
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
SocialSchemeMapper socialSchemeMapper = sqlSession.getMapper(SocialSchemeMapper.class);
|
|
|
|
|
FundSchemeMapper fundSchemeMapper = sqlSession.getMapper(FundSchemeMapper.class);
|
|
|
|
|
OtherSchemeMapper otherSchemeMapper = sqlSession.getMapper(OtherSchemeMapper.class);
|
|
|
|
|
@ -668,9 +672,12 @@ public class SIArchivesBiz {
|
|
|
|
|
Set<String> fundSet = new HashSet<>();
|
|
|
|
|
Set<String> otherSet = new HashSet<>();
|
|
|
|
|
insuranceArchivesEmployeePOS.forEach(item -> {
|
|
|
|
|
InsuranceArchivesSocialSchemePO socialItem = socialSchemeMapper.getSocialByEmployeeId(Collections.singletonList(item.getEmployeeId())).get(0);
|
|
|
|
|
InsuranceArchivesFundSchemePO fundItem = fundSchemeMapper.getFundByEmployeeId(Collections.singletonList(item.getEmployeeId())).get(0);
|
|
|
|
|
InsuranceArchivesOtherSchemePO otherItem = otherSchemeMapper.getOtherByEmployeeId(Collections.singletonList(item.getEmployeeId())).get(0);
|
|
|
|
|
List<InsuranceArchivesSocialSchemePO> socialList = socialSchemeMapper.getSocialByEmployeeId(Collections.singletonList(item.getEmployeeId()));
|
|
|
|
|
InsuranceArchivesSocialSchemePO socialItem = socialList.size() != 0 ? socialList.get(0) : null;
|
|
|
|
|
List<InsuranceArchivesFundSchemePO> fundList = fundSchemeMapper.getFundByEmployeeId(Collections.singletonList(item.getEmployeeId()));
|
|
|
|
|
InsuranceArchivesFundSchemePO fundItem = fundList.size() != 0 ? fundList.get(0) : null;
|
|
|
|
|
List<InsuranceArchivesOtherSchemePO> otherList = otherSchemeMapper.getOtherByEmployeeId(Collections.singletonList(item.getEmployeeId()));
|
|
|
|
|
InsuranceArchivesOtherSchemePO otherItem = otherList.size() != 0 ? otherList.get(0) : null;
|
|
|
|
|
if (socialItem != null) {
|
|
|
|
|
Map<String, Object> socialJson = JSON.parseObject(socialItem.getSocialPaymentBaseString(), new TypeReference<Map<String, Object>>() {
|
|
|
|
|
});
|
|
|
|
|
|