修改查询语句

master
lwj 2024-09-09 15:52:44 +08:00
parent ae01508940
commit bad49701ba
1 changed files with 1 additions and 1 deletions

View File

@ -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, 1000); List<DataValue[][]> batches = splitData(listList, 500);
try (Connection conn = hikariDataSource.getConnection()) { try (Connection conn = hikariDataSource.getConnection()) {
conn.setAutoCommit(false); // 开启事务 conn.setAutoCommit(false); // 开启事务