|
|
|
@ -167,6 +167,12 @@ public class SnEmailGatherTask { |
|
|
|
|
List<Map<String, String>> mapList = Lists.newArrayList(); |
|
|
|
|
EmailParseUtils.saveAttachment(msg, mapList); |
|
|
|
|
log.debug("获取附件的数量:"+mapList.size()); |
|
|
|
|
if(StringUtils.isNotEmpty(maintainVo.getUserId())){ |
|
|
|
|
String username = emailMaintainService.getUserByUsername(maintainVo.getUserId()); |
|
|
|
|
if(StringUtils.isNotEmpty(username)){ |
|
|
|
|
maintainVo.setUserId(username); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
for (Map<String, String> map : mapList) { |
|
|
|
|
map.put("emailName",emailName); |
|
|
|
|
String pdfStream = map.get("pdfStream"); |
|
|
|
@ -238,7 +244,7 @@ public class SnEmailGatherTask { |
|
|
|
|
mailGatherLogService.insert(gatherLogVo); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static Map<String, Object> convertToOcrResult(List<OpenServiceOcr> openServiceOcrs, Map<String, String> map,EmailMaintainVo maintainVo){ |
|
|
|
|
public Map<String, Object> convertToOcrResult(List<OpenServiceOcr> openServiceOcrs, Map<String, String> map,EmailMaintainVo maintainVo){ |
|
|
|
|
List<OcrResultToyxVo> resultToyxVoList = Lists.newArrayList(); |
|
|
|
|
Map<String, Object> hashMap = Maps.newHashMap(); |
|
|
|
|
String batchId = String.valueOf(System.currentTimeMillis()); |
|
|
|
@ -260,7 +266,6 @@ public class SnEmailGatherTask { |
|
|
|
|
resultToyxVo.setFileByte(map.get("pdfStream")); |
|
|
|
|
resultToyxVo.setEmail(map.get("emailName")); |
|
|
|
|
resultToyxVo.setEmployeeId(maintainVo.getUserId()); |
|
|
|
|
|
|
|
|
|
resultToyxVoList.add(resultToyxVo); |
|
|
|
|
} |
|
|
|
|
hashMap.put("list",resultToyxVoList); |
|
|
|
|