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 4cf49c3..50fc1f3 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,15 +315,15 @@ public class OcrIdentifyController extends JeecgController pushNotice(@RequestParam(name = "ids", required = true) String ids){ - List ocrIdentifyList = ocrIdentifyService.listByIds(Arrays.asList(ids.split(","))); + public Result pushNotice(@RequestParam(name = "id", required = true) String id){ + 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 (String identifyId : Arrays.asList(ids.split(","))) { + for (String identifyId : Arrays.asList(id.split(","))) { ocrIdentifyService.callbackWly(identifyId); } return Result.OK("操作成功");