薪酬系统-福利档案改造,列表tab页导入逻辑调整,对已有其他个税扣缴义务人的员工福利档案,不进行导入处理

This commit is contained in:
sy 2022-10-24 14:13:26 +08:00
parent 0000e52433
commit f75e7ebf32
1 changed files with 11 additions and 0 deletions

View File

@ -810,6 +810,17 @@ public class SISchemeServiceImpl extends Service implements SISchemeService {
excelComments.add(errorMessageMap);
isError = true;
}
//判断是否存在其他个税扣缴义务人下的该员工福利档案
// 所有福利档案基础信息数据
List<InsuranceArchivesBaseInfoPO> baseInfoPOList = getInsuranceBaseInfoMapper().listAll();
List<InsuranceArchivesBaseInfoPO> otherTaxBaseInfos = baseInfoPOList.stream().filter(f -> f.getEmployeeId().equals(employeeId) && !f.getPaymentOrganization().equals(paymentOrgId)).collect(Collectors.toList());
if (otherTaxBaseInfos.size() > 0) {
Map<String, String> errorMessageMap = Maps.newHashMap();
errorMessageMap.put("message", rowIndex + SalaryI18nUtil.getI18nLabel(100312, "该条数据相关人员已存在其他个税扣缴义务人下的福利档案,不可导入"));
excelComments.add(errorMessageMap);
isError = true;
}
}