|
@@ -238,7 +238,9 @@ public class DataDashboardService {
|
|
|
BeanUtils.copyProperties(newSortStrategyExport, item);
|
|
|
saveList.add(item);
|
|
|
}
|
|
|
- crawlerBaseMapper.batchInsertDatastatSortStrategy(saveList);
|
|
|
+ for (List<DatastatSortStrategy> saveListPartition : Lists.partition(saveList, 1000)) {
|
|
|
+ crawlerBaseMapper.batchInsertDatastatSortStrategy(saveListPartition);
|
|
|
+ }
|
|
|
}
|
|
|
return result;
|
|
|
}
|