优化往期删除逻辑

This commit is contained in:
钱涛 2022-07-07 20:26:43 +08:00
parent eab3e9a6a9
commit 6967a7224c
1 changed files with 5 additions and 0 deletions

View File

@ -224,6 +224,11 @@ public class AddUpSituationServiceImpl extends Service implements AddUpSituation
if (taxCycle == null) {
throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(100353, "参数有误:税款所属期必传"));
}
if(CollectionUtils.isEmpty(employeeIds)){
return Boolean.TRUE;
}
AddUpSituationBiz biz = new AddUpSituationBiz();
List<AddUpSituation> addUpSituations = biz.listSome(AddUpSituation.builder().employeeIds(employeeIds).taxYearMonth(taxCycle).build());
Set<Long> properties = SalaryEntityUtil.properties(addUpSituations, AddUpSituation::getId);