Merge branch 'feature/240801-浮动薪资' into custom/京贵投资

This commit is contained in:
Harryxzy 2024-08-13 15:27:00 +08:00
commit 89d12fe8fe
1 changed files with 6 additions and 1 deletions

View File

@ -49,7 +49,12 @@ public class VariableArchiveItemServiceImpl extends Service implements VariableA
@Override
public int batchInsert(List<VariableArchiveItemPO> insertList) {
return getVariableArchiveItemMapper().batchInsert(insertList);
if (CollectionUtils.isEmpty(insertList)) {
return 0;
}
List<List<VariableArchiveItemPO>> partition = Lists.partition(insertList, 50);
partition.forEach(part -> getVariableArchiveItemMapper().batchInsert(part));
return 0;
}
@Override