diff --git a/src/com/engine/salary/service/impl/SIAccountServiceImpl.java b/src/com/engine/salary/service/impl/SIAccountServiceImpl.java index 26dd5d059..7551f2190 100644 --- a/src/com/engine/salary/service/impl/SIAccountServiceImpl.java +++ b/src/com/engine/salary/service/impl/SIAccountServiceImpl.java @@ -2763,6 +2763,10 @@ public class SIAccountServiceImpl extends Service implements SIAccountService { } if (createInsuranceAccountDetailList.size() > 0) { paymentOrganization = createInsuranceAccountDetailList.get(0).getPaymentOrganization(); + //去除员工id+个税扣缴义务人下重复的数据 + createInsuranceAccountDetailList = createInsuranceAccountDetailList.stream() + .collect(Collectors.collectingAndThen(Collectors.toCollection(() + -> new TreeSet<>(Comparator.comparing(f -> f.getPaymentOrganization() + "-" + f.getEmployeeId()))), ArrayList::new)); //将待新增列表加密 encryptUtil.encryptList(createInsuranceAccountDetailList, InsuranceAccountDetailPO.class); //新增