薪酬系统-福利台账,正常缴纳和补缴中未设置缴纳的福利项,不允许导入核算数据

This commit is contained in:
sy 2023-12-04 15:10:46 +08:00
parent eaa8a45376
commit cecbd16508
1 changed files with 11 additions and 1 deletions

View File

@ -1736,7 +1736,17 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
} else {
//拼装待更新数据
encryptUtil.decryptList(list, InsuranceAccountDetailPO.class);
updateInsuranceAccountDetailList.add(handleInsuranceAccountDetail(list.get(0), map));
InsuranceAccountDetailPO updatePO = handleInsuranceAccountDetail(list.get(0), map);
//判断导入福利项是否符合福利方案设置缴纳项
if(!checkBalancePayInsurance(updatePO)) {
isError = true;
Map<String, String> errorMessageMap = Maps.newHashMap();
errorMessageMap.put("message", row + SalaryI18nUtil.getI18nLabel(0, "导入数据中存在福利档案中未设置的福利项缴纳数值!"));
excelComments.add(errorMessageMap);
} else {
updateInsuranceAccountDetailList.add(updatePO);
}
}
}