diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/controller/ApiController.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/controller/ApiController.java index be06b0d..93ccd70 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/controller/ApiController.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/controller/ApiController.java @@ -205,7 +205,11 @@ public class ApiController { @Async public Result restartTask() throws InterruptedException { //获取未执行完的任务 - List list = ocrIdentifyService.list(new LambdaQueryWrapper().in(OcrIdentify::getStatus, "0","2")); + /*List list = ocrIdentifyService.list(new LambdaQueryWrapper().eq(OcrIdentify::getStatus,"1")); + for (OcrIdentify ocrIdentify : list) { + ocrIdentifyService.updateTaskResultInfo(ocrIdentify.getId()); + }*/ + List list = ocrIdentifyService.list(new LambdaQueryWrapper().in(OcrIdentify::getStatus, "0","2").eq(OcrIdentify::getRuleCheck,"1688885402495229954")); List identifyIdList = list.stream().map(l -> l.getId()).collect(Collectors.toList()); if (identifyIdList.size()>0) { ocrIdentifyDetailService.remove(new LambdaQueryWrapper().in(OcrIdentifyDetail::getIdentifyId,identifyIdList));