diff --git a/src/com/engine/salary/service/impl/SalaryArchiveServiceImpl.java b/src/com/engine/salary/service/impl/SalaryArchiveServiceImpl.java index f4fdc079b..65c200b7b 100644 --- a/src/com/engine/salary/service/impl/SalaryArchiveServiceImpl.java +++ b/src/com/engine/salary/service/impl/SalaryArchiveServiceImpl.java @@ -1099,9 +1099,13 @@ public class SalaryArchiveServiceImpl extends Service implements SalaryArchiveSe return StringUtils.EMPTY; } // 从待定薪到停薪 - getSalaryArchiveMapper().deletePendingTodo(ids); + List> partition = Lists.partition((List) ids, 800); + partition.forEach(getSalaryArchiveMapper()::deletePendingTodo); // 记录日志 - List newList = getSalaryArchiveMapper().listSome(SalaryArchivePO.builder().ids(ids).build()); + List newList = new ArrayList<>(); + partition.forEach(part -> { + newList.addAll(getSalaryArchiveMapper().listSome(SalaryArchivePO.builder().ids(part).build())); + }); String operatedesc = SalaryI18nUtil.getI18nLabel(0, "删除待办"); recordLog(oldList, newList, operatedesc); @@ -1131,11 +1135,14 @@ public class SalaryArchiveServiceImpl extends Service implements SalaryArchiveSe } // 从待定薪到定薪 - List> partition = Lists.partition((List) ids, 1000); + List> partition = Lists.partition((List) ids, 800); partition.forEach(getSalaryArchiveMapper()::gotoFixed); // 记录日志 - List newList = getSalaryArchiveMapper().listSome(SalaryArchivePO.builder().ids(ids).build()); + List newList = new ArrayList<>(); + partition.forEach(part -> { + newList.addAll(getSalaryArchiveMapper().listSome(SalaryArchivePO.builder().ids(part).build())); + }); String operateDesc = SalaryI18nUtil.getI18nLabel(0, "设为发薪员工"); recordLog(salaryArchiveList, newList, operateDesc); @@ -1201,10 +1208,14 @@ public class SalaryArchiveServiceImpl extends Service implements SalaryArchiveSe } // 从待停薪到停薪 - getSalaryArchiveMapper().gotoStop(ids); + List> partition = Lists.partition((List) ids, 800); + partition.forEach(getSalaryArchiveMapper()::gotoStop); // 记录日志 - List newList = getSalaryArchiveMapper().listSome(SalaryArchivePO.builder().ids(ids).build()); + List newList = new ArrayList<>(); + partition.forEach(part -> { + newList.addAll( getSalaryArchiveMapper().listSome(SalaryArchivePO.builder().ids(part).build())); + }); String operatedesc = SalaryI18nUtil.getI18nLabel(0, "停薪"); recordLog(oldList, newList, operatedesc);