|
|
|
@ -151,9 +151,11 @@ public class SnEmailGatherTask { |
|
|
|
|
} |
|
|
|
|
gatherLogVo.setMsgUid(uid); |
|
|
|
|
boolean isContainerAttachment = EmailParseUtils.isContainAttachment(msg); |
|
|
|
|
log.debug("是否有附件: "+isContainerAttachment); |
|
|
|
|
if(isContainerAttachment){ |
|
|
|
|
List<Map<String, String>> mapList = Lists.newArrayList(); |
|
|
|
|
EmailParseUtils.saveAttachment(msg, mapList); |
|
|
|
|
log.debug("获取附件的数量:"+mapList.size()); |
|
|
|
|
for (Map<String, String> map : mapList) { |
|
|
|
|
map.put("emailName",emailName); |
|
|
|
|
String pdfStream = map.get("pdfStream"); |
|
|
|
@ -184,6 +186,8 @@ public class SnEmailGatherTask { |
|
|
|
|
throw new RuntimeException(e); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}else { |
|
|
|
|
log.debug("山能OCR识别失败------"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|