修改查询语句
parent
88e670fb69
commit
ae01508940
|
@ -503,7 +503,7 @@ public int addProduct(Long basicId, Long tableId, DataValue[][] listList) {
|
||||||
AtomicInteger addCount = new AtomicInteger();
|
AtomicInteger addCount = new AtomicInteger();
|
||||||
|
|
||||||
// 分割数据为较小的批次
|
// 分割数据为较小的批次
|
||||||
List<DataValue[][]> batches = splitData(listList, 2000);
|
List<DataValue[][]> batches = splitData(listList, 1000);
|
||||||
|
|
||||||
try (Connection conn = hikariDataSource.getConnection()) {
|
try (Connection conn = hikariDataSource.getConnection()) {
|
||||||
conn.setAutoCommit(false); // 开启事务
|
conn.setAutoCommit(false); // 开启事务
|
||||||
|
|
Loading…
Reference in New Issue