Merge branch 'feature/240801-浮动薪资' into custom/京贵投资
This commit is contained in:
commit
89d12fe8fe
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue