master
周文涛 2 years ago
parent f7c5914775
commit 0c7ea504ff

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

Loading…
Cancel
Save