master
周文涛 2 years ago
parent 5e2196b2cc
commit f2318b6bab

@ -210,7 +210,7 @@ public class ApiController {
if (identifyIdList.size()>0) { if (identifyIdList.size()>0) {
ocrIdentifyDetailService.remove(new LambdaQueryWrapper<OcrIdentifyDetail>().in(OcrIdentifyDetail::getIdentifyId,identifyIdList)); ocrIdentifyDetailService.remove(new LambdaQueryWrapper<OcrIdentifyDetail>().in(OcrIdentifyDetail::getIdentifyId,identifyIdList));
for (OcrIdentify ocrIdentify : list) { for (OcrIdentify ocrIdentify : list) {
log.info("打印ocrIdentifyId:",ocrIdentify.getId()); log.info("打印ocrIdentifyId:"+ocrIdentify.getId());
List<String> identifyUrlList = FileOUtils.fileLists(null, ocrIdentify.getIdentifyUrl()); List<String> identifyUrlList = FileOUtils.fileLists(null, ocrIdentify.getIdentifyUrl());
ocrIdentifyService.postSemantic(ocrIdentify,identifyUrlList); ocrIdentifyService.postSemantic(ocrIdentify,identifyUrlList);
} }

@ -425,6 +425,7 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
int taskLevel = jsonObject.getInteger("taskLevel"); int taskLevel = jsonObject.getInteger("taskLevel");
String parameter = jsonObject.getString("parameter"); String parameter = jsonObject.getString("parameter");
String task_ = (String) redisUtil.get("task_" + taskLevel); String task_ = (String) redisUtil.get("task_" + taskLevel);
log.info("历史任务:"+task_);
if (task_ == null || task_.equals("[]")) { if (task_ == null || task_.equals("[]")) {
//无历史任务 //无历史任务
TaskModel task = new TaskModel(taskId, taskLevel, taskType, "0", parameter); TaskModel task = new TaskModel(taskId, taskLevel, taskType, "0", parameter);

Loading…
Cancel
Save