|
|
|
@ -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());
|
|
|
|
|