diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/init/HandleCallbacklnit.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/init/HandleCallbacklnit.java index 3c15037..4403567 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/init/HandleCallbacklnit.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/init/HandleCallbacklnit.java @@ -71,13 +71,11 @@ public class HandleCallbacklnit implements ApplicationRunner { e.printStackTrace(); } List ocrIdentifyList = ocrIdentifyService.findNeNoticeList(autoPushNoticeMaxNum); - log.info("待回调任务:{}",ocrIdentifyList.size()); - log.info("待回调任务:{}",ocrIdentifyList); for (OcrIdentify ocrIdentify : ocrIdentifyList) { try { - log.info("回调:{}",ocrIdentify); + log.info("回调:{}",ocrIdentify.getIdentifyUrl()); ocrIdentifyService.callbackWly(ocrIdentify.getId()); - log.info("回调结束:{}",ocrIdentify); + log.info("回调结束:{}",ocrIdentify.getIdentifyUrl()); Thread.sleep(pushTimeInterval*1000); } catch (InterruptedException e) { log.error(e.getMessage()); diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/service/impl/OcrIdentifyServiceImpl.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/service/impl/OcrIdentifyServiceImpl.java index db68725..38c03eb 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/service/impl/OcrIdentifyServiceImpl.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/service/impl/OcrIdentifyServiceImpl.java @@ -428,9 +428,7 @@ public class OcrIdentifyServiceImpl extends ServiceImpl identifyDetailList = ocrIdentifyDetailService.listByIdentifyId(ocrIdentifyId); ocrIdentifyCallbackLog.setStartTime(date); - log.info("执行CallBackWlyUtils.callbackWly({}, {})",ocrIdentify,identifyDetailList); boolean b = CallBackWlyUtils.callbackWly(ocrIdentify, identifyDetailList); - log.info("执行CallBackWlyUtils.callbackWly 结束",ocrIdentify,identifyDetailList); ocrIdentifyCallbackLog.setStatus(b?1:0);//0-失败,1-成功 ocrIdentifyCallbackLog.setEndTime(new Date()); ocrIdentifyCallbackLogService.save(ocrIdentifyCallbackLog); diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/utils/CallBackWlyUtils.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/utils/CallBackWlyUtils.java index 64668d5..5072313 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/utils/CallBackWlyUtils.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/utils/CallBackWlyUtils.java @@ -29,7 +29,7 @@ public class CallBackWlyUtils { public static boolean callbackWly(OcrIdentify ocrIdentify, List identifyDetails) { String requestId = ocrIdentify.getRequestId(); - log.info("数据准备:{}",ocrIdentify); + log.info("数据准备:{}",requestId); //请求对象 CallBackWlyResult result = new CallBackWlyResult();