Browse Source

员工信息-文件

hanqingsong 1 year ago
parent
commit
da294d70c0

+ 2 - 1
src/main/java/com/chinaitop/depot/basic/mapper/DRyxxsjyMapper.xml

@@ -47,7 +47,8 @@
47 47
            ry.zgzctqsj,
48 48
            ry.rotaterotate_type rotaterotateType,
49 49
            ry.head,
50
-           ry.avatorurl avatorUrl
50
+           ry.avatorurl avatorUrl,
51
+           ry.ryfj
51 52
         from
52 53
             base:d_ryxxsjy ry
53 54
         left join base:d_ryzwlxb zwlx on zwlx.rysfzh = ry.sfzh and zwlx.qymc = ry.qymc

+ 5 - 0
src/main/java/com/chinaitop/depot/basic/model/DRyxxsjyVO.java

@@ -342,4 +342,9 @@ public class DRyxxsjyVO {
342 342
 	private String fileUrl;
343 343
 	@ApiModelProperty(value = "文件名称")
344 344
 	private String fileName;
345
+
346
+	@ApiModelProperty(value = "文件url")
347
+	private String ryfjFileUrl;
348
+	@ApiModelProperty(value = "文件名称")
349
+	private String ryfjFileName;
345 350
 }

+ 18 - 1
src/main/java/com/chinaitop/depot/basic/service/impl/DRyxxsjyServiceImpl.java

@@ -16,6 +16,7 @@ import org.springframework.web.client.RestTemplate;
16 16
 
17 17
 import javax.annotation.Resource;
18 18
 import java.util.List;
19
+import java.util.StringJoiner;
19 20
 
20 21
 /**
21 22
  * @author qingsong.han
@@ -112,7 +113,22 @@ public class DRyxxsjyServiceImpl implements DRyxxsjyService {
112 113
                 }
113 114
             });
114 115
         }
115
-        // 其它附件-暂无
116
+        // 其它附件
117
+        String ryfjStrS = dRyxxsjyVO.getRyfj();
118
+        if (StringUtils.hasText(ryfjStrS)) {
119
+            String[] ryfjs = ryfjStrS.split(",");
120
+            StringJoiner link = new StringJoiner(",");
121
+            StringJoiner name = new StringJoiner(",");
122
+            for (String ryfj : ryfjs) {
123
+                FileObject data = fileUrlUtil.getData(dRyxxsjyVO.getRyfj());
124
+                if (!ObjectUtils.isEmpty(data)) {
125
+                    link.add(data.getLink());
126
+                    name.add(data.getName());
127
+                }
128
+            }
129
+            dRyxxsjyVO.setRyfjFileUrl(link.toString());
130
+            dRyxxsjyVO.setRyfjFileName(name.toString());
131
+        }
116 132
         // 职务类型变更记录
117 133
         List<ZwlxbgjlVO> zwlxbgjlVOList = dRyxxsjyMapper.getZwlxbgjlListById(dRyxxsjyVO.getSfzh());
118 134
         if (!CollectionUtils.isEmpty(zwlxbgjlVOList)) {
@@ -120,4 +136,5 @@ public class DRyxxsjyServiceImpl implements DRyxxsjyService {
120 136
         }
121 137
         return dRyxxsjyVO;
122 138
     }
139
+
123 140
 }