diff --git a/src/com/engine/salary/service/impl/SIAccountServiceImpl.java b/src/com/engine/salary/service/impl/SIAccountServiceImpl.java index f01ef4131..c28ed2d1f 100644 --- a/src/com/engine/salary/service/impl/SIAccountServiceImpl.java +++ b/src/com/engine/salary/service/impl/SIAccountServiceImpl.java @@ -1241,7 +1241,9 @@ public class SIAccountServiceImpl extends Service implements SIAccountService { insuranceAccountDetailPOS.addAll(insuranceAccountDetailList); // 获取这些人对应的补缴、补差数据 List empList = insuranceAccountDetailList.stream().map(InsuranceAccountDetailPO::getEmployeeId).collect(Collectors.toList()); - insuranceAccountDetailPOS.addAll(getInsuranceAccountDetailMapper().queryList4Ht(billMonth, taxAgent.getId(), null, null, null, empList, statusList)); + if (CollectionUtils.isNotEmpty(empList)) { + insuranceAccountDetailPOS.addAll(getInsuranceAccountDetailMapper().queryList4Ht(billMonth, taxAgent.getId(), null, null, null, empList, statusList)); + } } // 正常缴纳