This commit is contained in:
Harryxzy 2023-12-06 15:55:47 +08:00
parent 4eb931686e
commit 2a02e17c15
1 changed files with 5 additions and 4 deletions

View File

@ -1151,12 +1151,13 @@ public class SalaryAcctResultServiceImpl extends Service implements SalaryAcctRe
});
// 入库
if (CollectionUtils.isNotEmpty(needUpdateList)) {
getSalaryAcctResultMapper().batchUpdate(needUpdateList);
}
// 数据加密
encryptUtil.encryptList(needUpdateList, SalaryAcctResultPO.class);
List<List<SalaryAcctResultPO>> partition = Lists.partition(needUpdateList, 100);
partition.forEach(getSalaryAcctResultMapper()::batchUpdate);
if (CollectionUtils.isNotEmpty(needInsertList)) {
getSalaryAcctResultMapper().batchInsert(needInsertList);
}
batchSave(needInsertList);
}
}