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 93ccd70..d154243 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,11 +205,12 @@ public class ApiController { @Async public Result restartTask() throws InterruptedException { //获取未执行完的任务 - /*List list = ocrIdentifyService.list(new LambdaQueryWrapper().eq(OcrIdentify::getStatus,"1")); - for (OcrIdentify ocrIdentify : list) { + /*List list = ocrIdentifyService.list(new LambdaQueryWrapper().eq(OcrIdentify::getStatus,"0"));*/ + /*for (OcrIdentify ocrIdentify : list) { ocrIdentifyService.updateTaskResultInfo(ocrIdentify.getId()); }*/ - List list = ocrIdentifyService.list(new LambdaQueryWrapper().in(OcrIdentify::getStatus, "0","2").eq(OcrIdentify::getRuleCheck,"1688885402495229954")); + + List list = ocrIdentifyService.list(new LambdaQueryWrapper().in(OcrIdentify::getStatus, "0","2")); List identifyIdList = list.stream().map(l -> l.getId()).collect(Collectors.toList()); if (identifyIdList.size()>0) { ocrIdentifyDetailService.remove(new LambdaQueryWrapper().in(OcrIdentifyDetail::getIdentifyId,identifyIdList));