csg6 10 months ago
parent
commit
2dc635f79a

+ 36 - 59
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostCheckedProductionProblemStatisticsController.java

@@ -17,14 +17,6 @@ import java.util.List;
17
 import java.util.Map;
17
 import java.util.Map;
18
 
18
 
19
 
19
 
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
 /**
20
 /**
29
  * 岗检问题表Controller
21
  * 岗检问题表Controller
30
  *
22
  *
@@ -50,7 +42,7 @@ public class PostCheckedProductionProblemStatisticsController extends BaseContro
50
         List<FunctionDeptProblemContrastView> list = new ArrayList<>();
42
         List<FunctionDeptProblemContrastView> list = new ArrayList<>();
51
         Integer type = 2;
43
         Integer type = 2;
52
         List<Map<String, Object>> deptIdListByType = postCheckedProblemService.getDeptIdListByType(type);
44
         List<Map<String, Object>> deptIdListByType = postCheckedProblemService.getDeptIdListByType(type);
53
-        if (deptIdListByType!=null && deptIdListByType.size()>0){
45
+        if (deptIdListByType != null && deptIdListByType.size() > 0) {
54
             for (Map<String, Object> map : deptIdListByType) {
46
             for (Map<String, Object> map : deptIdListByType) {
55
                 FunctionDeptProblemContrastView data = new FunctionDeptProblemContrastView();
47
                 FunctionDeptProblemContrastView data = new FunctionDeptProblemContrastView();
56
                 data.setDeptId(Long.parseLong(map.get("deptId").toString()));
48
                 data.setDeptId(Long.parseLong(map.get("deptId").toString()));
@@ -253,70 +245,55 @@ public class PostCheckedProductionProblemStatisticsController extends BaseContro
253
         //TODO 第三步:设置部门的整改率:遍历职责类别计算整改率
245
         //TODO 第三步:设置部门的整改率:遍历职责类别计算整改率
254
 
246
 
255
 
247
 
256
-
257
         CheckedProblemDeptDetaailView data1 = new CheckedProblemDeptDetaailView();
248
         CheckedProblemDeptDetaailView data1 = new CheckedProblemDeptDetaailView();
258
-//        data1.setdeptId 部门ID
259
-//        data1.setdeptName 部门名称
260
-//        data1.setproblemTotal 问题数量
261
-//        data1.setproblemLeveTwo 重要问题
262
-//        data1.setproblemLeveOne 一般问题
263
-//        data1.setstatisticsTime 统计时间
264
-
265
-        List<CheckedProblemDeptDetaailView.ProblemAttributeInner> children1 = new ArrayList<>();
249
+        data1.setDeptId(1l); //部门ID
250
+        data1.setDeptName("测试部门名称1");// 部门名称
251
+        data1.setProblemTotal(10); //问题数量
252
+        data1.setProblemLeveTwo(2); //重要问题
253
+        data1.setProblemLeveOne(8); //一般问题
254
+        data1.setStatisticsTime(new Date());// 统计时间
255
+
256
+//        List<CheckedProblemDeptDetaailView.ProblemAttributeInner> children1 = new ArrayList<>();
266
         CheckedProblemDeptDetaailView.ProblemAttributeInner child1 = new CheckedProblemDeptDetaailView.ProblemAttributeInner();
257
         CheckedProblemDeptDetaailView.ProblemAttributeInner child1 = new CheckedProblemDeptDetaailView.ProblemAttributeInner();
267
-//        child1.set完整性数量") private Integer problemComplete;
268
-//        child1.set适宜性数量") private Integer problemSuitable;
269
-//        child1.set有效性数量") private Integer problemEffective;
270
-        children1.add(child1);
271
-        data1.setChildren(children1);
258
+        child1.setProblemComplete(1); //child1.set完整性数量
259
+        child1.setProblemSuitable(2); //child1.set适宜性数量
260
+        child1.setProblemEffective(3);//child1.set有效性数量
261
+        //children1.add(child1);
262
+        //data1.setChildren(children1);
263
+        data1.getChildren().add(child1);
272
         list.add(data1);
264
         list.add(data1);
273
 
265
 
274
         CheckedProblemDeptDetaailView data2 = new CheckedProblemDeptDetaailView();
266
         CheckedProblemDeptDetaailView data2 = new CheckedProblemDeptDetaailView();
275
-//        data2.setdeptId 部门ID
276
-//        data2.setdeptName 部门名称
277
-//        data2.setproblemTotal 问题数量
278
-//        data2.setproblemLeveTwo 重要问题
279
-//        data2.setproblemLeveOne 一般问题
280
-//        data2.setstatisticsTime 统计时间
281
-        List<CheckedProblemDeptDetaailView.ProblemAttributeInner> children2 = new ArrayList<>();
267
+        data2.setDeptId(2l); //部门ID
268
+        data2.setDeptName("测试部门名称2");// 部门名称
269
+        data2.setProblemTotal(9); //问题数量
270
+        data2.setProblemLeveTwo(2); //重要问题
271
+        data2.setProblemLeveOne(7); //一般问题
272
+        data2.setStatisticsTime(new Date());// 统计时间
282
         CheckedProblemDeptDetaailView.ProblemAttributeInner child2 = new CheckedProblemDeptDetaailView.ProblemAttributeInner();
273
         CheckedProblemDeptDetaailView.ProblemAttributeInner child2 = new CheckedProblemDeptDetaailView.ProblemAttributeInner();
283
-//        child2.set完整性数量") private Integer problemComplete;
284
-//        child2.set适宜性数量") private Integer problemSuitable;
285
-//        child2.set有效性数量") private Integer problemEffective;
286
-        children1.add(child2);
287
-        data2.setChildren(children2);
274
+        data2.getChildren().add(child2);
288
         list.add(data2);
275
         list.add(data2);
289
 
276
 
290
         CheckedProblemDeptDetaailView data3 = new CheckedProblemDeptDetaailView();
277
         CheckedProblemDeptDetaailView data3 = new CheckedProblemDeptDetaailView();
291
-//        data3.setdeptId 部门ID
292
-//        data3.setdeptName 部门名称
293
-//        data3.setproblemTotal 问题数量
294
-//        data3.setproblemLeveTwo 重要问题
295
-//        data3.setproblemLeveOne 一般问题
296
-//        data3.setstatisticsTime 统计时间
297
-        List<CheckedProblemDeptDetaailView.ProblemAttributeInner> children3 = new ArrayList<>();
278
+        data3.setDeptId(3l); //部门ID
279
+        data3.setDeptName("测试部门名称3");// 部门名称
280
+        data3.setProblemTotal(8); //问题数量
281
+        data3.setProblemLeveTwo(3); //重要问题
282
+        data3.setProblemLeveOne(5); //一般问题
283
+        data3.setStatisticsTime(new Date());// 统计时间
298
         CheckedProblemDeptDetaailView.ProblemAttributeInner child3 = new CheckedProblemDeptDetaailView.ProblemAttributeInner();
284
         CheckedProblemDeptDetaailView.ProblemAttributeInner child3 = new CheckedProblemDeptDetaailView.ProblemAttributeInner();
299
-//        child3.set完整性数量") private Integer problemComplete;
300
-//        child3.set适宜性数量") private Integer problemSuitable;
301
-//        child3.set有效性数量") private Integer problemEffective;
302
-        children1.add(child3);
303
-        data3.setChildren(children3);
285
+        data3.getChildren().add(child3);
304
         list.add(data3);
286
         list.add(data3);
305
 
287
 
306
         CheckedProblemDeptDetaailView data4 = new CheckedProblemDeptDetaailView();
288
         CheckedProblemDeptDetaailView data4 = new CheckedProblemDeptDetaailView();
307
-//        data4.setdeptId 部门ID
308
-//        data4.setdeptName 部门名称
309
-//        data4.setproblemTotal 问题数量
310
-//        data4.setproblemLeveTwo 重要问题
311
-//        data4.setproblemLeveOne 一般问题
312
-//        data4.setstatisticsTime 统计时间
313
-        List<CheckedProblemDeptDetaailView.ProblemAttributeInner> children4 = new ArrayList<>();
289
+        data4.setDeptId(4l); //部门ID
290
+        data4.setDeptName("测试部门名称4");// 部门名称
291
+        data4.setProblemTotal(6); //问题数量
292
+        data4.setProblemLeveTwo(1); //重要问题
293
+        data4.setProblemLeveOne(5); //一般问题
294
+        data4.setStatisticsTime(new Date());// 统计时间
314
         CheckedProblemDeptDetaailView.ProblemAttributeInner child4 = new CheckedProblemDeptDetaailView.ProblemAttributeInner();
295
         CheckedProblemDeptDetaailView.ProblemAttributeInner child4 = new CheckedProblemDeptDetaailView.ProblemAttributeInner();
315
-//        child4.set完整性数量") private Integer problemComplete;
316
-//        child4.set适宜性数量") private Integer problemSuitable;
317
-//        child4.set有效性数量") private Integer problemEffective;
318
-        children1.add(child4);
319
-        data4.setChildren(children4);
296
+        data4.getChildren().add(child4);
320
         list.add(data4);
297
         list.add(data4);
321
         return success(list);
298
         return success(list);
322
     }
299
     }

+ 29 - 64
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostCheckedRectificationFunctionProblemStatisticsController.java

@@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.GetMapping;
11
 import org.springframework.web.bind.annotation.RequestMapping;
11
 import org.springframework.web.bind.annotation.RequestMapping;
12
 import org.springframework.web.bind.annotation.RestController;
12
 import org.springframework.web.bind.annotation.RestController;
13
 
13
 
14
+import java.math.BigDecimal;
14
 import java.util.ArrayList;
15
 import java.util.ArrayList;
15
 import java.util.Date;
16
 import java.util.Date;
16
 import java.util.List;
17
 import java.util.List;
@@ -277,77 +278,41 @@ public class PostCheckedRectificationFunctionProblemStatisticsController extends
277
         //TODO 第三步:设置部门的整改率:遍历职责类别计算整改率
278
         //TODO 第三步:设置部门的整改率:遍历职责类别计算整改率
278
 
279
 
279
         DeptDetaailView data1 = new DeptDetaailView();
280
         DeptDetaailView data1 = new DeptDetaailView();
280
-//        data1.setdeptId 部门ID
281
-//        data1.setdeptName 部门名称
282
-//        data1.setproblemRectificationRate 整改率
283
-//        data1.setstatisticsTime 统计时间
284
-
285
-        List<DeptDetaailView.ProblemAttributeInner> children1 = new ArrayList<>();
281
+        data1.setDeptId(1l); //部门ID
282
+        data1.setDeptName("测试部门名称1");// 部门名称
283
+        data1.setProblemRectificationRate(new BigDecimal(0.9)); //整改率
284
+        data1.setStatisticsTime(new Date());// 统计时间
285
+//        List<DeptDetaailView.ProblemAttributeInner> children1 = new ArrayList<>();
286
         DeptDetaailView.ProblemAttributeInner child1 = new DeptDetaailView.ProblemAttributeInner();
286
         DeptDetaailView.ProblemAttributeInner child1 = new DeptDetaailView.ProblemAttributeInner();
287
-//        child1.set业务职责字典值 private Integer dutyType; 业务职责字典值-前端自己显示中文名称:duty_type 职责类别:1-业务职责;2-党建及党风廉政;3-安全环保职责;4-合规保密职;
288
-//        child1.set完整性数量 private Integer problemComplete;
289
-//        child1.set适宜性数量 private Integer problemSuitable;
290
-//        child1.set有效性数量 private Integer problemEffective;
291
-//        child1.set已完成完整性数量 private Integer problemCompleteChecked;
292
-//        child1.set已完成适宜性数量 private Integer problemSuitableChecked;
293
-//        child1.set已完成有效性数量 private Integer problemEffectiveChecked;
294
-        children1.add(child1);
295
-        data1.setChildren(children1);
287
+        //业务职责字典值 private Integer ; 业务职责字典值-前端自己显示中文名称:duty_type 职责类别:1-业务职责;2-党建及党风廉政;3-安全环保职责;4-合规保密职;
288
+        child1.setDutyType(1);
289
+        child1.setProblemComplete(1);//完整性数量
290
+        child1.setProblemSuitable(2);//适宜性数量
291
+        child1.setProblemEffective(3);//有效性数量
292
+        child1.setProblemCompleteChecked(0);//已完成完整性数量
293
+        child1.setProblemSuitableChecked(1);//已完成适宜性数量
294
+        child1.setProblemEffectiveChecked(2);//已完成有效性数量
295
+        // children1.add(child1);
296
+        // data1.setChildren(children1);
297
+        data1.getChildren().add(child1);
296
         list.add(data1);
298
         list.add(data1);
297
 
299
 
298
         DeptDetaailView data2 = new DeptDetaailView();
300
         DeptDetaailView data2 = new DeptDetaailView();
299
-//        data2.setdeptId 部门ID
300
-//        data2.setdeptName 部门名称
301
-//        data2.setproblemRectificationRate 整改率
302
-//        data2.setstatisticsTime 统计时间
303
-        List<DeptDetaailView.ProblemAttributeInner> children2 = new ArrayList<>();
301
+        data2.setDeptId(2l); //部门ID
302
+        data2.setDeptName("测试部门名称2");// 部门名称
303
+        data2.setProblemRectificationRate(new BigDecimal(0.9)); //整改率
304
+        data2.setStatisticsTime(new Date());// 统计时间
304
         DeptDetaailView.ProblemAttributeInner child2 = new DeptDetaailView.ProblemAttributeInner();
305
         DeptDetaailView.ProblemAttributeInner child2 = new DeptDetaailView.ProblemAttributeInner();
305
-//        child2.set业务职责字典值 private Integer dutyType; 业务职责字典值-前端自己显示中文名称:duty_type 职责类别:1-业务职责;2-党建及党风廉政;3-安全环保职责;4-合规保密职;
306
-//        child2.set完整性数量  private Integer problemComplete;
307
-//        child2.set适宜性数量  private Integer problemSuitable;
308
-//        child2.set有效性数量  private Integer problemEffective;
309
-//        child2.set已完成完整性数量 private Integer problemCompleteChecked;
310
-//        child2.set已完成适宜性数量 private Integer problemSuitableChecked;
311
-//        child2.set已完成有效性数量 private Integer problemEffectiveChecked;
312
-        children1.add(child2);
313
-        data2.setChildren(children2);
306
+        child2.setDutyType(1);
307
+        child2.setProblemComplete(1);//完整性数量
308
+        child2.setProblemSuitable(2);//适宜性数量
309
+        child2.setProblemEffective(3);//有效性数量
310
+        child2.setProblemCompleteChecked(0);//已完成完整性数量
311
+        child2.setProblemSuitableChecked(1);//已完成适宜性数量
312
+        child2.setProblemEffectiveChecked(2);//已完成有效性数量
313
+        data2.getChildren().add(child2);
314
         list.add(data2);
314
         list.add(data2);
315
 
315
 
316
-        DeptDetaailView data3 = new DeptDetaailView();
317
-//        data3.setdeptId 部门ID
318
-//        data3.setdeptName 部门名称
319
-//        data3.setproblemRectificationRate 整改率
320
-//        data3.setstatisticsTime 统计时间
321
-        List<DeptDetaailView.ProblemAttributeInner> children3 = new ArrayList<>();
322
-        DeptDetaailView.ProblemAttributeInner child3 = new DeptDetaailView.ProblemAttributeInner();
323
-//        child3.set业务职责字典值 private Integer dutyType; 业务职责字典值-前端自己显示中文名称:duty_type 职责类别:1-业务职责;2-党建及党风廉政;3-安全环保职责;4-合规保密职;
324
-//        child3.set完整性数量  private Integer problemComplete;
325
-//        child3.set适宜性数量  private Integer problemSuitable;
326
-//        child3.set有效性数量  private Integer problemEffective;
327
-//        child3.set已完成完整性数量 private Integer problemCompleteChecked;
328
-//        child3.set已完成适宜性数量 private Integer problemSuitableChecked;
329
-//        child3.set已完成有效性数量 private Integer problemEffectiveChecked;
330
-        children1.add(child3);
331
-        data3.setChildren(children3);
332
-        list.add(data3);
333
-
334
-        DeptDetaailView data4 = new DeptDetaailView();
335
-//        data4.setdeptId 部门ID
336
-//        data4.setdeptName 部门名称
337
-//        data4.setproblemRectificationRate 整改率
338
-//        data4.setstatisticsTime 统计时间
339
-        List<DeptDetaailView.ProblemAttributeInner> children4 = new ArrayList<>();
340
-        DeptDetaailView.ProblemAttributeInner child4 = new DeptDetaailView.ProblemAttributeInner();
341
-//        child4.set业务职责字典值 private Integer dutyType; 业务职责字典值-前端自己显示中文名称:duty_type 职责类别:1-业务职责;2-党建及党风廉政;3-安全环保职责;4-合规保密职;
342
-//        child4.set完整性数量 private Integer problemComplete;
343
-//        child4.set适宜性数量 private Integer problemSuitable;
344
-//        child4.set有效性数量 private Integer problemEffective;
345
-//        child4.set已完成完整性数量 private Integer problemCompleteChecked;
346
-//        child4.set已完成适宜性数量 private Integer problemSuitableChecked;
347
-//        child4.set已完成有效性数量 private Integer problemEffectiveChecked;
348
-        children1.add(child4);
349
-        data4.setChildren(children4);
350
-        list.add(data4);
351
         return success(list);
316
         return success(list);
352
     }
317
     }
353
 }
318
 }

+ 29 - 65
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostCheckedRectificationProductionProblemStatisticsController.java

@@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.GetMapping;
11
 import org.springframework.web.bind.annotation.RequestMapping;
11
 import org.springframework.web.bind.annotation.RequestMapping;
12
 import org.springframework.web.bind.annotation.RestController;
12
 import org.springframework.web.bind.annotation.RestController;
13
 
13
 
14
+import java.math.BigDecimal;
14
 import java.util.ArrayList;
15
 import java.util.ArrayList;
15
 import java.util.Date;
16
 import java.util.Date;
16
 import java.util.List;
17
 import java.util.List;
@@ -277,77 +278,40 @@ public class PostCheckedRectificationProductionProblemStatisticsController exten
277
         //TODO 第三步:设置部门的整改率:遍历职责类别计算整改率
278
         //TODO 第三步:设置部门的整改率:遍历职责类别计算整改率
278
 
279
 
279
         DeptDetaailView data1 = new DeptDetaailView();
280
         DeptDetaailView data1 = new DeptDetaailView();
280
-//        data1.setdeptId 部门ID
281
-//        data1.setdeptName 部门名称
282
-//        data1.setproblemRectificationRate 整改率
283
-//        data1.setstatisticsTime 统计时间
284
-
285
-        List<DeptDetaailView.ProblemAttributeInner> children1 = new ArrayList<>();
281
+        data1.setDeptId(1l); //部门ID
282
+        data1.setDeptName("测试部门名称1111");// 部门名称
283
+        data1.setProblemRectificationRate(new BigDecimal(0.9)); //整改率
284
+        data1.setStatisticsTime(new Date());// 统计时间
285
+//        List<DeptDetaailView.ProblemAttributeInner> children1 = new ArrayList<>();
286
         DeptDetaailView.ProblemAttributeInner child1 = new DeptDetaailView.ProblemAttributeInner();
286
         DeptDetaailView.ProblemAttributeInner child1 = new DeptDetaailView.ProblemAttributeInner();
287
-//        child1.set业务职责字典值 private Integer dutyType; 业务职责字典值-前端自己显示中文名称:duty_type 职责类别:1-业务职责;2-党建及党风廉政;3-安全环保职责;4-合规保密职;
288
-//        child1.set完整性数量 private Integer problemComplete;
289
-//        child1.set适宜性数量 private Integer problemSuitable;
290
-//        child1.set有效性数量 private Integer problemEffective;
291
-//        child1.set已完成完整性数量 private Integer problemCompleteChecked;
292
-//        child1.set已完成适宜性数量 private Integer problemSuitableChecked;
293
-//        child1.set已完成有效性数量 private Integer problemEffectiveChecked;
294
-        children1.add(child1);
295
-        data1.setChildren(children1);
287
+        //业务职责字典值 private Integer ; 业务职责字典值-前端自己显示中文名称:duty_type 职责类别:1-业务职责;2-党建及党风廉政;3-安全环保职责;4-合规保密职;
288
+        child1.setDutyType(1);
289
+        child1.setProblemComplete(1);//完整性数量
290
+        child1.setProblemSuitable(2);//适宜性数量
291
+        child1.setProblemEffective(3);//有效性数量
292
+        child1.setProblemCompleteChecked(0);//已完成完整性数量
293
+        child1.setProblemSuitableChecked(1);//已完成适宜性数量
294
+        child1.setProblemEffectiveChecked(2);//已完成有效性数量
295
+        // children1.add(child1);
296
+        // data1.setChildren(children1);
297
+        data1.getChildren().add(child1);
296
         list.add(data1);
298
         list.add(data1);
297
 
299
 
298
         DeptDetaailView data2 = new DeptDetaailView();
300
         DeptDetaailView data2 = new DeptDetaailView();
299
-//        data2.setdeptId 部门ID
300
-//        data2.setdeptName 部门名称
301
-//        data2.setproblemRectificationRate 整改率
302
-//        data2.setstatisticsTime 统计时间
303
-        List<DeptDetaailView.ProblemAttributeInner> children2 = new ArrayList<>();
301
+        data2.setDeptId(2l); //部门ID
302
+        data2.setDeptName("测试部门名称2222");// 部门名称
303
+        data2.setProblemRectificationRate(new BigDecimal(0.9)); //整改率
304
+        data2.setStatisticsTime(new Date());// 统计时间
304
         DeptDetaailView.ProblemAttributeInner child2 = new DeptDetaailView.ProblemAttributeInner();
305
         DeptDetaailView.ProblemAttributeInner child2 = new DeptDetaailView.ProblemAttributeInner();
305
-//        child2.set业务职责字典值 private Integer dutyType; 业务职责字典值-前端自己显示中文名称:duty_type 职责类别:1-业务职责;2-党建及党风廉政;3-安全环保职责;4-合规保密职;
306
-//        child2.set完整性数量  private Integer problemComplete;
307
-//        child2.set适宜性数量  private Integer problemSuitable;
308
-//        child2.set有效性数量  private Integer problemEffective;
309
-//        child2.set已完成完整性数量 private Integer problemCompleteChecked;
310
-//        child2.set已完成适宜性数量 private Integer problemSuitableChecked;
311
-//        child2.set已完成有效性数量 private Integer problemEffectiveChecked;
312
-        children1.add(child2);
313
-        data2.setChildren(children2);
306
+        child2.setDutyType(1);
307
+        child2.setProblemComplete(1);//完整性数量
308
+        child2.setProblemSuitable(2);//适宜性数量
309
+        child2.setProblemEffective(3);//有效性数量
310
+        child2.setProblemCompleteChecked(0);//已完成完整性数量
311
+        child2.setProblemSuitableChecked(1);//已完成适宜性数量
312
+        child2.setProblemEffectiveChecked(2);//已完成有效性数量
313
+        data2.getChildren().add(child2);
314
         list.add(data2);
314
         list.add(data2);
315
-
316
-        DeptDetaailView data3 = new DeptDetaailView();
317
-//        data3.setdeptId 部门ID
318
-//        data3.setdeptName 部门名称
319
-//        data3.setproblemRectificationRate 整改率
320
-//        data3.setstatisticsTime 统计时间
321
-        List<DeptDetaailView.ProblemAttributeInner> children3 = new ArrayList<>();
322
-        DeptDetaailView.ProblemAttributeInner child3 = new DeptDetaailView.ProblemAttributeInner();
323
-//        child3.set业务职责字典值 private Integer dutyType; 业务职责字典值-前端自己显示中文名称:duty_type 职责类别:1-业务职责;2-党建及党风廉政;3-安全环保职责;4-合规保密职;
324
-//        child3.set完整性数量  private Integer problemComplete;
325
-//        child3.set适宜性数量  private Integer problemSuitable;
326
-//        child3.set有效性数量  private Integer problemEffective;
327
-//        child3.set已完成完整性数量 private Integer problemCompleteChecked;
328
-//        child3.set已完成适宜性数量 private Integer problemSuitableChecked;
329
-//        child3.set已完成有效性数量 private Integer problemEffectiveChecked;
330
-        children1.add(child3);
331
-        data3.setChildren(children3);
332
-        list.add(data3);
333
-
334
-        DeptDetaailView data4 = new DeptDetaailView();
335
-//        data4.setdeptId 部门ID
336
-//        data4.setdeptName 部门名称
337
-//        data4.setproblemRectificationRate 整改率
338
-//        data4.setstatisticsTime 统计时间
339
-        List<DeptDetaailView.ProblemAttributeInner> children4 = new ArrayList<>();
340
-        DeptDetaailView.ProblemAttributeInner child4 = new DeptDetaailView.ProblemAttributeInner();
341
-//        child4.set业务职责字典值 private Integer dutyType; 业务职责字典值-前端自己显示中文名称:duty_type 职责类别:1-业务职责;2-党建及党风廉政;3-安全环保职责;4-合规保密职;
342
-//        child4.set完整性数量 private Integer problemComplete;
343
-//        child4.set适宜性数量 private Integer problemSuitable;
344
-//        child4.set有效性数量 private Integer problemEffective;
345
-//        child4.set已完成完整性数量 private Integer problemCompleteChecked;
346
-//        child4.set已完成适宜性数量 private Integer problemSuitableChecked;
347
-//        child4.set已完成有效性数量 private Integer problemEffectiveChecked;
348
-        children1.add(child4);
349
-        data4.setChildren(children4);
350
-        list.add(data4);
351
         return success(list);
315
         return success(list);
352
     }
316
     }
353
 }
317
 }

+ 13 - 12
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/domain/problemStatistics/CheckedProblemDeptDetaailView.java

@@ -15,9 +15,10 @@ import java.util.List;
15
 @Data
15
 @Data
16
 @ApiModel(value = "统计分析-部门详情(职能管理)")
16
 @ApiModel(value = "统计分析-部门详情(职能管理)")
17
 //extends DutyTypeProblemStatisticsView
17
 //extends DutyTypeProblemStatisticsView
18
-public class CheckedProblemDeptDetaailView extends  ProblemLevelView implements Serializable {
18
+public class CheckedProblemDeptDetaailView extends ProblemLevelView {
19
 
19
 
20
-    private static final long serialVersionUID = 5666890687691604123L;
20
+
21
+    private static final long serialVersionUID = -1417514493751943760L;
21
     @ApiModelProperty("部门ID")
22
     @ApiModelProperty("部门ID")
22
     private Long deptId;
23
     private Long deptId;
23
     @ApiModelProperty("部门名称")
24
     @ApiModelProperty("部门名称")
@@ -25,7 +26,7 @@ public class CheckedProblemDeptDetaailView extends  ProblemLevelView implements
25
 
26
 
26
 
27
 
27
     @ApiModelProperty("总数量")
28
     @ApiModelProperty("总数量")
28
-    private Integer problemTotal;
29
+    private int problemTotal;
29
 
30
 
30
 //    @ApiModelProperty("一般")
31
 //    @ApiModelProperty("一般")
31
 //    private Integer problemLeveOne;
32
 //    private Integer problemLeveOne;
@@ -45,27 +46,27 @@ public class CheckedProblemDeptDetaailView extends  ProblemLevelView implements
45
      * 按业务职责归类存放问题整改的情况
46
      * 按业务职责归类存放问题整改的情况
46
      */
47
      */
47
 //            extends ProblemNumberBase {
48
 //            extends ProblemNumberBase {
48
-    public static class ProblemAttributeInner implements Serializable {
49
-
50
-        private static final long serialVersionUID = 3140695152506065277L;
49
+    @Data
50
+    public static class ProblemAttributeInner implements Serializable{
51
 
51
 
52
+        private static final long serialVersionUID = 1635970865375548967L;
52
         @ApiModelProperty("业务职责字典值-前端自己显示中文名称:duty_type 职责类别:1-业务职责;2-党建及党风廉政;3-安全环保职责;4-合规保密职;")
53
         @ApiModelProperty("业务职责字典值-前端自己显示中文名称:duty_type 职责类别:1-业务职责;2-党建及党风廉政;3-安全环保职责;4-合规保密职;")
53
         private Integer dutyType;
54
         private Integer dutyType;
54
 
55
 
55
 
56
 
56
         @ApiModelProperty("完整性数量")
57
         @ApiModelProperty("完整性数量")
57
-        private Integer problemComplete;
58
+        private int problemComplete;
58
         @ApiModelProperty("适宜性数量")
59
         @ApiModelProperty("适宜性数量")
59
-        private Integer problemSuitable;
60
+        private int problemSuitable;
60
         @ApiModelProperty("有效性数量")
61
         @ApiModelProperty("有效性数量")
61
-        private Integer problemEffective;
62
+        private int problemEffective;
62
 
63
 
63
         @ApiModelProperty("已完成完整性数量")
64
         @ApiModelProperty("已完成完整性数量")
64
-        private Integer problemCompleteChecked;
65
+        private int problemCompleteChecked;
65
         @ApiModelProperty("已完成适宜性数量")
66
         @ApiModelProperty("已完成适宜性数量")
66
-        private Integer problemSuitableChecked;
67
+        private int problemSuitableChecked;
67
         @ApiModelProperty("已完成有效性数量")
68
         @ApiModelProperty("已完成有效性数量")
68
-        private Integer problemEffectiveChecked;
69
+        private int problemEffectiveChecked;
69
 
70
 
70
     }
71
     }
71
 
72
 

+ 1 - 0
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/domain/problemStatistics/DeptDetaailView.java

@@ -36,6 +36,7 @@ public class DeptDetaailView implements Serializable {
36
      * 按业务职责归类存放问题整改的情况
36
      * 按业务职责归类存放问题整改的情况
37
      */
37
      */
38
 //            extends ProblemNumberBase {
38
 //            extends ProblemNumberBase {
39
+    @Data
39
     public static class ProblemAttributeInner implements Serializable {
40
     public static class ProblemAttributeInner implements Serializable {
40
 
41
 
41
         private static final long serialVersionUID = 3140695152506065277L;
42
         private static final long serialVersionUID = 3140695152506065277L;

+ 2 - 2
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/domain/problemStatistics/ProblemLevelView.java

@@ -17,10 +17,10 @@ public class ProblemLevelView implements Serializable {
17
     private static final long serialVersionUID = -6982314157222524166L;
17
     private static final long serialVersionUID = -6982314157222524166L;
18
 
18
 
19
     @ApiModelProperty("一般")
19
     @ApiModelProperty("一般")
20
-    private Integer problemLeveOne;
20
+    private int problemLeveOne;
21
 
21
 
22
     @ApiModelProperty("重要")
22
     @ApiModelProperty("重要")
23
-    private Integer problemLeveTwo;
23
+    private int problemLeveTwo;
24
 
24
 
25
 
25
 
26
 
26