社保福利台账增减人员
This commit is contained in:
parent
5b66efa3cc
commit
25723af00a
|
|
@ -4926,7 +4926,7 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
||||||
if (!param.isFlag()) {
|
if (!param.isFlag()) {
|
||||||
// 不是首次创建核算 还需要添加历史核算人员
|
// 不是首次创建核算 还需要添加历史核算人员
|
||||||
List<InsuranceAccountDetailPO> insuranceAccountDetailPOS = getInsuranceAccountDetailMapper().selectList(param.getBillMonth(), param.getPaymentOrganization());
|
List<InsuranceAccountDetailPO> insuranceAccountDetailPOS = getInsuranceAccountDetailMapper().selectList(param.getBillMonth(), param.getPaymentOrganization());
|
||||||
List<Long> historyEmpIds = insuranceAccountDetailPOS.stream().map(InsuranceAccountDetailPO::getEmployeeId).collect(Collectors.toList());
|
List<Long> historyEmpIds = insuranceAccountDetailPOS.stream().filter(po -> po.getPaymentStatus().equals(PaymentStatusEnum.COMMON.getValue())).map(InsuranceAccountDetailPO::getEmployeeId).collect(Collectors.toList());
|
||||||
validIds.addAll(historyEmpIds);
|
validIds.addAll(historyEmpIds);
|
||||||
List<Long> finalEmpIds = empIds;
|
List<Long> finalEmpIds = empIds;
|
||||||
empIds.addAll(historyEmpIds.stream().filter(empId -> !finalEmpIds.contains(empId)).collect(Collectors.toList()));
|
empIds.addAll(historyEmpIds.stream().filter(empId -> !finalEmpIds.contains(empId)).collect(Collectors.toList()));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue