|
|
@ -1357,7 +1357,13 @@ public class RoutingManagementServiceImpl extends ServiceImpl<RoutingManagementM |
|
|
} |
|
|
} |
|
|
// 修改 |
|
|
// 修改 |
|
|
if (!toUpdate.isEmpty()) { |
|
|
if (!toUpdate.isEmpty()) { |
|
|
routingManagementMapper.syncUpdateLocation(toUpdate); |
|
|
|
|
|
|
|
|
// 分批修改 |
|
|
|
|
|
int batchSize = 100; // 假设每批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); |
|
|
|
|
|
routingManagementMapper.syncUpdateLocation(subList); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -1426,7 +1432,13 @@ public class RoutingManagementServiceImpl extends ServiceImpl<RoutingManagementM |
|
|
} |
|
|
} |
|
|
// 修改 |
|
|
// 修改 |
|
|
if (!toUpdate.isEmpty()) { |
|
|
if (!toUpdate.isEmpty()) { |
|
|
routingManagementMapper.syncUpdateLaborClass(toUpdate); |
|
|
|
|
|
|
|
|
// 分批修改 |
|
|
|
|
|
int batchSize = 100; // 假设每批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); |
|
|
|
|
|
routingManagementMapper.syncUpdateLaborClass(subList); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -1495,7 +1507,13 @@ public class RoutingManagementServiceImpl extends ServiceImpl<RoutingManagementM |
|
|
} |
|
|
} |
|
|
// 修改 |
|
|
// 修改 |
|
|
if (!toUpdate.isEmpty()) { |
|
|
if (!toUpdate.isEmpty()) { |
|
|
routingManagementMapper.syncUpdateWorkCenter(toUpdate); |
|
|
|
|
|
|
|
|
// 分批修改 |
|
|
|
|
|
int batchSize = 100; // 假设每批100条记录 |
|
|
|
|
|
for (int i = 0; i < toUpdate.size(); i += batchSize) { |
|
|
|
|
|
int end = Math.min(i + batchSize, toUpdate.size()); |
|
|
|
|
|
List<WorkCenter> subList = toUpdate.subList(i, end); |
|
|
|
|
|
routingManagementMapper.syncUpdateWorkCenter(subList); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|