hanqingsong 1 gadu atpakaļ
vecāks
revīzija
077551d801

+ 1 - 4
src/main/java/com/chinaitop/depot/basic/model/DRyxxsjyVO.java

@@ -343,8 +343,5 @@ public class DRyxxsjyVO {
343 343
 	@ApiModelProperty(value = "文件名称")
344 344
 	private String fileName;
345 345
 
346
-	@ApiModelProperty(value = "文件url")
347
-	private String ryfjFileUrl;
348
-	@ApiModelProperty(value = "文件名称")
349
-	private String ryfjFileName;
346
+	private List<RyfjFileVO> ryfjFileVOList;
350 347
 }

+ 20 - 0
src/main/java/com/chinaitop/depot/basic/model/RyfjFileVO.java

@@ -0,0 +1,20 @@
1
+package com.chinaitop.depot.basic.model;
2
+
3
+import io.swagger.annotations.ApiModelProperty;
4
+import lombok.Getter;
5
+import lombok.Setter;
6
+
7
+/**
8
+ * @author qingsong.han
9
+ * @description:
10
+ * @create 2024-12-18 11:04
11
+ */
12
+@Getter
13
+@Setter
14
+public class RyfjFileVO {
15
+
16
+    @ApiModelProperty(value = "文件url")
17
+    private String ryfjFileUrl;
18
+    @ApiModelProperty(value = "文件名称")
19
+    private String ryfjFileName;
20
+}

+ 8 - 6
src/main/java/com/chinaitop/depot/basic/service/impl/DRyxxsjyServiceImpl.java

@@ -3,6 +3,7 @@ package com.chinaitop.depot.basic.service.impl;
3 3
 import com.alibaba.fastjson.JSON;
4 4
 import com.chinaitop.depot.basic.mapper.DRyxxsjyMapper;
5 5
 import com.chinaitop.depot.basic.model.DRyxxsjyVO;
6
+import com.chinaitop.depot.basic.model.RyfjFileVO;
6 7
 import com.chinaitop.depot.basic.model.vo.*;
7 8
 import com.chinaitop.depot.basic.param.DRyxxsjyPageParam;
8 9
 import com.chinaitop.depot.basic.param.FileObject;
@@ -15,6 +16,7 @@ import org.springframework.util.*;
15 16
 import org.springframework.web.client.RestTemplate;
16 17
 
17 18
 import javax.annotation.Resource;
19
+import java.util.ArrayList;
18 20
 import java.util.List;
19 21
 import java.util.StringJoiner;
20 22
 
@@ -116,18 +118,18 @@ public class DRyxxsjyServiceImpl implements DRyxxsjyService {
116 118
         // 其它附件
117 119
         String ryfjStrS = dRyxxsjyVO.getRyfj();
118 120
         if (StringUtils.hasText(ryfjStrS)) {
121
+            List<RyfjFileVO> ryfjFileVOList = new ArrayList<>();
119 122
             String[] ryfjs = ryfjStrS.split(",");
120
-            StringJoiner link = new StringJoiner(",");
121
-            StringJoiner name = new StringJoiner(",");
122 123
             for (String ryfj : ryfjs) {
123 124
                 FileObject data = fileUrlUtil.getData(dRyxxsjyVO.getRyfj());
124 125
                 if (!ObjectUtils.isEmpty(data)) {
125
-                    link.add(data.getLink());
126
-                    name.add(data.getName());
126
+                    RyfjFileVO ryfjFileVO = new RyfjFileVO();
127
+                    ryfjFileVO.setRyfjFileUrl(data.getLink());
128
+                    ryfjFileVO.setRyfjFileName(data.getName());
129
+                    ryfjFileVOList.add(ryfjFileVO);
127 130
                 }
128 131
             }
129
-            dRyxxsjyVO.setRyfjFileUrl(link.toString());
130
-            dRyxxsjyVO.setRyfjFileName(name.toString());
132
+            dRyxxsjyVO.setRyfjFileVOList(ryfjFileVOList);
131 133
         }
132 134
         // 职务类型变更记录
133 135
         List<ZwlxbgjlVO> zwlxbgjlVOList = dRyxxsjyMapper.getZwlxbgjlListById(dRyxxsjyVO.getSfzh());