修改批量插入大小
This commit is contained in:
parent
42e91e32da
commit
05a9b9e9b2
|
|
@ -154,7 +154,7 @@ public class TaxAgentEmpServiceImpl extends Service implements TaxAgentEmpServic
|
|||
// 关联表====================================================
|
||||
// 新增
|
||||
if (CollectionUtils.isNotEmpty(taxAgentEmployeeAddList)) {
|
||||
List<List<TaxAgentEmpPO>> partition = Lists.partition(taxAgentEmployeeAddList, 100);
|
||||
List<List<TaxAgentEmpPO>> partition = Lists.partition(taxAgentEmployeeAddList, 50);
|
||||
partition.forEach(getTaxAgentEmpMapper()::batchInsert);
|
||||
}
|
||||
// 删除
|
||||
|
|
@ -250,7 +250,7 @@ public class TaxAgentEmpServiceImpl extends Service implements TaxAgentEmpServic
|
|||
// 关联表====================================================
|
||||
// 新增
|
||||
if (CollectionUtils.isNotEmpty(taxAgentEmployeeAddList)) {
|
||||
List<List<TaxAgentEmpPO>> partition = Lists.partition(taxAgentEmployeeAddList, 100);
|
||||
List<List<TaxAgentEmpPO>> partition = Lists.partition(taxAgentEmployeeAddList, 50);
|
||||
partition.forEach(getTaxAgentEmpMapper()::batchInsert);
|
||||
}
|
||||
// 删除
|
||||
|
|
|
|||
Loading…
Reference in New Issue