09061033:对这个资产展示使用线程池的方法去做,第六次优化代码

master
冷调 2024-09-06 10:33:14 +08:00
parent c431f36d19
commit b911e8edeb
1 changed files with 1 additions and 3 deletions

View File

@ -58,8 +58,6 @@ public class DataValueServiceImpl extends ServiceImpl<DataValueMapper, DataValue
@Autowired
private DataSourceService dataSourceService;
@Autowired
private DataValueService dataValueService;
@Override
public List<List<DataValue>> findTableValue(DataValueModel dataValueModel) {
@ -256,7 +254,7 @@ public class DataValueServiceImpl extends ServiceImpl<DataValueMapper, DataValue
return CompletableFuture.runAsync(() -> {
try {
// 具体的批量处理逻辑,例如写入文件、更新数据库等
dataValueService.saveBatch(batch);
this.saveBatch(batch);
} catch (Exception e) {
// 异步处理中的异常处理
e.printStackTrace();