专项附加扣除导入 批量更新分片

This commit is contained in:
Harryxzy 2023-04-06 16:07:42 +08:00
parent cb46fccb16
commit 75d66e4cb9
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ public class SpecialAddDeductionBiz extends BaseBean {
try {
SpecialAddDeductionMapper mapper = sqlSession.getMapper(SpecialAddDeductionMapper.class);
encryptUtil.encryptList(param, SpecialAddDeductionPO.class);
List<List<SpecialAddDeductionPO>> partition = Lists.partition(param, 100);
List<List<SpecialAddDeductionPO>> partition = Lists.partition(param, 50);
partition.forEach(mapper::updateBatchSelective);
sqlSession.commit();
} finally {