配置文件修改

devhuozheluoji
郭向斌 2 years ago
parent af81d8b1be
commit c325db2c58

@ -71,13 +71,11 @@ public class HandleCallbacklnit implements ApplicationRunner {
e.printStackTrace();
}
List<OcrIdentify> 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());

@ -428,9 +428,7 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
OcrIdentify ocrIdentify = super.getById(ocrIdentifyId);
List<OcrIdentifyDetail> 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);

@ -29,7 +29,7 @@ public class CallBackWlyUtils {
public static boolean callbackWly(OcrIdentify ocrIdentify, List<OcrIdentifyDetail> identifyDetails) {
String requestId = ocrIdentify.getRequestId();
log.info("数据准备:{}",ocrIdentify);
log.info("数据准备:{}",requestId);
//请求对象
CallBackWlyResult result = new CallBackWlyResult();

Loading…
Cancel
Save