From 8154749352e03d6b5ef46606686a45f1d5564861 Mon Sep 17 00:00:00 2001 From: "zhenghaiyang@ele-cloud.com" Date: Sat, 15 Apr 2023 18:04:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E7=AE=B1=E9=87=87=E9=9B=86-=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/dxhy/core/task/SnEmailGatherTask.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dxhy-core/src/main/java/com/dxhy/core/task/SnEmailGatherTask.java b/dxhy-core/src/main/java/com/dxhy/core/task/SnEmailGatherTask.java index 622f3e94..4d10bca9 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/task/SnEmailGatherTask.java +++ b/dxhy-core/src/main/java/com/dxhy/core/task/SnEmailGatherTask.java @@ -79,6 +79,7 @@ public class SnEmailGatherTask { } log.info("邮箱采集接口执行结束--"); } catch (Exception e) { + log.error("邮箱采集错误日志:{}", e); e.printStackTrace(); } finally { log.info("邮箱采集--重置执行状态"); @@ -164,6 +165,7 @@ public class SnEmailGatherTask { map.put("emailName",emailName); String pdfStream = map.get("pdfStream"); if(StringUtils.isNotBlank(pdfStream)){ + log.debug("开始调用山能OCR识别---------"); List openServiceOcrs = openServicePlatformService.ocrInvoice(pdfStream); if(openServiceOcrs != null && !openServiceOcrs.isEmpty()){ Map ocrResult = convertToOcrResult(openServiceOcrs, map, maintainVo); @@ -213,8 +215,10 @@ public class SnEmailGatherTask { store.close(); log.info("邮箱采集使用时间:{}",System.currentTimeMillis() - startTime); } catch (MessagingException e) { + log.error("邮箱采集邮件解析异常:{}", e); throw new RuntimeException(e); } catch (IOException e) { + log.error("邮箱采集IO异常:{}", e); throw new RuntimeException(e); } }