|
|
@@ -1,13 +1,18 @@
|
|
1
|
1
|
package com.chinaitop.depot.basic.service.impl;
|
|
2
|
2
|
|
|
|
3
|
+import com.alibaba.fastjson.JSON;
|
|
3
|
4
|
import com.chinaitop.depot.basic.mapper.DRyxxsjyMapper;
|
|
4
|
5
|
import com.chinaitop.depot.basic.model.DRyxxsjyVO;
|
|
5
|
6
|
import com.chinaitop.depot.basic.model.vo.*;
|
|
6
|
7
|
import com.chinaitop.depot.basic.param.DRyxxsjyPageParam;
|
|
|
8
|
+import com.chinaitop.depot.basic.param.FileObject;
|
|
|
9
|
+import com.chinaitop.depot.basic.param.FileParam;
|
|
7
|
10
|
import com.chinaitop.depot.basic.service.DRyxxsjyService;
|
|
|
11
|
+import com.chinaitop.depot.utils.FileUrlUtil;
|
|
|
12
|
+import org.springframework.beans.factory.annotation.Value;
|
|
8
|
13
|
import org.springframework.stereotype.Service;
|
|
9
|
|
-import org.springframework.util.CollectionUtils;
|
|
10
|
|
-import org.springframework.util.ObjectUtils;
|
|
|
14
|
+import org.springframework.util.*;
|
|
|
15
|
+import org.springframework.web.client.RestTemplate;
|
|
11
|
16
|
|
|
12
|
17
|
import javax.annotation.Resource;
|
|
13
|
18
|
import java.util.List;
|
|
|
@@ -18,9 +23,12 @@ import java.util.List;
|
|
18
|
23
|
* @create 2024-11-21 20:05
|
|
19
|
24
|
*/
|
|
20
|
25
|
@Service
|
|
|
26
|
+@SuppressWarnings("all")
|
|
21
|
27
|
public class DRyxxsjyServiceImpl implements DRyxxsjyService {
|
|
22
|
28
|
@Resource
|
|
23
|
29
|
private DRyxxsjyMapper dRyxxsjyMapper;
|
|
|
30
|
+ @Resource
|
|
|
31
|
+ private FileUrlUtil fileUrlUtil;
|
|
24
|
32
|
|
|
25
|
33
|
@Override
|
|
26
|
34
|
public List<DRyxxsjyVO> getPageList(DRyxxsjyPageParam pageParam) {
|
|
|
@@ -33,6 +41,16 @@ public class DRyxxsjyServiceImpl implements DRyxxsjyService {
|
|
33
|
41
|
if (ObjectUtils.isEmpty(dRyxxsjyVO)) {
|
|
34
|
42
|
return dRyxxsjyVO;
|
|
35
|
43
|
}
|
|
|
44
|
+
|
|
|
45
|
+ // 获取文件
|
|
|
46
|
+ if (StringUtils.hasText(dRyxxsjyVO.getAvatorUrl())) {
|
|
|
47
|
+ FileObject data = fileUrlUtil.getData(dRyxxsjyVO.getAvatorUrl());
|
|
|
48
|
+ if (!ObjectUtils.isEmpty(data)) {
|
|
|
49
|
+ dRyxxsjyVO.setFileUrl(data.getLink());
|
|
|
50
|
+ dRyxxsjyVO.setFileName(data.getName());
|
|
|
51
|
+ }
|
|
|
52
|
+ }
|
|
|
53
|
+
|
|
36
|
54
|
// 学历学位情况
|
|
37
|
55
|
// 全日制
|
|
38
|
56
|
List<EducationVO> educationVOList = dRyxxsjyMapper.getQuanById(rybh);
|
|
|
@@ -48,6 +66,16 @@ public class DRyxxsjyServiceImpl implements DRyxxsjyService {
|
|
48
|
66
|
List<RotaterotateVO> rotaterotateVOList = dRyxxsjyMapper.getRotaterotateById(rybh);
|
|
49
|
67
|
if (!CollectionUtils.isEmpty(rotaterotateVOList)) {
|
|
50
|
68
|
dRyxxsjyVO.setRotaterotateVOList(rotaterotateVOList);
|
|
|
69
|
+ // 文件
|
|
|
70
|
+ rotaterotateVOList.forEach(rotateVO -> {
|
|
|
71
|
+ if (StringUtils.hasText(rotateVO.getSerialNumber())) {
|
|
|
72
|
+ FileObject data = fileUrlUtil.getData(rotateVO.getSerialNumber());
|
|
|
73
|
+ if (!ObjectUtils.isEmpty(data)) {
|
|
|
74
|
+ rotateVO.setFileUrl(data.getLink());
|
|
|
75
|
+ rotateVO.setFileName(data.getName());
|
|
|
76
|
+ }
|
|
|
77
|
+ }
|
|
|
78
|
+ });
|
|
51
|
79
|
}
|
|
52
|
80
|
// 技能等级
|
|
53
|
81
|
List<SkillVO> skillVOList = dRyxxsjyMapper.getSkillListById(rybh);
|
|
|
@@ -58,11 +86,31 @@ public class DRyxxsjyServiceImpl implements DRyxxsjyService {
|
|
58
|
86
|
List<ReportVO> reportVOList = dRyxxsjyMapper.getReportListById(rybh);
|
|
59
|
87
|
if (!CollectionUtils.isEmpty(reportVOList)) {
|
|
60
|
88
|
dRyxxsjyVO.setReportVOList(reportVOList);
|
|
|
89
|
+ // 文件
|
|
|
90
|
+ reportVOList.forEach(reportVO -> {
|
|
|
91
|
+ if (StringUtils.hasText(reportVO.getFjid())) {
|
|
|
92
|
+ FileObject data = fileUrlUtil.getData(reportVO.getFjid());
|
|
|
93
|
+ if (!ObjectUtils.isEmpty(data)) {
|
|
|
94
|
+ reportVO.setFileUrl(data.getLink());
|
|
|
95
|
+ reportVO.setFileName(data.getName());
|
|
|
96
|
+ }
|
|
|
97
|
+ }
|
|
|
98
|
+ });
|
|
61
|
99
|
}
|
|
62
|
100
|
// 上岗其它证书
|
|
63
|
101
|
List<CertificatesVO> certificatesVOList = dRyxxsjyMapper.getCertificatesListById(rybh);
|
|
64
|
102
|
if (!CollectionUtils.isEmpty(certificatesVOList)) {
|
|
65
|
103
|
dRyxxsjyVO.setCertificatesVOList(certificatesVOList);
|
|
|
104
|
+ // 文件
|
|
|
105
|
+ certificatesVOList.forEach(certificatesVO -> {
|
|
|
106
|
+ if (StringUtils.hasText(certificatesVO.getFjid())) {
|
|
|
107
|
+ FileObject data = fileUrlUtil.getData(certificatesVO.getFjid());
|
|
|
108
|
+ if (!ObjectUtils.isEmpty(data)) {
|
|
|
109
|
+ certificatesVO.setFileUrl(data.getLink());
|
|
|
110
|
+ certificatesVO.setFileName(data.getName());
|
|
|
111
|
+ }
|
|
|
112
|
+ }
|
|
|
113
|
+ });
|
|
66
|
114
|
}
|
|
67
|
115
|
// 其它附件-暂无
|
|
68
|
116
|
// 职务类型变更记录
|