| | |
| | | if (StringUtils.isNotBlank(t482101HEntity.getAttachmentList())) {//附件的处理 |
| | | //获取到附件内容 |
| | | List<AttachmentEntity> attachmentEntities = mailFileIfc.getAttachmentEntityList(t482101HEntity.getAttachmentList()); |
| | | List<Map<String,Object>> list = new ArrayList<>(); |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | | if (attachmentEntities.size() > 0) { |
| | | for (AttachmentEntity a : attachmentEntities) { |
| | | Map<String,Object> map=new HashMap<>(); |
| | | map.put("url",shoppingImageServer + "/uploads/email/" + dataSourceEntity.getDbId() + "/482101/" + a.getUnid() + "@p@" + a.getPhysicalFile()); |
| | | map.put("name",a.getOriginalFileName()); |
| | | map.put("size",a.getFileSize()); |
| | | map.put("fileType",a.getFileType()); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("url", shoppingImageServer + "/uploads/email/" + dataSourceEntity.getDbId() + "/482101/" + a.getUnid() + "@p@" + a.getPhysicalFile()); |
| | | if (!t482101HEntity.getMailType().equals(1)) {//不是收件类型(1) |
| | | map.put("url", shoppingImageServer + "/uploads/attachment/" + dataSourceEntity.getDbId() + "/482101/" + a.getUnid() + "@p@" + a.getSeq() + "." + a.getFileType()); |
| | | } |
| | | map.put("name", a.getOriginalFileName()); |
| | | map.put("size", a.getFileSize()); |
| | | map.put("fileType", a.getFileType()); |
| | | list.add(map); |
| | | } |
| | | t482101HEntity.setAttachmentPath(list); |