薪酬系统-薪资核算,获取福利核算数据逻辑优化
This commit is contained in:
parent
bf6918264f
commit
dc93a96c8d
|
|
@ -955,32 +955,32 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
InsuranceAccountDetailPO repairSiAcct = siAcctResultWithEmpAndPayStatus.get(item.getEmployeeId() + "_" + PaymentStatusEnum.REPAIR.getValue());
|
||||
InsuranceAccountDetailPO balanceSiAcct = siAcctResultWithEmpAndPayStatus.get(item.getEmployeeId() + "_" + PaymentStatusEnum.BALANCE.getValue());
|
||||
//取正常缴纳的福利基数信息
|
||||
if (StringUtils.isNotEmpty(commonSiAcct.getSocialPaymentBaseString())) {
|
||||
if (commonSiAcct != null && StringUtils.isNotEmpty(commonSiAcct.getSocialPaymentBaseString())) {
|
||||
Map<String, Object> socialBaseJson = JSON.parseObject(commonSiAcct.getSocialPaymentBaseString(), new HashMap<String, Object>().getClass());
|
||||
socialBaseJson.forEach((k, v) -> {
|
||||
record.put(k + "socialBase", v);
|
||||
});
|
||||
}
|
||||
if (StringUtils.isNotEmpty(commonSiAcct.getFundPaymentBaseString())) {
|
||||
if (commonSiAcct != null && StringUtils.isNotEmpty(commonSiAcct.getFundPaymentBaseString())) {
|
||||
Map<String, Object> fundBaseJson = JSON.parseObject(commonSiAcct.getFundPaymentBaseString(), new HashMap<String, Object>().getClass());
|
||||
fundBaseJson.forEach((k, v) -> {
|
||||
record.put(k + "fundBase", v);
|
||||
});
|
||||
}
|
||||
if (StringUtils.isNotEmpty(commonSiAcct.getOtherPaymentBaseString())) {
|
||||
if (commonSiAcct != null && StringUtils.isNotEmpty(commonSiAcct.getOtherPaymentBaseString())) {
|
||||
Map<String, Object> otherBaseJson = JSON.parseObject(commonSiAcct.getOtherPaymentBaseString(), new HashMap<String, Object>().getClass());
|
||||
otherBaseJson.forEach((k, v) -> {
|
||||
record.put(k + "otherBase", v);
|
||||
});
|
||||
}
|
||||
//社保-正常缴纳
|
||||
if (StringUtils.isNotEmpty(commonSiAcct.getSocialPerJson())) {
|
||||
if (commonSiAcct != null && StringUtils.isNotEmpty(commonSiAcct.getSocialPerJson())) {
|
||||
Map<String, Object> socialJson = JSON.parseObject(commonSiAcct.getSocialPerJson(), new HashMap<String, Object>().getClass());
|
||||
socialJson.forEach((k, v) -> {
|
||||
record.put(k + "socialCommonPer", v);
|
||||
});
|
||||
}
|
||||
if (StringUtils.isNotEmpty(commonSiAcct.getSocialComJson())) {
|
||||
if (commonSiAcct != null && StringUtils.isNotEmpty(commonSiAcct.getSocialComJson())) {
|
||||
Map<String, Object> socialJson = JSON.parseObject(commonSiAcct.getSocialComJson(), new HashMap<String, Object>().getClass());
|
||||
socialJson.forEach((k, v) -> {
|
||||
record.put(k + "socialCommonCom", v);
|
||||
|
|
@ -1020,13 +1020,13 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
record.put("socialComBalanceSum", balanceSiAcct != null ? balanceSiAcct.getSocialComSum() : new BigDecimal("0"));
|
||||
|
||||
//公积金-正常缴纳
|
||||
if (StringUtils.isNotEmpty(commonSiAcct.getFundPerJson())) {
|
||||
if (commonSiAcct != null && StringUtils.isNotEmpty(commonSiAcct.getFundPerJson())) {
|
||||
Map<String, Object> socialJson = JSON.parseObject(commonSiAcct.getFundPerJson(), new HashMap<String, Object>().getClass());
|
||||
socialJson.forEach((k, v) -> {
|
||||
record.put(k + "fundCommonPer", v);
|
||||
});
|
||||
}
|
||||
if (StringUtils.isNotEmpty(commonSiAcct.getFundComJson())) {
|
||||
if (commonSiAcct != null && StringUtils.isNotEmpty(commonSiAcct.getFundComJson())) {
|
||||
Map<String, Object> socialJson = JSON.parseObject(commonSiAcct.getFundComJson(), new HashMap<String, Object>().getClass());
|
||||
socialJson.forEach((k, v) -> {
|
||||
record.put(k + "fundCommonCom", v);
|
||||
|
|
@ -1066,13 +1066,13 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
record.put("fundComBalanceSum", balanceSiAcct != null ? balanceSiAcct.getFundComSum() : new BigDecimal("0"));
|
||||
|
||||
//其他福利-正常缴纳
|
||||
if (StringUtils.isNotEmpty(commonSiAcct.getOtherPerJson())) {
|
||||
if (commonSiAcct != null && StringUtils.isNotEmpty(commonSiAcct.getOtherPerJson())) {
|
||||
Map<String, Object> otherJson = JSON.parseObject(commonSiAcct.getOtherPerJson(), new HashMap<String, Object>().getClass());
|
||||
otherJson.forEach((k, v) -> {
|
||||
record.put(k + "otherCommonPer", v);
|
||||
});
|
||||
}
|
||||
if (StringUtils.isNotEmpty(commonSiAcct.getOtherComJson())) {
|
||||
if (commonSiAcct != null && StringUtils.isNotEmpty(commonSiAcct.getOtherComJson())) {
|
||||
Map<String, Object> otherJson = JSON.parseObject(commonSiAcct.getOtherComJson(), new HashMap<String, Object>().getClass());
|
||||
otherJson.forEach((k, v) -> {
|
||||
record.put(k + "otherCommonCom", v);
|
||||
|
|
|
|||
Loading…
Reference in New Issue