|
|
@@ -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());
|