diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/controller/OcrIdentifyController.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/controller/OcrIdentifyController.java index 50fc1f3..50194cc 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/controller/OcrIdentifyController.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/controller/OcrIdentifyController.java @@ -315,13 +315,14 @@ public class OcrIdentifyController extends JeecgController pushNotice(@RequestParam(name = "id", required = true) String id){ + public Result pushNotice(@RequestBody OcrIdentify ocrIdentify){ + String id = ocrIdentify.getId(); List ocrIdentifyList = ocrIdentifyService.listByIds(Arrays.asList(id.split(","))); if (ocrIdentifyList==null|| ocrIdentifyList.size()==0) { return Result.error("未获取到任务"); } - for (OcrIdentify ocrIdentify : ocrIdentifyList) { - AssertUtils.isTrue("1".equals(ocrIdentify.getStatus()),String.format("[任务名称]-%s 当前正在识别中,不可进行通知回调",ocrIdentify.getTaskName())); + for (OcrIdentify entity : ocrIdentifyList) { + AssertUtils.isTrue("1".equals(entity.getStatus()),String.format("[任务名称]-%s 当前正在识别中,不可进行通知回调",entity.getTaskName())); } for (String identifyId : Arrays.asList(id.split(","))) { ocrIdentifyService.callbackWly(identifyId);