|
|
|
@ -1358,7 +1358,7 @@ public class RoutingManagementServiceImpl extends ServiceImpl<RoutingManagementM |
|
|
|
// 修改 |
|
|
|
if (!toUpdate.isEmpty()) { |
|
|
|
// 分批修改 |
|
|
|
int batchSize = 100; // 假设每批100条记录 |
|
|
|
int batchSize = 200; // 假设每批100条记录 |
|
|
|
for (int i = 0; i < toUpdate.size(); i += batchSize) { |
|
|
|
int end = Math.min(i + batchSize, toUpdate.size()); |
|
|
|
List<LocationInformationEntity> subList = toUpdate.subList(i, end); |
|
|
|
@ -1433,7 +1433,7 @@ public class RoutingManagementServiceImpl extends ServiceImpl<RoutingManagementM |
|
|
|
// 修改 |
|
|
|
if (!toUpdate.isEmpty()) { |
|
|
|
// 分批修改 |
|
|
|
int batchSize = 100; // 假设每批100条记录 |
|
|
|
int batchSize = 200; // 假设每批100条记录 |
|
|
|
for (int i = 0; i < toUpdate.size(); i += batchSize) { |
|
|
|
int end = Math.min(i + batchSize, toUpdate.size()); |
|
|
|
List<PersonnelLevel> subList = toUpdate.subList(i, end); |
|
|
|
|