master
周文涛 2 years ago
parent d528dad28f
commit ed6b8df54a

@ -315,13 +315,14 @@ public class OcrIdentifyController extends JeecgController<OcrIdentify, IOcrIden
@ApiOperation(value = "上报通知给无量云")
@PostMapping(value = "/pushNotice")
public Result<?> pushNotice(@RequestParam(name = "id", required = true) String id){
public Result<?> pushNotice(@RequestBody OcrIdentify ocrIdentify){
String id = ocrIdentify.getId();
List<OcrIdentify> 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);

Loading…
Cancel
Save