|
|
@@ -35,6 +35,7 @@ import com.sundot.airport.common.enums.CheckLevelEnum;
|
|
35
|
35
|
import com.sundot.airport.common.enums.DeptType;
|
|
36
|
36
|
import com.sundot.airport.common.enums.DeptTypeEnum;
|
|
37
|
37
|
import com.sundot.airport.common.enums.RoleTypeEnum;
|
|
|
38
|
+import com.sundot.airport.common.enums.SourceTypeEnum;
|
|
38
|
39
|
import com.sundot.airport.common.exception.ServiceException;
|
|
39
|
40
|
import com.sundot.airport.common.utils.LargeScreenDateUtils;
|
|
40
|
41
|
import com.sundot.airport.common.utils.SecurityUtils;
|
|
|
@@ -89,7 +90,7 @@ public class CheckLargeScreenServiceImpl implements ICheckLargeScreenService {
|
|
89
|
90
|
* @return 计划安排总览
|
|
90
|
91
|
*/
|
|
91
|
92
|
@Override
|
|
92
|
|
- public List<CheckLargeScreenPlanOverviewDto> planOverview(CheckLargeScreenPlanQueryParamDto dto) {
|
|
|
93
|
+ public List<CheckLargeScreenPlanOverviewDto> planOverview(CheckLargeScreenPlanQueryParamDto dto, String source) {
|
|
93
|
94
|
// 1、参数校验
|
|
94
|
95
|
validateDateRange(dto.getStartDate(), dto.getEndDate());
|
|
95
|
96
|
// 2、生成日期序列
|
|
|
@@ -101,25 +102,27 @@ public class CheckLargeScreenServiceImpl implements ICheckLargeScreenService {
|
|
101
|
102
|
Map<String, String> sysDictDataMap = sysDictDataList.stream().collect(Collectors.toMap(SysDictData::getDictValue, SysDictData::getDictLabel));
|
|
102
|
103
|
List<String> typeList = sysDictDataList.stream().map(SysDictData::getDictValue).collect(Collectors.toList());
|
|
103
|
104
|
// 4、构建统计映射
|
|
104
|
|
- List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
105
|
|
- if (CollUtil.isEmpty(roles)) {
|
|
106
|
|
- return Collections.emptyList();
|
|
107
|
|
- }
|
|
108
|
|
- List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
109
|
|
- if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
110
|
|
- dto.setIsSelfCheck(null);
|
|
111
|
|
- dto.setCreateId(null);
|
|
112
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
113
|
|
- dto.setIsSelfCheck(0);
|
|
114
|
|
- dto.setCreateId(null);
|
|
115
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
116
|
|
- dto.setIsSelfCheck(0);
|
|
117
|
|
- dto.setCreateId(SecurityUtils.getLoginUser().getUserId());
|
|
118
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
119
|
|
- dto.setIsSelfCheck(0);
|
|
120
|
|
- dto.setCreateId(SecurityUtils.getLoginUser().getUserId());
|
|
121
|
|
- } else {
|
|
122
|
|
- return Collections.emptyList();
|
|
|
105
|
+ if (StrUtil.equals(SourceTypeEnum.mobile.getCode(), source)) {
|
|
|
106
|
+ List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
|
107
|
+ if (CollUtil.isEmpty(roles)) {
|
|
|
108
|
+ return Collections.emptyList();
|
|
|
109
|
+ }
|
|
|
110
|
+ List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
|
111
|
+ if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
|
112
|
+ dto.setIsSelfCheck(null);
|
|
|
113
|
+ dto.setCreateId(null);
|
|
|
114
|
+ } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
|
115
|
+ dto.setIsSelfCheck(0);
|
|
|
116
|
+ dto.setCreateId(null);
|
|
|
117
|
+ } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
|
118
|
+ dto.setIsSelfCheck(0);
|
|
|
119
|
+ dto.setCreateId(SecurityUtils.getLoginUser().getUserId());
|
|
|
120
|
+ } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
|
121
|
+ dto.setIsSelfCheck(0);
|
|
|
122
|
+ dto.setCreateId(SecurityUtils.getLoginUser().getUserId());
|
|
|
123
|
+ } else {
|
|
|
124
|
+ return Collections.emptyList();
|
|
|
125
|
+ }
|
|
123
|
126
|
}
|
|
124
|
127
|
List<CheckLargeScreenPlanOverviewDto> list = checkLargeScreenMapper.planOverview(dto);
|
|
125
|
128
|
Map<String, BigDecimal> statsMap = list.stream().collect(Collectors.toMap(item -> item.getType() + "***" + item.getDate(), CheckLargeScreenPlanOverviewDto::getTotal, (oldValue, newValue) -> newValue));
|
|
|
@@ -145,26 +148,28 @@ public class CheckLargeScreenServiceImpl implements ICheckLargeScreenService {
|
|
145
|
148
|
* @return 日常任务检查指标累积分布
|
|
146
|
149
|
*/
|
|
147
|
150
|
@Override
|
|
148
|
|
- public List<CheckLargeScreenCommonDto> planDistribution(CheckLargeScreenPlanQueryParamDto dto) {
|
|
149
|
|
- List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
150
|
|
- if (CollUtil.isEmpty(roles)) {
|
|
151
|
|
- return Collections.emptyList();
|
|
152
|
|
- }
|
|
153
|
|
- List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
154
|
|
- if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
155
|
|
- dto.setIsSelfCheck(null);
|
|
156
|
|
- dto.setCreateId(null);
|
|
157
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
158
|
|
- dto.setIsSelfCheck(0);
|
|
159
|
|
- dto.setCreateId(null);
|
|
160
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
161
|
|
- dto.setIsSelfCheck(0);
|
|
162
|
|
- dto.setCreateId(SecurityUtils.getLoginUser().getUserId());
|
|
163
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
164
|
|
- dto.setIsSelfCheck(0);
|
|
165
|
|
- dto.setCreateId(SecurityUtils.getLoginUser().getUserId());
|
|
166
|
|
- } else {
|
|
167
|
|
- return Collections.emptyList();
|
|
|
151
|
+ public List<CheckLargeScreenCommonDto> planDistribution(CheckLargeScreenPlanQueryParamDto dto, String source) {
|
|
|
152
|
+ if (StrUtil.equals(SourceTypeEnum.mobile.getCode(), source)) {
|
|
|
153
|
+ List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
|
154
|
+ if (CollUtil.isEmpty(roles)) {
|
|
|
155
|
+ return Collections.emptyList();
|
|
|
156
|
+ }
|
|
|
157
|
+ List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
|
158
|
+ if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
|
159
|
+ dto.setIsSelfCheck(null);
|
|
|
160
|
+ dto.setCreateId(null);
|
|
|
161
|
+ } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
|
162
|
+ dto.setIsSelfCheck(0);
|
|
|
163
|
+ dto.setCreateId(null);
|
|
|
164
|
+ } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
|
165
|
+ dto.setIsSelfCheck(0);
|
|
|
166
|
+ dto.setCreateId(SecurityUtils.getLoginUser().getUserId());
|
|
|
167
|
+ } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
|
168
|
+ dto.setIsSelfCheck(0);
|
|
|
169
|
+ dto.setCreateId(SecurityUtils.getLoginUser().getUserId());
|
|
|
170
|
+ } else {
|
|
|
171
|
+ return Collections.emptyList();
|
|
|
172
|
+ }
|
|
168
|
173
|
}
|
|
169
|
174
|
List<CheckLargeScreenCommonDto> resultTemp = checkLargeScreenMapper.planDistribution(dto);
|
|
170
|
175
|
// 未查询到的需补充0数据填充到结果中
|
|
|
@@ -190,26 +195,28 @@ public class CheckLargeScreenServiceImpl implements ICheckLargeScreenService {
|
|
190
|
195
|
* @return 任务明细统计表
|
|
191
|
196
|
*/
|
|
192
|
197
|
@Override
|
|
193
|
|
- public List<CheckTask> planStatistics(CheckLargeScreenPlanQueryParamDto dto) {
|
|
194
|
|
- List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
195
|
|
- if (CollUtil.isEmpty(roles)) {
|
|
196
|
|
- return Collections.emptyList();
|
|
197
|
|
- }
|
|
198
|
|
- List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
199
|
|
- if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
200
|
|
- dto.setIsSelfCheck(null);
|
|
201
|
|
- dto.setCreateId(null);
|
|
202
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
203
|
|
- dto.setIsSelfCheck(0);
|
|
204
|
|
- dto.setCreateId(null);
|
|
205
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
206
|
|
- dto.setIsSelfCheck(0);
|
|
207
|
|
- dto.setCreateId(SecurityUtils.getLoginUser().getUserId());
|
|
208
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
209
|
|
- dto.setIsSelfCheck(0);
|
|
210
|
|
- dto.setCreateId(SecurityUtils.getLoginUser().getUserId());
|
|
211
|
|
- } else {
|
|
212
|
|
- return Collections.emptyList();
|
|
|
198
|
+ public List<CheckTask> planStatistics(CheckLargeScreenPlanQueryParamDto dto, String source) {
|
|
|
199
|
+ if (StrUtil.equals(SourceTypeEnum.mobile.getCode(), source)) {
|
|
|
200
|
+ List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
|
201
|
+ if (CollUtil.isEmpty(roles)) {
|
|
|
202
|
+ return Collections.emptyList();
|
|
|
203
|
+ }
|
|
|
204
|
+ List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
|
205
|
+ if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
|
206
|
+ dto.setIsSelfCheck(null);
|
|
|
207
|
+ dto.setCreateId(null);
|
|
|
208
|
+ } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
|
209
|
+ dto.setIsSelfCheck(0);
|
|
|
210
|
+ dto.setCreateId(null);
|
|
|
211
|
+ } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
|
212
|
+ dto.setIsSelfCheck(0);
|
|
|
213
|
+ dto.setCreateId(SecurityUtils.getLoginUser().getUserId());
|
|
|
214
|
+ } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
|
215
|
+ dto.setIsSelfCheck(0);
|
|
|
216
|
+ dto.setCreateId(SecurityUtils.getLoginUser().getUserId());
|
|
|
217
|
+ } else {
|
|
|
218
|
+ return Collections.emptyList();
|
|
|
219
|
+ }
|
|
213
|
220
|
}
|
|
214
|
221
|
List<CheckTask> result = checkLargeScreenMapper.planStatistics(dto);
|
|
215
|
222
|
return result;
|
|
|
@@ -222,27 +229,29 @@ public class CheckLargeScreenServiceImpl implements ICheckLargeScreenService {
|
|
222
|
229
|
* @return 总体问题分布
|
|
223
|
230
|
*/
|
|
224
|
231
|
@Override
|
|
225
|
|
- public List<CheckLargeScreenProblemDto> problemDistribution(CheckLargeScreenProblemQueryParamDto dto) {
|
|
226
|
|
- List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
227
|
|
- if (CollUtil.isEmpty(roles)) {
|
|
228
|
|
- return Collections.emptyList();
|
|
229
|
|
- }
|
|
230
|
|
- List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
231
|
|
- if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
232
|
|
- dto.setIsSelfCheck(null);
|
|
233
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
234
|
|
- dto.setIsSelfCheck(0);
|
|
235
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
236
|
|
- dto.setIsSelfCheck(0);
|
|
237
|
|
- dto.setCheckedBrigadeId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
238
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
239
|
|
- dto.setIsSelfCheck(0);
|
|
240
|
|
- dto.setCheckedDepartmentId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
241
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.banzuzhang.getCode())) {
|
|
242
|
|
- dto.setIsSelfCheck(0);
|
|
243
|
|
- dto.setCheckedTeamId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
244
|
|
- } else {
|
|
245
|
|
- return Collections.emptyList();
|
|
|
232
|
+ public List<CheckLargeScreenProblemDto> problemDistribution(CheckLargeScreenProblemQueryParamDto dto, String source) {
|
|
|
233
|
+ if (StrUtil.equals(SourceTypeEnum.mobile.getCode(), source)) {
|
|
|
234
|
+ List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
|
235
|
+ if (CollUtil.isEmpty(roles)) {
|
|
|
236
|
+ return Collections.emptyList();
|
|
|
237
|
+ }
|
|
|
238
|
+ List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
|
239
|
+ if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
|
240
|
+ dto.setIsSelfCheck(null);
|
|
|
241
|
+ } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
|
242
|
+ dto.setIsSelfCheck(0);
|
|
|
243
|
+ } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
|
244
|
+ dto.setIsSelfCheck(0);
|
|
|
245
|
+ dto.setCheckedBrigadeId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
|
246
|
+ } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
|
247
|
+ dto.setIsSelfCheck(0);
|
|
|
248
|
+ dto.setCheckedDepartmentId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
|
249
|
+ } else if (roleKeyList.contains(RoleTypeEnum.banzuzhang.getCode())) {
|
|
|
250
|
+ dto.setIsSelfCheck(0);
|
|
|
251
|
+ dto.setCheckedTeamId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
|
252
|
+ } else {
|
|
|
253
|
+ return Collections.emptyList();
|
|
|
254
|
+ }
|
|
246
|
255
|
}
|
|
247
|
256
|
List<CheckLargeScreenProblemDto> result = checkLargeScreenMapper.problemDistribution(dto);
|
|
248
|
257
|
// 问题对比和问题趋势
|
|
|
@@ -254,8 +263,8 @@ public class CheckLargeScreenServiceImpl implements ICheckLargeScreenService {
|
|
254
|
263
|
checkLargeScreenProblemQueryParamDto.setStartDate(dto.getStartDate());
|
|
255
|
264
|
checkLargeScreenProblemQueryParamDto.setEndDate(dto.getEndDate());
|
|
256
|
265
|
checkLargeScreenProblemQueryParamDto.setCategoryCodeOne(item.getCode());
|
|
257
|
|
- item.setCheckLargeScreenProblemDtoList(problemComparisonTwo(checkLargeScreenProblemQueryParamDto));
|
|
258
|
|
- item.setCheckLargeScreenProblemTrendDtoList(problemTrend(checkLargeScreenProblemQueryParamDto));
|
|
|
266
|
+ item.setCheckLargeScreenProblemDtoList(problemComparisonTwo(checkLargeScreenProblemQueryParamDto, source));
|
|
|
267
|
+ item.setCheckLargeScreenProblemTrendDtoList(problemTrend(checkLargeScreenProblemQueryParamDto, source));
|
|
259
|
268
|
});
|
|
260
|
269
|
return result;
|
|
261
|
270
|
}
|
|
|
@@ -267,33 +276,37 @@ public class CheckLargeScreenServiceImpl implements ICheckLargeScreenService {
|
|
267
|
276
|
* @return 问题分布对比
|
|
268
|
277
|
*/
|
|
269
|
278
|
@Override
|
|
270
|
|
- public List<CheckLargeScreenProblemDto> problemComparison(CheckLargeScreenProblemQueryParamDto dto) {
|
|
271
|
|
- List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
272
|
|
- if (CollUtil.isEmpty(roles)) {
|
|
273
|
|
- return Collections.emptyList();
|
|
274
|
|
- }
|
|
275
|
|
- List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
|
279
|
+ public List<CheckLargeScreenProblemDto> problemComparison(CheckLargeScreenProblemQueryParamDto dto, String source) {
|
|
276
|
280
|
List<CheckLargeScreenProblemDto> resultTemp;
|
|
277
|
|
- if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
278
|
|
- dto.setIsSelfCheck(null);
|
|
279
|
|
- resultTemp = checkLargeScreenMapper.problemComparisonBrigade(dto);
|
|
280
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
281
|
|
- dto.setIsSelfCheck(0);
|
|
282
|
|
- resultTemp = checkLargeScreenMapper.problemComparisonBrigade(dto);
|
|
283
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
284
|
|
- dto.setIsSelfCheck(0);
|
|
285
|
|
- dto.setCheckedBrigadeId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
286
|
|
- resultTemp = checkLargeScreenMapper.problemComparisonBrigade(dto);
|
|
287
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
288
|
|
- dto.setIsSelfCheck(0);
|
|
289
|
|
- dto.setCheckedDepartmentId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
290
|
|
- resultTemp = checkLargeScreenMapper.problemComparison(dto);
|
|
291
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.banzuzhang.getCode())) {
|
|
292
|
|
- dto.setIsSelfCheck(0);
|
|
293
|
|
- dto.setCheckedTeamId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
294
|
|
- resultTemp = checkLargeScreenMapper.problemComparisonBanZu(dto);
|
|
|
281
|
+ if (StrUtil.equals(SourceTypeEnum.mobile.getCode(), source)) {
|
|
|
282
|
+ List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
|
283
|
+ if (CollUtil.isEmpty(roles)) {
|
|
|
284
|
+ return Collections.emptyList();
|
|
|
285
|
+ }
|
|
|
286
|
+ List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
|
287
|
+ if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
|
288
|
+ dto.setIsSelfCheck(null);
|
|
|
289
|
+ resultTemp = checkLargeScreenMapper.problemComparisonBrigade(dto);
|
|
|
290
|
+ } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
|
291
|
+ dto.setIsSelfCheck(0);
|
|
|
292
|
+ resultTemp = checkLargeScreenMapper.problemComparisonBrigade(dto);
|
|
|
293
|
+ } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
|
294
|
+ dto.setIsSelfCheck(0);
|
|
|
295
|
+ dto.setCheckedBrigadeId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
|
296
|
+ resultTemp = checkLargeScreenMapper.problemComparisonBrigade(dto);
|
|
|
297
|
+ } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
|
298
|
+ dto.setIsSelfCheck(0);
|
|
|
299
|
+ dto.setCheckedDepartmentId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
|
300
|
+ resultTemp = checkLargeScreenMapper.problemComparison(dto);
|
|
|
301
|
+ } else if (roleKeyList.contains(RoleTypeEnum.banzuzhang.getCode())) {
|
|
|
302
|
+ dto.setIsSelfCheck(0);
|
|
|
303
|
+ dto.setCheckedTeamId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
|
304
|
+ resultTemp = checkLargeScreenMapper.problemComparisonBanZu(dto);
|
|
|
305
|
+ } else {
|
|
|
306
|
+ return Collections.emptyList();
|
|
|
307
|
+ }
|
|
295
|
308
|
} else {
|
|
296
|
|
- return Collections.emptyList();
|
|
|
309
|
+ resultTemp = checkLargeScreenMapper.problemComparisonBrigade(dto);
|
|
297
|
310
|
}
|
|
298
|
311
|
if (CollUtil.isEmpty(resultTemp)) {
|
|
299
|
312
|
return Collections.emptyList();
|
|
|
@@ -327,39 +340,44 @@ public class CheckLargeScreenServiceImpl implements ICheckLargeScreenService {
|
|
327
|
340
|
* @return 通道面貌-问题对比
|
|
328
|
341
|
*/
|
|
329
|
342
|
@Override
|
|
330
|
|
- public List<CheckLargeScreenProblemDto> problemComparisonTwo(CheckLargeScreenProblemQueryParamDto dto) {
|
|
331
|
|
- List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
332
|
|
- if (CollUtil.isEmpty(roles)) {
|
|
333
|
|
- return Collections.emptyList();
|
|
334
|
|
- }
|
|
335
|
|
- List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
|
343
|
+ public List<CheckLargeScreenProblemDto> problemComparisonTwo(CheckLargeScreenProblemQueryParamDto dto, String source) {
|
|
336
|
344
|
List<CheckLargeScreenProblemDto> resultTemp;
|
|
337
|
345
|
List<CheckLargeScreenProblemDto> deptList;
|
|
338
|
|
- if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
339
|
|
- dto.setIsSelfCheck(null);
|
|
340
|
|
- resultTemp = checkLargeScreenMapper.problemComparisonTwoBrigade(dto);
|
|
341
|
|
- deptList = checkLargeScreenMapper.getProblemBrigade(dto);
|
|
342
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
343
|
|
- dto.setIsSelfCheck(0);
|
|
344
|
|
- resultTemp = checkLargeScreenMapper.problemComparisonTwoBrigade(dto);
|
|
345
|
|
- deptList = checkLargeScreenMapper.getProblemBrigade(dto);
|
|
346
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
347
|
|
- dto.setIsSelfCheck(0);
|
|
348
|
|
- dto.setCheckedBrigadeId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
|
346
|
+ if (StrUtil.equals(SourceTypeEnum.mobile.getCode(), source)) {
|
|
|
347
|
+ List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
|
348
|
+ if (CollUtil.isEmpty(roles)) {
|
|
|
349
|
+ return Collections.emptyList();
|
|
|
350
|
+ }
|
|
|
351
|
+ List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
|
352
|
+ if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
|
353
|
+ dto.setIsSelfCheck(null);
|
|
|
354
|
+ resultTemp = checkLargeScreenMapper.problemComparisonTwoBrigade(dto);
|
|
|
355
|
+ deptList = checkLargeScreenMapper.getProblemBrigade(dto);
|
|
|
356
|
+ } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
|
357
|
+ dto.setIsSelfCheck(0);
|
|
|
358
|
+ resultTemp = checkLargeScreenMapper.problemComparisonTwoBrigade(dto);
|
|
|
359
|
+ deptList = checkLargeScreenMapper.getProblemBrigade(dto);
|
|
|
360
|
+ } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
|
361
|
+ dto.setIsSelfCheck(0);
|
|
|
362
|
+ dto.setCheckedBrigadeId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
|
363
|
+ resultTemp = checkLargeScreenMapper.problemComparisonTwoBrigade(dto);
|
|
|
364
|
+ deptList = checkLargeScreenMapper.getProblemBrigade(dto);
|
|
|
365
|
+ } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
|
366
|
+ dto.setIsSelfCheck(0);
|
|
|
367
|
+ dto.setCheckedDepartmentId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
|
368
|
+ resultTemp = checkLargeScreenMapper.problemComparisonTwo(dto);
|
|
|
369
|
+ deptList = checkLargeScreenMapper.getProblemDepartment(dto);
|
|
|
370
|
+ } else if (roleKeyList.contains(RoleTypeEnum.banzuzhang.getCode())) {
|
|
|
371
|
+ dto.setIsSelfCheck(0);
|
|
|
372
|
+ dto.setCheckedTeamId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
|
373
|
+ resultTemp = checkLargeScreenMapper.problemComparisonTwoBanZu(dto);
|
|
|
374
|
+ deptList = checkLargeScreenMapper.getProblemTeam(dto);
|
|
|
375
|
+ } else {
|
|
|
376
|
+ return Collections.emptyList();
|
|
|
377
|
+ }
|
|
|
378
|
+ } else {
|
|
349
|
379
|
resultTemp = checkLargeScreenMapper.problemComparisonTwoBrigade(dto);
|
|
350
|
380
|
deptList = checkLargeScreenMapper.getProblemBrigade(dto);
|
|
351
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
352
|
|
- dto.setIsSelfCheck(0);
|
|
353
|
|
- dto.setCheckedDepartmentId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
354
|
|
- resultTemp = checkLargeScreenMapper.problemComparisonTwo(dto);
|
|
355
|
|
- deptList = checkLargeScreenMapper.getProblemDepartment(dto);
|
|
356
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.banzuzhang.getCode())) {
|
|
357
|
|
- dto.setIsSelfCheck(0);
|
|
358
|
|
- dto.setCheckedTeamId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
359
|
|
- resultTemp = checkLargeScreenMapper.problemComparisonTwoBanZu(dto);
|
|
360
|
|
- deptList = checkLargeScreenMapper.getProblemTeam(dto);
|
|
361
|
|
- } else {
|
|
362
|
|
- return Collections.emptyList();
|
|
363
|
381
|
}
|
|
364
|
382
|
if (CollUtil.isEmpty(resultTemp) || CollUtil.isEmpty(deptList)) {
|
|
365
|
383
|
return Collections.emptyList();
|
|
|
@@ -393,44 +411,49 @@ public class CheckLargeScreenServiceImpl implements ICheckLargeScreenService {
|
|
393
|
411
|
* @return 通道面貌-问题趋势
|
|
394
|
412
|
*/
|
|
395
|
413
|
@Override
|
|
396
|
|
- public List<CheckLargeScreenProblemTrendDto> problemTrend(CheckLargeScreenProblemQueryParamDto dto) {
|
|
|
414
|
+ public List<CheckLargeScreenProblemTrendDto> problemTrend(CheckLargeScreenProblemQueryParamDto dto, String source) {
|
|
397
|
415
|
// 1、参数校验
|
|
398
|
416
|
validateDateRange(dto.getStartDate(), dto.getEndDate());
|
|
399
|
417
|
// 2、生成日期序列
|
|
400
|
418
|
List<Date> dateRange = generateDateRange(dto.getStartDate(), dto.getEndDate());
|
|
401
|
419
|
// 3、构建统计映射
|
|
402
|
|
- List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
403
|
|
- if (CollUtil.isEmpty(roles)) {
|
|
404
|
|
- return Collections.emptyList();
|
|
405
|
|
- }
|
|
406
|
|
- List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
407
|
420
|
List<CheckLargeScreenProblemTrendDto> list;
|
|
408
|
421
|
List<CheckLargeScreenProblemDto> deptList;
|
|
409
|
|
- if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
410
|
|
- dto.setIsSelfCheck(null);
|
|
411
|
|
- list = checkLargeScreenMapper.problemTrendBrigade(dto);
|
|
412
|
|
- deptList = checkLargeScreenMapper.getProblemBrigade(dto);
|
|
413
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
414
|
|
- dto.setIsSelfCheck(0);
|
|
415
|
|
- list = checkLargeScreenMapper.problemTrendBrigade(dto);
|
|
416
|
|
- deptList = checkLargeScreenMapper.getProblemBrigade(dto);
|
|
417
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
418
|
|
- dto.setIsSelfCheck(null);
|
|
419
|
|
- dto.setCheckedBrigadeId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
|
422
|
+ if (StrUtil.equals(SourceTypeEnum.mobile.getCode(), source)) {
|
|
|
423
|
+ List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
|
424
|
+ if (CollUtil.isEmpty(roles)) {
|
|
|
425
|
+ return Collections.emptyList();
|
|
|
426
|
+ }
|
|
|
427
|
+ List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
|
428
|
+ if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
|
429
|
+ dto.setIsSelfCheck(null);
|
|
|
430
|
+ list = checkLargeScreenMapper.problemTrendBrigade(dto);
|
|
|
431
|
+ deptList = checkLargeScreenMapper.getProblemBrigade(dto);
|
|
|
432
|
+ } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
|
433
|
+ dto.setIsSelfCheck(0);
|
|
|
434
|
+ list = checkLargeScreenMapper.problemTrendBrigade(dto);
|
|
|
435
|
+ deptList = checkLargeScreenMapper.getProblemBrigade(dto);
|
|
|
436
|
+ } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
|
437
|
+ dto.setIsSelfCheck(null);
|
|
|
438
|
+ dto.setCheckedBrigadeId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
|
439
|
+ list = checkLargeScreenMapper.problemTrendBrigade(dto);
|
|
|
440
|
+ deptList = checkLargeScreenMapper.getProblemBrigade(dto);
|
|
|
441
|
+ } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
|
442
|
+ dto.setIsSelfCheck(null);
|
|
|
443
|
+ dto.setCheckedDepartmentId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
|
444
|
+ list = checkLargeScreenMapper.problemTrend(dto);
|
|
|
445
|
+ deptList = checkLargeScreenMapper.getProblemDepartment(dto);
|
|
|
446
|
+ } else if (roleKeyList.contains(RoleTypeEnum.banzuzhang.getCode())) {
|
|
|
447
|
+ dto.setIsSelfCheck(null);
|
|
|
448
|
+ dto.setCheckedTeamId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
|
449
|
+ list = checkLargeScreenMapper.problemTrendBanZu(dto);
|
|
|
450
|
+ deptList = checkLargeScreenMapper.getProblemTeam(dto);
|
|
|
451
|
+ } else {
|
|
|
452
|
+ return Collections.emptyList();
|
|
|
453
|
+ }
|
|
|
454
|
+ } else {
|
|
420
|
455
|
list = checkLargeScreenMapper.problemTrendBrigade(dto);
|
|
421
|
456
|
deptList = checkLargeScreenMapper.getProblemBrigade(dto);
|
|
422
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
423
|
|
- dto.setIsSelfCheck(null);
|
|
424
|
|
- dto.setCheckedDepartmentId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
425
|
|
- list = checkLargeScreenMapper.problemTrend(dto);
|
|
426
|
|
- deptList = checkLargeScreenMapper.getProblemDepartment(dto);
|
|
427
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.banzuzhang.getCode())) {
|
|
428
|
|
- dto.setIsSelfCheck(null);
|
|
429
|
|
- dto.setCheckedTeamId(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
|
430
|
|
- list = checkLargeScreenMapper.problemTrendBanZu(dto);
|
|
431
|
|
- deptList = checkLargeScreenMapper.getProblemTeam(dto);
|
|
432
|
|
- } else {
|
|
433
|
|
- return Collections.emptyList();
|
|
434
|
457
|
}
|
|
435
|
458
|
if (CollUtil.isEmpty(list) || CollUtil.isEmpty(deptList)) {
|
|
436
|
459
|
return Collections.emptyList();
|
|
|
@@ -460,27 +483,29 @@ public class CheckLargeScreenServiceImpl implements ICheckLargeScreenService {
|
|
460
|
483
|
* @return 整改状态总计
|
|
461
|
484
|
*/
|
|
462
|
485
|
@Override
|
|
463
|
|
- public CheckLargeScreenCorrectionDto correction(CheckLargeScreenCorrectionQueryParamDto dto) {
|
|
464
|
|
- List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
465
|
|
- if (CollUtil.isEmpty(roles)) {
|
|
466
|
|
- return null;
|
|
467
|
|
- }
|
|
468
|
|
- List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
469
|
|
- if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
470
|
|
- dto.setIsSelfCheck(null);
|
|
471
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
472
|
|
- dto.setIsSelfCheck(0);
|
|
473
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
474
|
|
- dto.setIsSelfCheck(0);
|
|
475
|
|
- dto.setCheckedBrigadeId(SecurityUtils.getLoginUser().getDeptId());
|
|
476
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
477
|
|
- dto.setIsSelfCheck(0);
|
|
478
|
|
- dto.setCheckedDepartmentId(SecurityUtils.getLoginUser().getDeptId());
|
|
479
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.banzuzhang.getCode())) {
|
|
480
|
|
- dto.setIsSelfCheck(0);
|
|
481
|
|
- dto.setCheckedTeamId(SecurityUtils.getLoginUser().getDeptId());
|
|
482
|
|
- } else {
|
|
483
|
|
- return null;
|
|
|
486
|
+ public CheckLargeScreenCorrectionDto correction(CheckLargeScreenCorrectionQueryParamDto dto, String source) {
|
|
|
487
|
+ if (StrUtil.equals(SourceTypeEnum.mobile.getCode(), source)) {
|
|
|
488
|
+ List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
|
489
|
+ if (CollUtil.isEmpty(roles)) {
|
|
|
490
|
+ return null;
|
|
|
491
|
+ }
|
|
|
492
|
+ List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
|
493
|
+ if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
|
494
|
+ dto.setIsSelfCheck(null);
|
|
|
495
|
+ } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
|
496
|
+ dto.setIsSelfCheck(0);
|
|
|
497
|
+ } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
|
498
|
+ dto.setIsSelfCheck(0);
|
|
|
499
|
+ dto.setCheckedBrigadeId(SecurityUtils.getLoginUser().getDeptId());
|
|
|
500
|
+ } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
|
501
|
+ dto.setIsSelfCheck(0);
|
|
|
502
|
+ dto.setCheckedDepartmentId(SecurityUtils.getLoginUser().getDeptId());
|
|
|
503
|
+ } else if (roleKeyList.contains(RoleTypeEnum.banzuzhang.getCode())) {
|
|
|
504
|
+ dto.setIsSelfCheck(0);
|
|
|
505
|
+ dto.setCheckedTeamId(SecurityUtils.getLoginUser().getDeptId());
|
|
|
506
|
+ } else {
|
|
|
507
|
+ return null;
|
|
|
508
|
+ }
|
|
484
|
509
|
}
|
|
485
|
510
|
List<CheckLargeScreenCorrectionAssistDto> list = checkLargeScreenMapper.correction(dto);
|
|
486
|
511
|
BigDecimal onTimeCompletedCount = BigDecimal.valueOf(list.stream().filter(item -> StringUtils.equals(CheckLargeScreenCorrectionTypeEnum.ON_TIME_COMPLETED.getCode(), item.getType())).count());
|
|
|
@@ -513,33 +538,37 @@ public class CheckLargeScreenServiceImpl implements ICheckLargeScreenService {
|
|
513
|
538
|
* @return 整改状态总计
|
|
514
|
539
|
*/
|
|
515
|
540
|
@Override
|
|
516
|
|
- public List<CheckLargeScreenCorrectionDto> correctionDistribution(CheckLargeScreenCorrectionQueryParamDto dto) {
|
|
517
|
|
- List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
518
|
|
- if (CollUtil.isEmpty(roles)) {
|
|
519
|
|
- return Collections.emptyList();
|
|
520
|
|
- }
|
|
521
|
|
- List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
|
541
|
+ public List<CheckLargeScreenCorrectionDto> correctionDistribution(CheckLargeScreenCorrectionQueryParamDto dto, String source) {
|
|
522
|
542
|
List<CheckLargeScreenCorrectionDto> result;
|
|
523
|
|
- if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
524
|
|
- dto.setIsSelfCheck(null);
|
|
525
|
|
- result = checkLargeScreenMapper.correctionDistributionBrigade(dto);
|
|
526
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
527
|
|
- dto.setIsSelfCheck(0);
|
|
528
|
|
- result = checkLargeScreenMapper.correctionDistributionBrigade(dto);
|
|
529
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
530
|
|
- dto.setIsSelfCheck(0);
|
|
531
|
|
- dto.setCheckedBrigadeId(SecurityUtils.getLoginUser().getDeptId());
|
|
532
|
|
- result = checkLargeScreenMapper.correctionDistributionBrigade(dto);
|
|
533
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
534
|
|
- dto.setIsSelfCheck(0);
|
|
535
|
|
- dto.setCheckedDepartmentId(SecurityUtils.getLoginUser().getDeptId());
|
|
536
|
|
- result = checkLargeScreenMapper.correctionDistribution(dto);
|
|
537
|
|
- } else if (roleKeyList.contains(RoleTypeEnum.banzuzhang.getCode())) {
|
|
538
|
|
- dto.setIsSelfCheck(0);
|
|
539
|
|
- dto.setCheckedTeamId(SecurityUtils.getLoginUser().getDeptId());
|
|
540
|
|
- result = checkLargeScreenMapper.correctionDistributionBanZu(dto);
|
|
|
543
|
+ if (StrUtil.equals(SourceTypeEnum.mobile.getCode(), source)) {
|
|
|
544
|
+ List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
|
545
|
+ if (CollUtil.isEmpty(roles)) {
|
|
|
546
|
+ return Collections.emptyList();
|
|
|
547
|
+ }
|
|
|
548
|
+ List<String> roleKeyList = roles.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
|
549
|
+ if (roleKeyList.contains(RoleTypeEnum.admin.getCode())) {
|
|
|
550
|
+ dto.setIsSelfCheck(null);
|
|
|
551
|
+ result = checkLargeScreenMapper.correctionDistributionBrigade(dto);
|
|
|
552
|
+ } else if (roleKeyList.contains(RoleTypeEnum.test.getCode()) || roleKeyList.contains(RoleTypeEnum.zhijianke.getCode())) {
|
|
|
553
|
+ dto.setIsSelfCheck(0);
|
|
|
554
|
+ result = checkLargeScreenMapper.correctionDistributionBrigade(dto);
|
|
|
555
|
+ } else if (roleKeyList.contains(RoleTypeEnum.jingli.getCode()) || roleKeyList.contains(RoleTypeEnum.xingzheng.getCode())) {
|
|
|
556
|
+ dto.setIsSelfCheck(0);
|
|
|
557
|
+ dto.setCheckedBrigadeId(SecurityUtils.getLoginUser().getDeptId());
|
|
|
558
|
+ result = checkLargeScreenMapper.correctionDistributionBrigade(dto);
|
|
|
559
|
+ } else if (roleKeyList.contains(RoleTypeEnum.kezhang.getCode())) {
|
|
|
560
|
+ dto.setIsSelfCheck(0);
|
|
|
561
|
+ dto.setCheckedDepartmentId(SecurityUtils.getLoginUser().getDeptId());
|
|
|
562
|
+ result = checkLargeScreenMapper.correctionDistribution(dto);
|
|
|
563
|
+ } else if (roleKeyList.contains(RoleTypeEnum.banzuzhang.getCode())) {
|
|
|
564
|
+ dto.setIsSelfCheck(0);
|
|
|
565
|
+ dto.setCheckedTeamId(SecurityUtils.getLoginUser().getDeptId());
|
|
|
566
|
+ result = checkLargeScreenMapper.correctionDistributionBanZu(dto);
|
|
|
567
|
+ } else {
|
|
|
568
|
+ return Collections.emptyList();
|
|
|
569
|
+ }
|
|
541
|
570
|
} else {
|
|
542
|
|
- return Collections.emptyList();
|
|
|
571
|
+ result = checkLargeScreenMapper.correctionDistributionBrigade(dto);
|
|
543
|
572
|
}
|
|
544
|
573
|
return result;
|
|
545
|
574
|
}
|