提交 78dc1646 authored 作者: zhoushaopan's avatar zhoushaopan

feat(自查模块): 修改了保存自查慢

修改了保存自查慢
上级 b99d91c2
...@@ -401,7 +401,10 @@ public class SelfCheckController { ...@@ -401,7 +401,10 @@ public class SelfCheckController {
historyDeviceBillList.add(historyDeviceBill); historyDeviceBillList.add(historyDeviceBill);
}); });
//保存 //保存
executor.execute(()->{
historyDeviceBillService.batchSave(historyDeviceBillList); historyDeviceBillService.batchSave(historyDeviceBillList);
});
// historyDeviceBillService.batchSave(historyDeviceBillList);
} }
}else { }else {
// 是0 和1 // 是0 和1
...@@ -423,7 +426,10 @@ public class SelfCheckController { ...@@ -423,7 +426,10 @@ public class SelfCheckController {
historyDeviceBillList.add(historyDeviceBill); historyDeviceBillList.add(historyDeviceBill);
}); });
//保存 //保存
// historyDeviceBillService.batchSave(historyDeviceBillList);
executor.execute(()->{
historyDeviceBillService.batchSave(historyDeviceBillList); historyDeviceBillService.batchSave(historyDeviceBillList);
});
} }
List<DeviceLibrary> checkDeviceList0 = selfCheckSaveVo.getCheckDeviceList0(); List<DeviceLibrary> checkDeviceList0 = selfCheckSaveVo.getCheckDeviceList0();
if (checkDeviceList0.size() > 0){ if (checkDeviceList0.size() > 0){
...@@ -443,7 +449,10 @@ public class SelfCheckController { ...@@ -443,7 +449,10 @@ public class SelfCheckController {
historyDeviceBillList.add(historyDeviceBill); historyDeviceBillList.add(historyDeviceBill);
}); });
//保存 //保存
// historyDeviceBillService.batchSave(historyDeviceBillList);
executor.execute(()->{
historyDeviceBillService.batchSave(historyDeviceBillList); historyDeviceBillService.batchSave(historyDeviceBillList);
});
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论