|
|
@@ -74,13 +74,16 @@ public class DRyxxsjyServiceImpl implements DRyxxsjyService {
|
|
74
|
74
|
dRyxxsjyVO.setRotaterotateVOList(rotaterotateVOList);
|
|
75
|
75
|
// 文件
|
|
76
|
76
|
rotaterotateVOList.forEach(rotateVO -> {
|
|
77
|
|
- if (StringUtils.hasText(rotateVO.getSerialNumber())) {
|
|
78
|
|
- FileObject data = fileUrlUtil.getData(rotateVO.getSerialNumber(), sptFile);
|
|
79
|
|
- if (!ObjectUtils.isEmpty(data)) {
|
|
80
|
|
- rotateVO.setFileUrl(data.getLink());
|
|
81
|
|
- rotateVO.setFileName(data.getName());
|
|
|
77
|
+ if (!ObjectUtils.isEmpty(rotateVO)) {
|
|
|
78
|
+ if (StringUtils.hasText(rotateVO.getSerialNumber())) {
|
|
|
79
|
+ FileObject data = fileUrlUtil.getData(rotateVO.getSerialNumber(), sptFile);
|
|
|
80
|
+ if (!ObjectUtils.isEmpty(data)) {
|
|
|
81
|
+ rotateVO.setFileUrl(data.getLink());
|
|
|
82
|
+ rotateVO.setFileName(data.getName());
|
|
|
83
|
+ }
|
|
82
|
84
|
}
|
|
83
|
85
|
}
|
|
|
86
|
+
|
|
84
|
87
|
});
|
|
85
|
88
|
}
|
|
86
|
89
|
// 技能等级
|
|
|
@@ -94,13 +97,16 @@ public class DRyxxsjyServiceImpl implements DRyxxsjyService {
|
|
94
|
97
|
dRyxxsjyVO.setReportVOList(reportVOList);
|
|
95
|
98
|
// 文件
|
|
96
|
99
|
reportVOList.forEach(reportVO -> {
|
|
97
|
|
- if (StringUtils.hasText(reportVO.getFjid())) {
|
|
98
|
|
- FileObject data = fileUrlUtil.getData(reportVO.getFjid(), sptFile);
|
|
99
|
|
- if (!ObjectUtils.isEmpty(data)) {
|
|
100
|
|
- reportVO.setFileUrl(data.getLink());
|
|
101
|
|
- reportVO.setFileName(data.getName());
|
|
|
100
|
+ if (!ObjectUtils.isEmpty(reportVO)) {
|
|
|
101
|
+ if (StringUtils.hasText(reportVO.getFjid())) {
|
|
|
102
|
+ FileObject data = fileUrlUtil.getData(reportVO.getFjid(), sptFile);
|
|
|
103
|
+ if (!ObjectUtils.isEmpty(data)) {
|
|
|
104
|
+ reportVO.setFileUrl(data.getLink());
|
|
|
105
|
+ reportVO.setFileName(data.getName());
|
|
|
106
|
+ }
|
|
102
|
107
|
}
|
|
103
|
108
|
}
|
|
|
109
|
+
|
|
104
|
110
|
});
|
|
105
|
111
|
}
|
|
106
|
112
|
// 上岗其它证书
|
|
|
@@ -109,11 +115,13 @@ public class DRyxxsjyServiceImpl implements DRyxxsjyService {
|
|
109
|
115
|
dRyxxsjyVO.setCertificatesVOList(certificatesVOList);
|
|
110
|
116
|
// 文件
|
|
111
|
117
|
certificatesVOList.forEach(certificatesVO -> {
|
|
112
|
|
- if (StringUtils.hasText(certificatesVO.getFjid())) {
|
|
113
|
|
- FileObject data = fileUrlUtil.getData(certificatesVO.getFjid(), sptFile);
|
|
114
|
|
- if (!ObjectUtils.isEmpty(data)) {
|
|
115
|
|
- certificatesVO.setFileUrl(data.getLink());
|
|
116
|
|
- certificatesVO.setFileName(data.getName());
|
|
|
118
|
+ if (!ObjectUtils.isEmpty(certificatesVO)) {
|
|
|
119
|
+ if (StringUtils.hasText(certificatesVO.getFjid())) {
|
|
|
120
|
+ FileObject data = fileUrlUtil.getData(certificatesVO.getFjid(), sptFile);
|
|
|
121
|
+ if (!ObjectUtils.isEmpty(data)) {
|
|
|
122
|
+ certificatesVO.setFileUrl(data.getLink());
|
|
|
123
|
+ certificatesVO.setFileName(data.getName());
|
|
|
124
|
+ }
|
|
117
|
125
|
}
|
|
118
|
126
|
}
|
|
119
|
127
|
});
|