Browse Source

Merge remote-tracking branch 'origin/master'

zhaowenjing 9 months ago
parent
commit
6ad0e6c573
33 changed files with 356 additions and 240 deletions
  1. 17 4
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java
  2. 0 4
      ruoyi-admin/src/test/java/com/post/Test01.java
  3. 6 0
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostCheckedController.java
  4. 1 4
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostCheckedProblemController.java
  5. 3 3
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostCheckedReportController.java
  6. 43 13
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostListController.java
  7. 6 0
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostPlanController.java
  8. 13 62
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostPlanJoinCheckedController.java
  9. 1 0
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostPlanJoinProblemController.java
  10. 5 0
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/domain/PostChecked.java
  11. 6 0
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/domain/PostCheckedItems.java
  12. 7 5
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/domain/PostCheckedProblem.java
  13. 4 4
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/domain/PostPlanInfo.java
  14. 3 0
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/domain/join/PostPlanJoinChecked.java
  15. 2 2
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/IPostCheckedReportService.java
  16. 2 2
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/IPostPlanJoinCheckedService.java
  17. 4 1
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostAssessmentRatingServiceImpl.java
  18. 17 17
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostCheckedProblemServiceImpl.java
  19. 9 7
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostCheckedReportServiceImpl.java
  20. 6 0
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostCheckedServiceImpl.java
  21. 62 19
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostListServiceImpl.java
  22. 1 9
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostPlanInfoServiceImpl.java
  23. 6 4
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostPlanJoinCheckedServiceImpl.java
  24. 1 1
      ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostProgrammeServiceImpl.java
  25. 12 7
      ruoyi-postcheck/src/main/resources/mapper/postCheck/PostCheckedItemsMapper.xml
  26. 10 1
      ruoyi-postcheck/src/main/resources/mapper/postCheck/PostCheckedMapper.xml
  27. 39 35
      ruoyi-postcheck/src/main/resources/mapper/postCheck/PostCheckedProblemMapper.xml
  28. 25 2
      ruoyi-postcheck/src/main/resources/mapper/postCheck/PostPlanInfoMapper.xml
  29. 18 15
      ruoyi-postcheck/src/main/resources/mapper/postCheck/PostPlanMapper.xml
  30. 9 4
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java
  31. 7 1
      ruoyi-system/src/main/java/com/ruoyi/system/service/ISysUserService.java
  32. 6 10
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java
  33. 5 4
      ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml

+ 17 - 4
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java

@@ -240,15 +240,28 @@ public class SysUserController extends BaseController {
240
     @ApiOperation("查询用户列表(分页)支持部门ID、岗位名称筛选")
240
     @ApiOperation("查询用户列表(分页)支持部门ID、岗位名称筛选")
241
     @ApiImplicitParams({
241
     @ApiImplicitParams({
242
             @ApiImplicitParam(name = "deptId", value = "部门ID", dataType = "Long", dataTypeClass = Long.class),
242
             @ApiImplicitParam(name = "deptId", value = "部门ID", dataType = "Long", dataTypeClass = Long.class),
243
+            @ApiImplicitParam(name = "deptName", value = "部门名称", dataType = "String", dataTypeClass = String.class),
244
+
245
+            @ApiImplicitParam(name = "postId", value = "岗位ID", dataType = "Long", dataTypeClass = Long.class),
243
             @ApiImplicitParam(name = "postName", value = "岗位名称", dataType = "String", dataTypeClass = String.class),
246
             @ApiImplicitParam(name = "postName", value = "岗位名称", dataType = "String", dataTypeClass = String.class),
247
+
248
+            @ApiImplicitParam(name = "nickName", value = "人员姓名", dataType = "String", dataTypeClass = String.class),
249
+
244
             @ApiImplicitParam(name = "pageNum", value = "页码从1开始", dataType = "Integer", dataTypeClass = Integer.class),
250
             @ApiImplicitParam(name = "pageNum", value = "页码从1开始", dataType = "Integer", dataTypeClass = Integer.class),
245
             @ApiImplicitParam(name = "pageSize", value = "分页大小", dataType = "Integer", dataTypeClass = Integer.class),
251
             @ApiImplicitParam(name = "pageSize", value = "分页大小", dataType = "Integer", dataTypeClass = Integer.class),
246
-            @ApiImplicitParam(name = "orderBy", value = "排序字段", dataType = "String", dataTypeClass = String.class)
252
+//            @ApiImplicitParam(name = "orderBy", value = "排序字段", dataType = "String", dataTypeClass = String.class)
247
     })
253
     })
248
     @GetMapping("/postUserList")
254
     @GetMapping("/postUserList")
249
-    public TableDataInfo postUserList(Long deptId ,String postName) {
250
-        startPage();
251
-        List<SysUser> list = userService.postUserList(deptId,postName);
255
+//    public TableDataInfo postUserList(Long deptId ,String postName) {
256
+    public TableDataInfo postUserList(Long deptId, String deptName, Long postId, String postName, String nickName) {
257
+//        pageNum: 1
258
+//        pageSize: 10
259
+//        deptName: 部门名称
260
+//        postName: 岗位名称
261
+//        nickName: 人员名称
262
+//        startPage();
263
+        startPage("desc", "u.create_time");
264
+        List<SysUser> list = userService.postUserList(deptId, deptName, postId, postName, nickName);
252
 
265
 
253
 
266
 
254
         return getDataTable(list);
267
         return getDataTable(list);

+ 0 - 4
ruoyi-admin/src/test/java/com/post/Test01.java

@@ -14,8 +14,4 @@ public class Test01 {
14
             System.out.println("insert into post_tools (id, \"type\", \"type_view\") values(" + i + ", 1, " + (2020 + (i - 100)) + ");");
14
             System.out.println("insert into post_tools (id, \"type\", \"type_view\") values(" + i + ", 1, " + (2020 + (i - 100)) + ");");
15
         }
15
         }
16
     }
16
     }
17
-
18
-    public void ss() {
19
-
20
-    }
21
 }
17
 }

+ 6 - 0
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostCheckedController.java

@@ -64,6 +64,12 @@ public class PostCheckedController extends BaseController {
64
     @PreAuthorize("@ss.hasPermi('postCheck:postChecked:list')")
64
     @PreAuthorize("@ss.hasPermi('postCheck:postChecked:list')")
65
     @GetMapping("/list")
65
     @GetMapping("/list")
66
     public TableDataInfo list(PostChecked postChecked) {
66
     public TableDataInfo list(PostChecked postChecked) {
67
+//        pageNum: 1
68
+//        pageSize: 10
69
+//        checkWorkgroupName: 工作组
70
+//        checkGroupName: 检查小组
71
+//        checkedDeptName: 部门
72
+//        postCode: 编号 post_code
67
 //        startPage();
73
 //        startPage();
68
         startPage("desc", "t1.create_time");
74
         startPage("desc", "t1.create_time");
69
         List<PostChecked> list = postCheckedService.selectPostCheckedList(postChecked);
75
         List<PostChecked> list = postCheckedService.selectPostCheckedList(postChecked);

+ 1 - 4
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostCheckedProblemController.java

@@ -49,7 +49,7 @@ public class PostCheckedProblemController extends BaseController {
49
             @ApiImplicitParam(name = "problemNo", value = "问题编号(需要甲方提供规则规则)", dataType = "String", dataTypeClass = String.class),
49
             @ApiImplicitParam(name = "problemNo", value = "问题编号(需要甲方提供规则规则)", dataType = "String", dataTypeClass = String.class),
50
             @ApiImplicitParam(name = "checkWorkgroupId", value = "检查工作组ID", dataType = "Long", dataTypeClass = Long.class),
50
             @ApiImplicitParam(name = "checkWorkgroupId", value = "检查工作组ID", dataType = "Long", dataTypeClass = Long.class),
51
             @ApiImplicitParam(name = "checkGroupId", value = "检查小组ID", dataType = "Long", dataTypeClass = Long.class),
51
             @ApiImplicitParam(name = "checkGroupId", value = "检查小组ID", dataType = "Long", dataTypeClass = Long.class),
52
-            @ApiImplicitParam(name = "checkUserId", value = "检查人员ID", dataType = "Long", dataTypeClass = Long.class),
52
+            @ApiImplicitParam(name = "checkUserName", value = "检查人姓名", dataType = "Long", dataTypeClass = Long.class),
53
             @ApiImplicitParam(name = "deptApproveUserId", value = "审核1:整改部门经理ID", dataType = "Long", dataTypeClass = Long.class),
53
             @ApiImplicitParam(name = "deptApproveUserId", value = "审核1:整改部门经理ID", dataType = "Long", dataTypeClass = Long.class),
54
             @ApiImplicitParam(name = "deptApproveTime", value = "审核1:整改部门经理审核时间", dataType = "Date", dataTypeClass = Date.class),
54
             @ApiImplicitParam(name = "deptApproveTime", value = "审核1:整改部门经理审核时间", dataType = "Date", dataTypeClass = Date.class),
55
             @ApiImplicitParam(name = "specialityDepartmentReviewerId", value = "审核2:专业部门的审核人ID(非必选,方案填写人选择)", dataType = "Long", dataTypeClass = Long.class),
55
             @ApiImplicitParam(name = "specialityDepartmentReviewerId", value = "审核2:专业部门的审核人ID(非必选,方案填写人选择)", dataType = "Long", dataTypeClass = Long.class),
@@ -117,7 +117,6 @@ public class PostCheckedProblemController extends BaseController {
117
             @ApiImplicitParam(name = "problemNo", value = "问题编号(需要甲方提供规则规则)", dataType = "String", dataTypeClass = String.class),
117
             @ApiImplicitParam(name = "problemNo", value = "问题编号(需要甲方提供规则规则)", dataType = "String", dataTypeClass = String.class),
118
             @ApiImplicitParam(name = "checkWorkgroupId", value = "检查工作组ID", dataType = "Long", dataTypeClass = Long.class),
118
             @ApiImplicitParam(name = "checkWorkgroupId", value = "检查工作组ID", dataType = "Long", dataTypeClass = Long.class),
119
             @ApiImplicitParam(name = "checkGroupId", value = "检查小组ID", dataType = "Long", dataTypeClass = Long.class),
119
             @ApiImplicitParam(name = "checkGroupId", value = "检查小组ID", dataType = "Long", dataTypeClass = Long.class),
120
-//            @ApiImplicitParam(name = "checkUserId", value = "检查人员ID", dataType = "Long", dataTypeClass = Long.class),
121
             @ApiImplicitParam(name = "checkUserName", value = "检查人姓名", dataType = "String", dataTypeClass = String.class),
120
             @ApiImplicitParam(name = "checkUserName", value = "检查人姓名", dataType = "String", dataTypeClass = String.class),
122
             @ApiImplicitParam(name = "deptApproveUserId", value = "审核1:整改部门经理ID", dataType = "Long", dataTypeClass = Long.class),
121
             @ApiImplicitParam(name = "deptApproveUserId", value = "审核1:整改部门经理ID", dataType = "Long", dataTypeClass = Long.class),
123
             @ApiImplicitParam(name = "deptApproveTime", value = "审核1:整改部门经理审核时间", dataType = "Date", dataTypeClass = Date.class),
122
             @ApiImplicitParam(name = "deptApproveTime", value = "审核1:整改部门经理审核时间", dataType = "Date", dataTypeClass = Date.class),
@@ -163,7 +162,6 @@ public class PostCheckedProblemController extends BaseController {
163
 //            @ApiImplicitParam(name = "problemNo", value = "问题编号(需要甲方提供规则规则)", dataType = "String", dataTypeClass = String.class),
162
 //            @ApiImplicitParam(name = "problemNo", value = "问题编号(需要甲方提供规则规则)", dataType = "String", dataTypeClass = String.class),
164
 //            @ApiImplicitParam(name = "checkWorkgroupId", value = "检查工作组ID", dataType = "Long", dataTypeClass = Long.class),
163
 //            @ApiImplicitParam(name = "checkWorkgroupId", value = "检查工作组ID", dataType = "Long", dataTypeClass = Long.class),
165
 //            @ApiImplicitParam(name = "checkGroupId", value = "检查小组ID", dataType = "Long", dataTypeClass = Long.class),
164
 //            @ApiImplicitParam(name = "checkGroupId", value = "检查小组ID", dataType = "Long", dataTypeClass = Long.class),
166
-//            @ApiImplicitParam(name = "checkUserId", value = "检查人员ID", dataType = "Long", dataTypeClass = Long.class),
167
 //            @ApiImplicitParam(name = "deptApproveUserId", value = "审核1:整改部门经理ID", dataType = "Long", dataTypeClass = Long.class),
165
 //            @ApiImplicitParam(name = "deptApproveUserId", value = "审核1:整改部门经理ID", dataType = "Long", dataTypeClass = Long.class),
168
 //            @ApiImplicitParam(name = "deptApproveTime", value = "审核1:整改部门经理审核时间", dataType = "Date", dataTypeClass = Date.class),
166
 //            @ApiImplicitParam(name = "deptApproveTime", value = "审核1:整改部门经理审核时间", dataType = "Date", dataTypeClass = Date.class),
169
 //            @ApiImplicitParam(name = "specialityDepartmentReviewerId", value = "审核2:专业部门的审核人ID(非必选,方案填写人选择)", dataType = "Long", dataTypeClass = Long.class),
167
 //            @ApiImplicitParam(name = "specialityDepartmentReviewerId", value = "审核2:专业部门的审核人ID(非必选,方案填写人选择)", dataType = "Long", dataTypeClass = Long.class),
@@ -210,7 +208,6 @@ public class PostCheckedProblemController extends BaseController {
210
 //            @ApiImplicitParam(name = "problemNo", value = "问题编号(需要甲方提供规则规则)", dataType = "String", dataTypeClass = String.class),
208
 //            @ApiImplicitParam(name = "problemNo", value = "问题编号(需要甲方提供规则规则)", dataType = "String", dataTypeClass = String.class),
211
 //            @ApiImplicitParam(name = "checkWorkgroupId", value = "检查工作组ID", dataType = "Long", dataTypeClass = Long.class),
209
 //            @ApiImplicitParam(name = "checkWorkgroupId", value = "检查工作组ID", dataType = "Long", dataTypeClass = Long.class),
212
 //            @ApiImplicitParam(name = "checkGroupId", value = "检查小组ID", dataType = "Long", dataTypeClass = Long.class),
210
 //            @ApiImplicitParam(name = "checkGroupId", value = "检查小组ID", dataType = "Long", dataTypeClass = Long.class),
213
-//            @ApiImplicitParam(name = "checkUserId", value = "检查人员ID", dataType = "Long", dataTypeClass = Long.class),
214
 //            @ApiImplicitParam(name = "deptApproveUserId", value = "审核1:整改部门经理ID", dataType = "Long", dataTypeClass = Long.class),
211
 //            @ApiImplicitParam(name = "deptApproveUserId", value = "审核1:整改部门经理ID", dataType = "Long", dataTypeClass = Long.class),
215
 //            @ApiImplicitParam(name = "deptApproveTime", value = "审核1:整改部门经理审核时间", dataType = "Date", dataTypeClass = Date.class),
212
 //            @ApiImplicitParam(name = "deptApproveTime", value = "审核1:整改部门经理审核时间", dataType = "Date", dataTypeClass = Date.class),
216
 //            @ApiImplicitParam(name = "specialityDepartmentReviewerId", value = "审核2:专业部门的审核人ID(非必选,方案填写人选择)", dataType = "Long", dataTypeClass = Long.class),
213
 //            @ApiImplicitParam(name = "specialityDepartmentReviewerId", value = "审核2:专业部门的审核人ID(非必选,方案填写人选择)", dataType = "Long", dataTypeClass = Long.class),

+ 3 - 3
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostCheckedReportController.java

@@ -242,12 +242,12 @@ public class PostCheckedReportController extends BaseController
242
     })
242
     })
243
     @Log(title = "岗检报告审核", businessType = BusinessType.UPDATE)
243
     @Log(title = "岗检报告审核", businessType = BusinessType.UPDATE)
244
     @PutMapping("/statusApprove")
244
     @PutMapping("/statusApprove")
245
-    public AjaxResult statusApprove(Long id, Integer status, String statusReason) {
245
+    public AjaxResult statusApprove(Long id, Integer status, String reason) {
246
 
246
 
247
         // 判断审核的权限
247
         // 判断审核的权限
248
         LoginUser loginUser = SecurityUtils.getLoginUser();
248
         LoginUser loginUser = SecurityUtils.getLoginUser();
249
         if (SecurityUtils.isAdmin(loginUser.getUserId())) {
249
         if (SecurityUtils.isAdmin(loginUser.getUserId())) {
250
-            return toAjax(postCheckedReportService.statusApprove(id, status,  statusReason));
250
+            return toAjax(postCheckedReportService.statusApprove(id, status,  reason));
251
         }
251
         }
252
 
252
 
253
         // 当前登录用户的部门id 查询岗位id是否在内
253
         // 当前登录用户的部门id 查询岗位id是否在内
@@ -259,7 +259,7 @@ public class PostCheckedReportController extends BaseController
259
         if (!sysPostService.userHaveAuthority(sysDept.getDeptId())) {
259
         if (!sysPostService.userHaveAuthority(sysDept.getDeptId())) {
260
             return AjaxResult.error(HttpStatus.FORBIDDEN, "没有权限,请联系管理员授权");
260
             return AjaxResult.error(HttpStatus.FORBIDDEN, "没有权限,请联系管理员授权");
261
         }
261
         }
262
-        return toAjax(postCheckedReportService.statusApprove(id, status,  statusReason));
262
+        return toAjax(postCheckedReportService.statusApprove(id, status,  reason));
263
     }
263
     }
264
 
264
 
265
 }
265
 }

+ 43 - 13
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostListController.java

@@ -269,7 +269,9 @@ public class PostListController extends BaseController {
269
         List<PostCheckedItems> itemsList = new ArrayList<>();
269
         List<PostCheckedItems> itemsList = new ArrayList<>();
270
         if (type == 6) {
270
         if (type == 6) {
271
             PostCheckedItems item = new PostCheckedItems();
271
             PostCheckedItems item = new PostCheckedItems();
272
-            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
272
+//            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
273
+            item.setId(610l);
274
+            item.setChildrenTypeId(610l);
273
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
275
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
274
             item.setPostCheckedContent("完整性"); //检查内容 -> 一级事项、……、五级事项
276
             item.setPostCheckedContent("完整性"); //检查内容 -> 一级事项、……、五级事项
275
             item.setPostCheckedStandard("1.是否有岗位基本信息、岗位职责、岗位权限、工作内容、工作标准的描述;\n" +
277
             item.setPostCheckedStandard("1.是否有岗位基本信息、岗位职责、岗位权限、工作内容、工作标准的描述;\n" +
@@ -282,7 +284,9 @@ public class PostListController extends BaseController {
282
             itemsList.add(item);
284
             itemsList.add(item);
283
 
285
 
284
             item = new PostCheckedItems();
286
             item = new PostCheckedItems();
285
-            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
287
+//            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
288
+            item.setId(620l);
289
+            item.setChildrenTypeId(620l);
286
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
290
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
287
             item.setPostCheckedContent("适宜性"); //检查内容 -> 一级事项、……、五级事项
291
             item.setPostCheckedContent("适宜性"); //检查内容 -> 一级事项、……、五级事项
288
             item.setPostCheckedStandard("1.职责与权限;工作内容与岗位职责、权限;工作标准与工作内容、实际工作是否匹配;\n" +
292
             item.setPostCheckedStandard("1.职责与权限;工作内容与岗位职责、权限;工作标准与工作内容、实际工作是否匹配;\n" +
@@ -303,7 +307,9 @@ public class PostListController extends BaseController {
303
             return success(itemsList);
307
             return success(itemsList);
304
         } else if (type == 5) {
308
         } else if (type == 5) {
305
             PostCheckedItems item = new PostCheckedItems();
309
             PostCheckedItems item = new PostCheckedItems();
306
-            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
310
+//            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
311
+            item.setId(510l);
312
+            item.setChildrenTypeId(510l);
307
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
313
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
308
             item.setPostCheckedContent("政治要求"); //检查内容 -> 一级事项、……、五级事项
314
             item.setPostCheckedContent("政治要求"); //检查内容 -> 一级事项、……、五级事项
309
             item.setPostCheckedStandard("·中共党员。\n" +
315
             item.setPostCheckedStandard("·中共党员。\n" +
@@ -312,7 +318,9 @@ public class PostListController extends BaseController {
312
             itemsList.add(item);
318
             itemsList.add(item);
313
 
319
 
314
             item = new PostCheckedItems();
320
             item = new PostCheckedItems();
315
-            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
321
+//            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
322
+            item.setId(520l);
323
+            item.setChildrenTypeId(520l);
316
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
324
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
317
             item.setPostCheckedContent("最低学历要求"); //检查内容 -> 一级事项、……、五级事项
325
             item.setPostCheckedContent("最低学历要求"); //检查内容 -> 一级事项、……、五级事项
318
             item.setPostCheckedStandard("大学本科");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
326
             item.setPostCheckedStandard("大学本科");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
@@ -320,7 +328,9 @@ public class PostListController extends BaseController {
320
             itemsList.add(item);
328
             itemsList.add(item);
321
 
329
 
322
             item = new PostCheckedItems();
330
             item = new PostCheckedItems();
323
-            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
331
+//            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
332
+            item.setId(530l);
333
+            item.setChildrenTypeId(530l);
324
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
334
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
325
             item.setPostCheckedContent("最低学位要求"); //检查内容 -> 一级事项、……、五级事项
335
             item.setPostCheckedContent("最低学位要求"); //检查内容 -> 一级事项、……、五级事项
326
             item.setPostCheckedStandard("无");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
336
             item.setPostCheckedStandard("无");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
@@ -328,7 +338,9 @@ public class PostListController extends BaseController {
328
             itemsList.add(item);
338
             itemsList.add(item);
329
 
339
 
330
             item = new PostCheckedItems();
340
             item = new PostCheckedItems();
331
-            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
341
+//            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
342
+            item.setId(540l);
343
+            item.setChildrenTypeId(540l);
332
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
344
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
333
             item.setPostCheckedContent("工作经验"); //检查内容 -> 一级事项、……、五级事项
345
             item.setPostCheckedContent("工作经验"); //检查内容 -> 一级事项、……、五级事项
334
             item.setPostCheckedStandard("具有累计7年以上企业工作经历。M8/T6级及以上,在副经理(或相当层级)岗位工作2年以上;未满2年的应当在副经理(或相当层级)和岗位经理/主管工程师(或相当层级)岗位工作累计5年以上,且在副经理(或相当层级)岗位工作至少满1年。");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
346
             item.setPostCheckedStandard("具有累计7年以上企业工作经历。M8/T6级及以上,在副经理(或相当层级)岗位工作2年以上;未满2年的应当在副经理(或相当层级)和岗位经理/主管工程师(或相当层级)岗位工作累计5年以上,且在副经理(或相当层级)岗位工作至少满1年。");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
@@ -336,7 +348,9 @@ public class PostListController extends BaseController {
336
             itemsList.add(item);
348
             itemsList.add(item);
337
 
349
 
338
             item = new PostCheckedItems();
350
             item = new PostCheckedItems();
339
-            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
351
+//            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
352
+            item.setId(550l);
353
+            item.setChildrenTypeId(550l);
340
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
354
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
341
             item.setPostCheckedContent("职称要求"); //检查内容 -> 一级事项、……、五级事项
355
             item.setPostCheckedContent("职称要求"); //检查内容 -> 一级事项、……、五级事项
342
             item.setPostCheckedStandard("高级职称");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
356
             item.setPostCheckedStandard("高级职称");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
@@ -344,7 +358,9 @@ public class PostListController extends BaseController {
344
             itemsList.add(item);
358
             itemsList.add(item);
345
 
359
 
346
             item = new PostCheckedItems();
360
             item = new PostCheckedItems();
347
-            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
361
+//            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
362
+            item.setId(560l);
363
+            item.setChildrenTypeId(560l);
348
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
364
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
349
             item.setPostCheckedContent("专业要求"); //检查内容 -> 一级事项、……、五级事项
365
             item.setPostCheckedContent("专业要求"); //检查内容 -> 一级事项、……、五级事项
350
             item.setPostCheckedStandard("石油主干专业、企业管理或相关专业。");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
366
             item.setPostCheckedStandard("石油主干专业、企业管理或相关专业。");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
@@ -352,7 +368,9 @@ public class PostListController extends BaseController {
352
             itemsList.add(item);
368
             itemsList.add(item);
353
 
369
 
354
             item = new PostCheckedItems();
370
             item = new PostCheckedItems();
355
-            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
371
+//            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
372
+            item.setId(570l);
373
+            item.setChildrenTypeId(570l);
356
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
374
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
357
             item.setPostCheckedContent("能力要求"); //检查内容 -> 一级事项、……、五级事项
375
             item.setPostCheckedContent("能力要求"); //检查内容 -> 一级事项、……、五级事项
358
             item.setPostCheckedStandard("·具有出色的计划、控制、领导和团队管理能力\n" +
376
             item.setPostCheckedStandard("·具有出色的计划、控制、领导和团队管理能力\n" +
@@ -368,7 +386,9 @@ public class PostListController extends BaseController {
368
             itemsList.add(item);
386
             itemsList.add(item);
369
 
387
 
370
             item = new PostCheckedItems();
388
             item = new PostCheckedItems();
371
-            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
389
+//            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
390
+            item.setId(580l);
391
+            item.setChildrenTypeId(580l);
372
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
392
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
373
             item.setPostCheckedContent("知识要求"); //检查内容 -> 一级事项、……、五级事项
393
             item.setPostCheckedContent("知识要求"); //检查内容 -> 一级事项、……、五级事项
374
             item.setPostCheckedStandard("·掌握相关的政策、法律和法规知识\n" +
394
             item.setPostCheckedStandard("·掌握相关的政策、法律和法规知识\n" +
@@ -379,7 +399,9 @@ public class PostListController extends BaseController {
379
             itemsList.add(item);
399
             itemsList.add(item);
380
 
400
 
381
             item = new PostCheckedItems();
401
             item = new PostCheckedItems();
382
-            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
402
+//            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
403
+            item.setId(590l);
404
+            item.setChildrenTypeId(590l);
383
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
405
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
384
             item.setPostCheckedContent("在岗时应持有证书或必须参加的培训"); //检查内容 -> 一级事项、……、五级事项
406
             item.setPostCheckedContent("在岗时应持有证书或必须参加的培训"); //检查内容 -> 一级事项、……、五级事项
385
             item.setPostCheckedStandard("无");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
407
             item.setPostCheckedStandard("无");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
@@ -387,7 +409,9 @@ public class PostListController extends BaseController {
387
             itemsList.add(item);
409
             itemsList.add(item);
388
 
410
 
389
             item = new PostCheckedItems();
411
             item = new PostCheckedItems();
390
-            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
412
+//            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
413
+            item.setId(5100l);
414
+            item.setChildrenTypeId(5100l);
391
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
415
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
392
             item.setPostCheckedContent("其他要求"); //检查内容 -> 一级事项、……、五级事项
416
             item.setPostCheckedContent("其他要求"); //检查内容 -> 一级事项、……、五级事项
393
             item.setPostCheckedStandard("具有正常履职的身体条件,心理素质良好。");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
417
             item.setPostCheckedStandard("具有正常履职的身体条件,心理素质良好。");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
@@ -400,7 +424,9 @@ public class PostListController extends BaseController {
400
         itemsList = postListService.contentListByType(deptId, postId, type);
424
         itemsList = postListService.contentListByType(deptId, postId, type);
401
         if (type == 4) {
425
         if (type == 4) {
402
             PostCheckedItems item = new PostCheckedItems();
426
             PostCheckedItems item = new PostCheckedItems();
403
-            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
427
+//            item.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
428
+            item.setId(410l);
429
+            item.setChildrenTypeId(410l);
404
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
430
             item.setType(type); //检查项目 -> 业务职责、党建党风、安全环保……
405
             item.setPostCheckedContent("党委会、董事会管理"); //检查内容 -> 一级事项、……、五级事项
431
             item.setPostCheckedContent("党委会、董事会管理"); //检查内容 -> 一级事项、……、五级事项
406
             item.setPostCheckedStandard("抓好三重一大管理,确保党委会、董事会合规运行");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
432
             item.setPostCheckedStandard("抓好三重一大管理,确保党委会、董事会合规运行");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
@@ -420,6 +446,10 @@ public class PostListController extends BaseController {
420
                 itemsList.add(0, item);
446
                 itemsList.add(0, item);
421
             }
447
             }
422
         }
448
         }
449
+        for (PostCheckedItems items : itemsList) {
450
+            Long id = items.getId();
451
+            items.setChildrenTypeId(id);
452
+        }
423
 
453
 
424
         //写死的假数据
454
         //写死的假数据
425
         if (false) {
455
         if (false) {

+ 6 - 0
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostPlanController.java

@@ -97,6 +97,12 @@ public class PostPlanController extends BaseController {
97
     @PreAuthorize("@ss.hasPermi('postCheck:postPlan:list')")
97
     @PreAuthorize("@ss.hasPermi('postCheck:postPlan:list')")
98
     @GetMapping("/list")
98
     @GetMapping("/list")
99
     public TableDataInfo list(PostPlan postPlan) {
99
     public TableDataInfo list(PostPlan postPlan) {
100
+//        pageNum: 1
101
+//        pageSize: 10
102
+//        checkGroupName: 工作组
103
+//        checkTeamName: 小组
104
+//        params[beginTime]: 2024-1-01
105
+//        params[endTime]: 2024-1-31
100
 //        startPage();
106
 //        startPage();
101
         startPage("desc", "t1.create_time");
107
         startPage("desc", "t1.create_time");
102
         List<PostPlan> list = postPlanService.selectPostPlanList(postPlan);
108
         List<PostPlan> list = postPlanService.selectPostPlanList(postPlan);

+ 13 - 62
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostPlanJoinCheckedController.java

@@ -34,9 +34,7 @@ public class PostPlanJoinCheckedController extends BaseController {
34
     @Autowired
34
     @Autowired
35
     private IPostPlanJoinCheckedService postPlanJoinCheckedService;
35
     private IPostPlanJoinCheckedService postPlanJoinCheckedService;
36
 
36
 
37
-    /**
38
-     * 查询岗检记录上传列表列表
39
-     */
37
+
40
     @ApiOperation("查询岗检记录上传列表列表")
38
     @ApiOperation("查询岗检记录上传列表列表")
41
     @ApiImplicitParams({
39
     @ApiImplicitParams({
42
 //                    @ApiImplicitParam(name = "id", value = "id", dataType = "Long", dataTypeClass = Long.class),
40
 //                    @ApiImplicitParam(name = "id", value = "id", dataType = "Long", dataTypeClass = Long.class),
@@ -48,66 +46,31 @@ public class PostPlanJoinCheckedController extends BaseController {
48
     @PreAuthorize("@ss.hasPermi('postCheck:postPlanJoinChecked:list')")
46
     @PreAuthorize("@ss.hasPermi('postCheck:postPlanJoinChecked:list')")
49
     @GetMapping("/list")
47
     @GetMapping("/list")
50
     public TableDataInfo list(PostPlanJoinChecked postPlanJoinChecked) {
48
     public TableDataInfo list(PostPlanJoinChecked postPlanJoinChecked) {
49
+//        pageNum: 1
50
+//        pageSize: 10
51
+//        checkGroupName: 工作组
52
+//        checkedPostNames: 岗位
53
+//        checkedDeptName: 部门
54
+//        status: 2
51
         startPage();
55
         startPage();
56
+//        startPage("desc", "t1.create_time");
52
         List<PostPlanJoinChecked> list = postPlanJoinCheckedService.selectPostPlanJoinCheckedList(postPlanJoinChecked);
57
         List<PostPlanJoinChecked> list = postPlanJoinCheckedService.selectPostPlanJoinCheckedList(postPlanJoinChecked);
53
         return getDataTable(list);
58
         return getDataTable(list);
54
     }
59
     }
55
 
60
 
56
-    /**
57
-     * 导出岗检记录上传列表列表
58
-     @ApiOperation("导出岗检记录上传列表列表")
59
-     @PreAuthorize("@ss.hasPermi('postCheck:postPlanJoinChecked:export')")
60
-     @Log(title = "岗检记录上传列表", businessType = BusinessType.EXPORT)
61
-     @PostMapping("/export") public void export(HttpServletResponse response, PostPlanJoinChecked postPlanJoinChecked)
62
-     {
63
-     List<PostPlanJoinChecked> list = postPlanJoinCheckedService.selectPostPlanJoinCheckedList(postPlanJoinChecked);
64
-     ExcelUtil<PostPlanJoinChecked> util = new ExcelUtil<PostPlanJoinChecked>(PostPlanJoinChecked.class);
65
-     util.exportExcel(response, list, "岗检记录上传列表数据");
66
-     }
67
-     */
68
-
69
-    /**
70
-     * 获取岗检记录上传列表详细信息
71
-     @ApiOperation("获取岗检记录上传列表详细信息")
72
-     @PreAuthorize("@ss.hasPermi('postCheck:postPlanJoinChecked:query')")
73
-     @GetMapping(value = "/{id}")
74
-     public AjaxResult getInfo(@PathVariable("id") Long id)
75
-     {
76
-     return success(postPlanJoinCheckedService.selectPostPlanJoinCheckedById(id));
77
-     }
78
-     */
79
-
80
-    /**
81
-     * 新增岗检记录上传列表
82
-     *
83
-     * @ApiOperation("新增岗检记录上传列表")
84
-     * @ApiImplicitParams({
85
-     * @ApiImplicitParam(name = "id", value = "id", dataType = "Long", dataTypeClass = Long.class),
86
-     * @ApiImplicitParam(name = "name", value = "name", dataType = "Long", dataTypeClass = Long.class),
87
-     * })
88
-     * @PreAuthorize("@ss.hasPermi('postCheck:postPlanJoinChecked:add')")
89
-     * @Log(title = "岗检记录上传列表", businessType = BusinessType.INSERT)
90
-     * @PostMapping public AjaxResult add(@RequestBody PostPlanJoinChecked postPlanJoinChecked)
91
-     * {
92
-     * return toAjax(postPlanJoinCheckedService.insertPostPlanJoinChecked(postPlanJoinChecked));
93
-     * }
94
-     */
95
-
96
 
61
 
97
     @ApiOperation("岗检完成确认")
62
     @ApiOperation("岗检完成确认")
98
     @ApiImplicitParams({
63
     @ApiImplicitParams({
99
             @ApiImplicitParam(name = "planInfoId", value = "岗检计划明细ID", dataType = "Long", dataTypeClass = Long.class),
64
             @ApiImplicitParam(name = "planInfoId", value = "岗检计划明细ID", dataType = "Long", dataTypeClass = Long.class),
100
-            @ApiImplicitParam(name = "checkedUserId", value = "检查人ID", dataType = "Long", dataTypeClass = Long.class),
65
+            @ApiImplicitParam(name = "checkedUserName", value = "检查人姓名-与系统用户不关联", dataType = "String", dataTypeClass = String.class),
101
             @ApiImplicitParam(name = "checkedTime", value = "检查时间(yyyy-MM-dd HH:mm:ss)", dataType = "Date", dataTypeClass = Date.class),
66
             @ApiImplicitParam(name = "checkedTime", value = "检查时间(yyyy-MM-dd HH:mm:ss)", dataType = "Date", dataTypeClass = Date.class),
102
             @ApiImplicitParam(name = "checkedImg", value = "检查表照片(图片上传后的相对路径)", dataType = "String", dataTypeClass = String.class),
67
             @ApiImplicitParam(name = "checkedImg", value = "检查表照片(图片上传后的相对路径)", dataType = "String", dataTypeClass = String.class),
103
 
68
 
104
     })
69
     })
105
-//    @PreAuthorize("@ss.hasPermi('postCheck:postPlanJoinChecked:edit')")
106
     @Log(title = "岗检完成确认", businessType = BusinessType.UPDATE)
70
     @Log(title = "岗检完成确认", businessType = BusinessType.UPDATE)
107
-    @PutMapping("checked")
108
-    public AjaxResult checked(Long planInfoId, Long checkedUserId, Date checkedTime, String checkedImg) {
109
-
110
-        return toAjax(postPlanJoinCheckedService.checked(planInfoId, checkedUserId, checkedTime, checkedImg));
71
+    @PutMapping("/checked")
72
+    public AjaxResult checked(Long planInfoId,  String checkedUserName,Date checkedTime, String checkedImg) {
73
+        return toAjax(postPlanJoinCheckedService.checked(planInfoId, checkedUserName, checkedTime, checkedImg));
111
     }
74
     }
112
 
75
 
113
     @ApiOperation("岗检完成确认后重新上传检查表照片")
76
     @ApiOperation("岗检完成确认后重新上传检查表照片")
@@ -116,22 +79,10 @@ public class PostPlanJoinCheckedController extends BaseController {
116
             @ApiImplicitParam(name = "checkedImg", value = "检查表照片(图片上传后的相对路径)", dataType = "String", dataTypeClass = String.class),
79
             @ApiImplicitParam(name = "checkedImg", value = "检查表照片(图片上传后的相对路径)", dataType = "String", dataTypeClass = String.class),
117
 
80
 
118
     })
81
     })
119
-//    @PreAuthorize("@ss.hasPermi('postCheck:postPlanJoinChecked:edit')")
82
+
120
     @Log(title = "岗检完成确认后重新上传检查表照片", businessType = BusinessType.UPDATE)
83
     @Log(title = "岗检完成确认后重新上传检查表照片", businessType = BusinessType.UPDATE)
121
     @PutMapping("imgReUpload")
84
     @PutMapping("imgReUpload")
122
     public AjaxResult imgReUpload(Long planInfoId, String checkedImg) {
85
     public AjaxResult imgReUpload(Long planInfoId, String checkedImg) {
123
         return toAjax(postPlanJoinCheckedService.imgReUpload(planInfoId, checkedImg));
86
         return toAjax(postPlanJoinCheckedService.imgReUpload(planInfoId, checkedImg));
124
     }
87
     }
125
-
126
-    /**
127
-     * 删除岗检记录上传列表
128
-     @ApiOperation("删除岗检记录上传列表")
129
-     @ApiImplicitParam(name = "ids", value = "Long类型的主键数组", dataType = "Long[]", dataTypeClass = "Long[].class")
130
-     @PreAuthorize("@ss.hasPermi('postCheck:postPlanJoinChecked:remove')")
131
-     @Log(title = "岗检记录上传列表", businessType = BusinessType.DELETE)
132
-     @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids)
133
-     {
134
-     return toAjax(postPlanJoinCheckedService.deletePostPlanJoinCheckedByIds(ids));
135
-     }
136
-     */
137
 }
88
 }

+ 1 - 0
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostPlanJoinProblemController.java

@@ -58,6 +58,7 @@ public class PostPlanJoinProblemController extends BaseController {
58
     @GetMapping("/list")
58
     @GetMapping("/list")
59
     public TableDataInfo list(PostPlanJoinProblem postPlanJoinProblem) {
59
     public TableDataInfo list(PostPlanJoinProblem postPlanJoinProblem) {
60
         startPage();
60
         startPage();
61
+//        startPage("desc", "t1.create_time");
61
         List<PostPlanJoinProblem> list = postPlanJoinProblemService.selectPostPlanJoinProblemList(postPlanJoinProblem);
62
         List<PostPlanJoinProblem> list = postPlanJoinProblemService.selectPostPlanJoinProblemList(postPlanJoinProblem);
62
         return getDataTable(list);
63
         return getDataTable(list);
63
     }
64
     }

+ 5 - 0
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/domain/PostChecked.java

@@ -32,6 +32,11 @@ public class PostChecked extends BaseEntity
32
 
32
 
33
     private Long id;
33
     private Long id;
34
 
34
 
35
+    @ApiModelProperty("岗检编号")
36
+    @TableField(value = "post_code")
37
+    @Excel(name = "岗检编号")
38
+    private String postCode;
39
+
35
     @ApiModelProperty("检查工作组ID")
40
     @ApiModelProperty("检查工作组ID")
36
     @TableField(value = "check_workgroup_id")
41
     @TableField(value = "check_workgroup_id")
37
     @Excel(name = "检查工作组ID")
42
     @Excel(name = "检查工作组ID")

+ 6 - 0
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/domain/PostCheckedItems.java

@@ -37,6 +37,12 @@ public class PostCheckedItems extends BaseEntity
37
     @Excel(name = "检查项目:参考post_list_info表;类型", readConverterExp = "1=-业务职责;2-党建及党风廉政建设职责;3-安全环保职责;4-合规保密职;5-任职资格与能力素质要求")
37
     @Excel(name = "检查项目:参考post_list_info表;类型", readConverterExp = "1=-业务职责;2-党建及党风廉政建设职责;3-安全环保职责;4-合规保密职;5-任职资格与能力素质要求")
38
     private Integer type;
38
     private Integer type;
39
 
39
 
40
+
41
+    //实际上是岗位责任制清单明细的id,但是type=6和5时是接口(/contentListByType)写死的初始的部分,接口中也是把id写死了。
42
+    @ApiModelProperty("检查内容ID")
43
+    @TableField(value = "children_type_id")
44
+    private Long childrenTypeId;
45
+
40
     @ApiModelProperty("创建者用户ID")
46
     @ApiModelProperty("创建者用户ID")
41
     @TableField(value = "create_user_id")
47
     @TableField(value = "create_user_id")
42
     @Excel(name = "创建者用户ID")
48
     @Excel(name = "创建者用户ID")

+ 7 - 5
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/domain/PostCheckedProblem.java

@@ -57,11 +57,6 @@ public class PostCheckedProblem extends BaseEntity {
57
     @Excel(name = "检查小组ID")
57
     @Excel(name = "检查小组ID")
58
     private Long checkGroupId;
58
     private Long checkGroupId;
59
 
59
 
60
-//    @ApiModelProperty("检查人员ID")
61
-//    @TableField(value = "check_user_id")
62
-//    @Excel(name = "检查人员ID")
63
-//    private Long checkUserId;
64
-
65
     @ApiModelProperty("检查人员姓名")
60
     @ApiModelProperty("检查人员姓名")
66
     @TableField(value = "check_user_name")
61
     @TableField(value = "check_user_name")
67
     @Excel(name = "检查人员姓名")
62
     @Excel(name = "检查人员姓名")
@@ -200,6 +195,13 @@ public class PostCheckedProblem extends BaseEntity {
200
 
195
 
201
 
196
 
202
     //    ==================显示字段==============
197
     //    ==================显示字段==============
198
+    @ApiModelProperty("岗检工作组")
199
+    @TableField(exist = false)
200
+    private String checkWorkgroupName;
201
+    @ApiModelProperty("岗检小组")
202
+    @TableField(exist = false)
203
+    private String checkGroupName;
204
+
203
     @ApiModelProperty("整改责任部门名称")
205
     @ApiModelProperty("整改责任部门名称")
204
     @TableField(exist = false)
206
     @TableField(exist = false)
205
     private String checkedDeptName;
207
     private String checkedDeptName;

+ 4 - 4
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/domain/PostPlanInfo.java

@@ -75,10 +75,10 @@ public class PostPlanInfo extends BaseEntity
75
     @Excel(name = "上传:检查后的检查表照片或PDF,磁盘相对路径")
75
     @Excel(name = "上传:检查后的检查表照片或PDF,磁盘相对路径")
76
     private String checkedImg;
76
     private String checkedImg;
77
 
77
 
78
-    @ApiModelProperty("上传:检查人ID")
79
-    @TableField(value = "checked_user_id")
80
-    @Excel(name = "上传:检查人ID")
81
-    private Long checkedUserId;
78
+    @ApiModelProperty("上传:检查人姓名-与系统用户不关联")
79
+    @TableField(value = "checked_user_name")
80
+    @Excel(name = "上传:检查人姓名-与系统用户不关联")
81
+    private String checkedUserName;
82
 
82
 
83
     @ApiModelProperty("上传:检查时间")
83
     @ApiModelProperty("上传:检查时间")
84
     @TableField(value = "checked_time")
84
     @TableField(value = "checked_time")

+ 3 - 0
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/domain/join/PostPlanJoinChecked.java

@@ -37,6 +37,9 @@ public class PostPlanJoinChecked implements Serializable {
37
     @ApiModelProperty("检查小组名称")
37
     @ApiModelProperty("检查小组名称")
38
     private String checkTeamName;
38
     private String checkTeamName;
39
 
39
 
40
+    @ApiModelProperty("上传-岗检人")
41
+    private String checkedUserName;
42
+
40
     @ApiModelProperty("检查人员中文名称逗号拼接")
43
     @ApiModelProperty("检查人员中文名称逗号拼接")
41
     private String checkedUserNames;
44
     private String checkedUserNames;
42
 
45
 

+ 2 - 2
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/IPostCheckedReportService.java

@@ -71,10 +71,10 @@ public interface IPostCheckedReportService extends IService<PostCheckedReport>
71
      * 岗检报告审核
71
      * 岗检报告审核
72
      * @param id 主键
72
      * @param id 主键
73
      * @param status 状态:3-通过;4-驳回;
73
      * @param status 状态:3-通过;4-驳回;
74
-     * @param statusReason 未通过理由
74
+     * @param reason 未通过理由
75
      * @return
75
      * @return
76
      */
76
      */
77
-    int statusApprove(Long id, Integer status, String statusReason);
77
+    int statusApprove(Long id, Integer status, String reason);
78
 
78
 
79
     List<CheckStatisticsView>  checkStatistics();
79
     List<CheckStatisticsView>  checkStatistics();
80
 
80
 

+ 2 - 2
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/IPostPlanJoinCheckedService.java

@@ -33,12 +33,12 @@ public interface IPostPlanJoinCheckedService {
33
      * 岗检完成确认
33
      * 岗检完成确认
34
      *
34
      *
35
      * @param planInfoId 岗检计划明细ID
35
      * @param planInfoId 岗检计划明细ID
36
-     * @param checkedUserId 检查人ID
36
+     * @param checkedUserName 检查人ID
37
      * @param checkedTime 检查时间
37
      * @param checkedTime 检查时间
38
      * @param checkedImg 检查表照片
38
      * @param checkedImg 检查表照片
39
      * @return 结果
39
      * @return 结果
40
      */
40
      */
41
-    public int checked(Long planInfoId, Long checkedUserId, Date checkedTime, String checkedImg);
41
+    public int checked(Long planInfoId, String checkedUserName,Date checkedTime, String checkedImg);
42
 
42
 
43
     /**
43
     /**
44
      * 岗检完成确认后重新上传检查表照片
44
      * 岗检完成确认后重新上传检查表照片

+ 4 - 1
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostAssessmentRatingServiceImpl.java

@@ -31,6 +31,7 @@ import com.ruoyi.postCheck.mapper.PostAssessmentRatingMapper;
31
 import com.ruoyi.postCheck.domain.PostAssessmentRating;
31
 import com.ruoyi.postCheck.domain.PostAssessmentRating;
32
 import com.ruoyi.postCheck.service.IPostAssessmentRatingService;
32
 import com.ruoyi.postCheck.service.IPostAssessmentRatingService;
33
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
33
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
34
+import org.springframework.util.CollectionUtils;
34
 
35
 
35
 /**
36
 /**
36
  * 考核评比Service业务层处理
37
  * 考核评比Service业务层处理
@@ -110,7 +111,9 @@ public class PostAssessmentRatingServiceImpl extends ServiceImpl<PostAssessmentR
110
                     }
111
                     }
111
                 }
112
                 }
112
                 BigDecimal divide = new BigDecimal("0");
113
                 BigDecimal divide = new BigDecimal("0");
113
-                if (postTotal != null) {
114
+                //collect.size() = 0 时  / by zero 异常
115
+                if (postTotal != null && !CollectionUtils.isEmpty(collect)) {
116
+//                if (postTotal != null) {
114
                     divide = new BigDecimal(postCheckedProblems.size()).divide(postTotal.multiply(new BigDecimal(collect.size())), 4, RoundingMode.HALF_UP);
117
                     divide = new BigDecimal(postCheckedProblems.size()).divide(postTotal.multiply(new BigDecimal(collect.size())), 4, RoundingMode.HALF_UP);
115
                 }
118
                 }
116
                 // 计算系数 1-问题总数/需要查的问题数
119
                 // 计算系数 1-问题总数/需要查的问题数

+ 17 - 17
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostCheckedProblemServiceImpl.java

@@ -871,10 +871,10 @@ public class PostCheckedProblemServiceImpl extends ServiceImpl<PostCheckedProble
871
                 }
871
                 }
872
             }
872
             }
873
         Map<Integer, BigDecimal> map = new HashMap<>();
873
         Map<Integer, BigDecimal> map = new HashMap<>();
874
-        map.put(1, new BigDecimal(overproblemComplete).divide(new BigDecimal(problemComplete), 4, RoundingMode.HALF_UP));
875
-        map.put(2, new BigDecimal(overproblemSuitable).divide(new BigDecimal(problemSuitable), 4, RoundingMode.HALF_UP));
876
-        map.put(3, new BigDecimal(overproblemEffective).divide(new BigDecimal(problemEffective), 4, RoundingMode.HALF_UP));
877
-        map.put(4, new BigDecimal(overtotal).divide(new BigDecimal(total), 4, RoundingMode.HALF_UP));
874
+        map.put(1, problemComplete == 0 ? new BigDecimal(0) : new BigDecimal(overproblemComplete).divide(new BigDecimal(problemComplete), 4, RoundingMode.HALF_UP));
875
+        map.put(2, problemSuitable == 0 ? new BigDecimal(0) : new BigDecimal(overproblemSuitable).divide(new BigDecimal(problemSuitable), 4, RoundingMode.HALF_UP));
876
+        map.put(3, problemEffective == 0 ? new BigDecimal(0) : new BigDecimal(overproblemEffective).divide(new BigDecimal(problemEffective), 4, RoundingMode.HALF_UP));
877
+        map.put(4, total == 0 ? new BigDecimal(0) : new BigDecimal(overtotal).divide(new BigDecimal(total), 4, RoundingMode.HALF_UP));
878
         return map;
878
         return map;
879
 
879
 
880
     }
880
     }
@@ -1350,8 +1350,8 @@ public class PostCheckedProblemServiceImpl extends ServiceImpl<PostCheckedProble
1350
         // 查询职能问题数量
1350
         // 查询职能问题数量
1351
         LambdaQueryWrapper<PostCheckedProblem> postCheckedProblemLambdaQueryWrapper = Wrappers.<PostCheckedProblem>lambdaQuery();
1351
         LambdaQueryWrapper<PostCheckedProblem> postCheckedProblemLambdaQueryWrapper = Wrappers.<PostCheckedProblem>lambdaQuery();
1352
         postCheckedProblemLambdaQueryWrapper.in(PostCheckedProblem::getCheckedDeptId, deptIds);
1352
         postCheckedProblemLambdaQueryWrapper.in(PostCheckedProblem::getCheckedDeptId, deptIds);
1353
-        if (type.getParams()!=null&&type.getParams().get("beginTime")!=null&&type.getParams().get("beginTime")!=null)
1354
-        postCheckedProblemLambdaQueryWrapper.between(PostCheckedProblem::getCreateTime,type.getParams().get("beginTime"),type.getParams().get("endTime"));
1353
+        if (type.getParams() != null && type.getParams().get("beginTime") != null && type.getParams().get("beginTime") != null)
1354
+            postCheckedProblemLambdaQueryWrapper.between(PostCheckedProblem::getCreateTime, type.getParams().get("beginTime"), type.getParams().get("endTime"));
1355
         List<PostCheckedProblem> postCheckedProblems = postCheckedProblemMapper.selectList(postCheckedProblemLambdaQueryWrapper);
1355
         List<PostCheckedProblem> postCheckedProblems = postCheckedProblemMapper.selectList(postCheckedProblemLambdaQueryWrapper);
1356
 
1356
 
1357
         List<CheckedProblemDeptDetaailView> list = new ArrayList<>();
1357
         List<CheckedProblemDeptDetaailView> list = new ArrayList<>();
@@ -1367,7 +1367,7 @@ public class PostCheckedProblemServiceImpl extends ServiceImpl<PostCheckedProble
1367
                 CheckedProblemDeptDetaailView data1 = new CheckedProblemDeptDetaailView();
1367
                 CheckedProblemDeptDetaailView data1 = new CheckedProblemDeptDetaailView();
1368
                 data1.setDeptId(key); //部门ID
1368
                 data1.setDeptId(key); //部门ID
1369
                 data1.setDeptName(postAssessmentRatingMapper.getSysDeptName(key));// 部门名称
1369
                 data1.setDeptName(postAssessmentRatingMapper.getSysDeptName(key));// 部门名称
1370
-                if (type.getDeptName()!=null && !data1.getDeptName().contains(type.getDeptName())){
1370
+                if (type.getDeptName() != null && !data1.getDeptName().contains(type.getDeptName())) {
1371
                     continue;
1371
                     continue;
1372
                 }
1372
                 }
1373
                 int problemTotal = 0;
1373
                 int problemTotal = 0;
@@ -1379,20 +1379,20 @@ public class PostCheckedProblemServiceImpl extends ServiceImpl<PostCheckedProble
1379
                 Integer rate = 0;
1379
                 Integer rate = 0;
1380
                 for (PostCheckedProblem postCheckedProblem : value) {
1380
                 for (PostCheckedProblem postCheckedProblem : value) {
1381
                     problemTotal++;
1381
                     problemTotal++;
1382
-                    if (postCheckedProblem.getProblemLevel().equals("1")){
1382
+                    if (postCheckedProblem.getProblemLevel().equals("1")) {
1383
                         problemLeveOne++;
1383
                         problemLeveOne++;
1384
                     }
1384
                     }
1385
-                    if (postCheckedProblem.getProblemLevel().equals("2")){
1385
+                    if (postCheckedProblem.getProblemLevel().equals("2")) {
1386
                         problemLeveTwo++;
1386
                         problemLeveTwo++;
1387
                     }
1387
                     }
1388
-                    if (postCheckedProblem.getIsRectificationCompleted()!=null && postCheckedProblem.getIsRectificationCompleted()==1){
1388
+                    if (postCheckedProblem.getIsRectificationCompleted() != null && postCheckedProblem.getIsRectificationCompleted() == 1) {
1389
                         rate++;
1389
                         rate++;
1390
                     }
1390
                     }
1391
                 }
1391
                 }
1392
-                if (rate == 0 || problemTotal == 0){
1392
+                if (rate == 0 || problemTotal == 0) {
1393
                     data1.setRate(new BigDecimal("0"));
1393
                     data1.setRate(new BigDecimal("0"));
1394
-                }else{
1395
-                    data1.setRate(new BigDecimal(rate).divide(new BigDecimal(problemTotal),4,RoundingMode.HALF_UP));
1394
+                } else {
1395
+                    data1.setRate(new BigDecimal(rate).divide(new BigDecimal(problemTotal), 4, RoundingMode.HALF_UP));
1396
                 }
1396
                 }
1397
                 data1.setStatisticsTime(new Date());
1397
                 data1.setStatisticsTime(new Date());
1398
                 data1.setProblemTotal(problemTotal); //问题数量
1398
                 data1.setProblemTotal(problemTotal); //问题数量
@@ -1413,11 +1413,11 @@ public class PostCheckedProblemServiceImpl extends ServiceImpl<PostCheckedProble
1413
                     child1.setDutyType(duty);
1413
                     child1.setDutyType(duty);
1414
                     List<PostCheckedProblem> postCheckedProblemList = integerListEntry.getValue();
1414
                     List<PostCheckedProblem> postCheckedProblemList = integerListEntry.getValue();
1415
 //                    @ApiModelProperty("已完成完整性数量")
1415
 //                    @ApiModelProperty("已完成完整性数量")
1416
-                     int problemCompleteChecked = 0;
1416
+                    int problemCompleteChecked = 0;
1417
 //                    @ApiModelProperty("已完成适宜性数量")
1417
 //                    @ApiModelProperty("已完成适宜性数量")
1418
-                     int problemSuitableChecked = 0;
1418
+                    int problemSuitableChecked = 0;
1419
 //                    @ApiModelProperty("已完成有效性数量")
1419
 //                    @ApiModelProperty("已完成有效性数量")
1420
-                     int problemEffectiveChecked = 0;
1420
+                    int problemEffectiveChecked = 0;
1421
                     for (PostCheckedProblem postCheckedProblem : postCheckedProblemList) {
1421
                     for (PostCheckedProblem postCheckedProblem : postCheckedProblemList) {
1422
                         if (postCheckedProblem.getProblemAttribute() == 1) {
1422
                         if (postCheckedProblem.getProblemAttribute() == 1) {
1423
                             problemComplete++;
1423
                             problemComplete++;
@@ -1428,7 +1428,7 @@ public class PostCheckedProblemServiceImpl extends ServiceImpl<PostCheckedProble
1428
                         if (postCheckedProblem.getProblemAttribute() == 3) {
1428
                         if (postCheckedProblem.getProblemAttribute() == 3) {
1429
                             problemSuitable++;
1429
                             problemSuitable++;
1430
                         }
1430
                         }
1431
-                        if (postCheckedProblem.getIsRectificationCompleted()!=null&&postCheckedProblem.getIsRectificationCompleted()== 1){
1431
+                        if (postCheckedProblem.getIsRectificationCompleted() != null && postCheckedProblem.getIsRectificationCompleted() == 1) {
1432
                             if (postCheckedProblem.getProblemAttribute() == 1) {
1432
                             if (postCheckedProblem.getProblemAttribute() == 1) {
1433
                                 problemCompleteChecked++;
1433
                                 problemCompleteChecked++;
1434
                             }
1434
                             }

+ 9 - 7
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostCheckedReportServiceImpl.java

@@ -140,23 +140,25 @@ public class PostCheckedReportServiceImpl extends ServiceImpl<PostCheckedReportM
140
      *
140
      *
141
      * @param id           主键
141
      * @param id           主键
142
      * @param status       状态:3-通过;4-驳回;
142
      * @param status       状态:3-通过;4-驳回;
143
-     * @param statusReason 未通过理由
143
+     * @param reason 未通过理由
144
      * @return
144
      * @return
145
      */
145
      */
146
     @Override
146
     @Override
147
-    public int statusApprove(Long id, Integer status, String statusReason) {
147
+    public int statusApprove(Long id, Integer status, String reason) {
148
         if (id == null || status == null) {
148
         if (id == null || status == null) {
149
-            return 0;
149
+//            return 0;
150
+            throw new BaseException("参数不全,请检查!");
150
         }
151
         }
151
 
152
 
152
         //状态错误
153
         //状态错误
153
         if (status != PostCheckedReportEnum.STATUS_PASS.getValue() && status != PostCheckedReportEnum.STATUS_BACK.getValue()) {
154
         if (status != PostCheckedReportEnum.STATUS_PASS.getValue() && status != PostCheckedReportEnum.STATUS_BACK.getValue()) {
154
-            return 0;
155
+//            return 0;
156
+            throw new BaseException("状态错误,请检查!");
155
         }
157
         }
156
 
158
 
157
         //驳回时必须填写原因
159
         //驳回时必须填写原因
158
-        if (status == PostCheckedReportEnum.STATUS_BACK.getValue() && StringUtils.isBlank(statusReason)) {
159
-            return 0;
160
+        if (status == PostCheckedReportEnum.STATUS_BACK.getValue() && StringUtils.isBlank(reason)) {
161
+            throw new BaseException("请填写未通过理由!");
160
         }
162
         }
161
         LoginUser loginUser = SecurityUtils.getLoginUser();
163
         LoginUser loginUser = SecurityUtils.getLoginUser();
162
         SysUser sysUser = loginUser.getUser();
164
         SysUser sysUser = loginUser.getUser();
@@ -166,7 +168,7 @@ public class PostCheckedReportServiceImpl extends ServiceImpl<PostCheckedReportM
166
         data.setStatusByUserId(sysUser.getUserId());
168
         data.setStatusByUserId(sysUser.getUserId());
167
         data.setStatusByUserName(sysUser.getUserName());
169
         data.setStatusByUserName(sysUser.getUserName());
168
         data.setStatusApproveTime(new Date());
170
         data.setStatusApproveTime(new Date());
169
-        data.setStatusReason(statusReason);
171
+        data.setStatusReason(reason);
170
         return postCheckedReportMapper.updatePostCheckedReport(data);
172
         return postCheckedReportMapper.updatePostCheckedReport(data);
171
     }
173
     }
172
 
174
 

+ 6 - 0
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostCheckedServiceImpl.java

@@ -98,6 +98,7 @@ public class PostCheckedServiceImpl extends ServiceImpl<PostCheckedMapper, PostC
98
         //TODO 自增主键修改为-MyBatis-Plus雪花算法(截取5位解决VUE精度丢失BUG)-系统登录日志
98
         //TODO 自增主键修改为-MyBatis-Plus雪花算法(截取5位解决VUE精度丢失BUG)-系统登录日志
99
 //        if (postChecked.getId() == null)
99
 //        if (postChecked.getId() == null)
100
         postChecked.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
100
         postChecked.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
101
+        postChecked.setPostCode("GJ-" + DateUtils.dateTimeNow());
101
         // postChecked.setCreateTime(DateUtils.getNowDate());
102
         // postChecked.setCreateTime(DateUtils.getNowDate());
102
         postChecked.setCreateDefault();
103
         postChecked.setCreateDefault();
103
 //        postChecked.setStatus(PostCheckedEnum.STATUS_WAIT.getValue()); // 去创建自己的枚举类
104
 //        postChecked.setStatus(PostCheckedEnum.STATUS_WAIT.getValue()); // 去创建自己的枚举类
@@ -108,6 +109,8 @@ public class PostCheckedServiceImpl extends ServiceImpl<PostCheckedMapper, PostC
108
                 child.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
109
                 child.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
109
                 child.setPostCheckedId(postChecked.getId());
110
                 child.setPostCheckedId(postChecked.getId());
110
                 child.setCreateDefault();
111
                 child.setCreateDefault();
112
+                Long childrenTypeId = child.getChildrenTypeId();
113
+                log.error("【岗检表】-新增:新增明细时参数缺少:childrenTypeId : {}", childrenTypeId);
111
             }
114
             }
112
             postCheckedItemsService.saveBatch(children);
115
             postCheckedItemsService.saveBatch(children);
113
         }
116
         }
@@ -121,6 +124,7 @@ public class PostCheckedServiceImpl extends ServiceImpl<PostCheckedMapper, PostC
121
      * @return 结果
124
      * @return 结果
122
      */
125
      */
123
     @Override
126
     @Override
127
+    @Transactional(rollbackFor = Exception.class)
124
     public int updatePostChecked(PostChecked postChecked) {
128
     public int updatePostChecked(PostChecked postChecked) {
125
         Long id = postChecked.getId();
129
         Long id = postChecked.getId();
126
 
130
 
@@ -149,6 +153,8 @@ public class PostCheckedServiceImpl extends ServiceImpl<PostCheckedMapper, PostC
149
                 child.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
153
                 child.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
150
                 child.setPostCheckedId(postChecked.getId());
154
                 child.setPostCheckedId(postChecked.getId());
151
                 child.setCreateDefault();
155
                 child.setCreateDefault();
156
+                Long childrenTypeId = child.getChildrenTypeId();
157
+                log.error("【岗检表】-新增:新增明细时参数缺少:childrenTypeId : {}", childrenTypeId);
152
             }
158
             }
153
             postCheckedItemsService.saveBatch(children);
159
             postCheckedItemsService.saveBatch(children);
154
         }
160
         }

+ 62 - 19
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostListServiceImpl.java

@@ -14,6 +14,7 @@ import com.ruoyi.common.exception.base.BaseException;
14
 import com.ruoyi.common.utils.DateUtils;
14
 import com.ruoyi.common.utils.DateUtils;
15
 import com.ruoyi.common.utils.SecurityUtils;
15
 import com.ruoyi.common.utils.SecurityUtils;
16
 import com.ruoyi.postCheck.domain.PostCheckedItems;
16
 import com.ruoyi.postCheck.domain.PostCheckedItems;
17
+import com.ruoyi.postCheck.domain.PostCheckedProblem;
17
 import com.ruoyi.postCheck.mapper.PostListInfoMapper;
18
 import com.ruoyi.postCheck.mapper.PostListInfoMapper;
18
 import com.ruoyi.postCheck.service.IPostListInfoService;
19
 import com.ruoyi.postCheck.service.IPostListInfoService;
19
 import com.ruoyi.system.service.ISysPostService;
20
 import com.ruoyi.system.service.ISysPostService;
@@ -231,6 +232,7 @@ public class PostListServiceImpl extends ServiceImpl<PostListMapper, PostList> i
231
                 //自动审核:任职资格与能力素质要求
232
                 //自动审核:任职资格与能力素质要求
232
                 if (type == PostListEnum.TYPE_FIVE.getValue()) {
233
                 if (type == PostListEnum.TYPE_FIVE.getValue()) {
233
                     postListInfo.setStatus(PostListEnum.STATUS_PASS.getValue());//状态,可能需要重新设计,五大部门按类型区分状态
234
                     postListInfo.setStatus(PostListEnum.STATUS_PASS.getValue());//状态,可能需要重新设计,五大部门按类型区分状态
235
+                    postListInfo.setStatusTime(new Date());
234
                     postListInfo.setStatusByUserId(SecurityUtils.getUserId());
236
                     postListInfo.setStatusByUserId(SecurityUtils.getUserId());
235
                     postListInfo.setStatusByUserName(SecurityUtils.getLoginUser().getUser().getNickName());
237
                     postListInfo.setStatusByUserName(SecurityUtils.getLoginUser().getUser().getNickName());
236
                     postListInfo.setReason("Auto");
238
                     postListInfo.setReason("Auto");
@@ -238,6 +240,10 @@ public class PostListServiceImpl extends ServiceImpl<PostListMapper, PostList> i
238
                 //其他都是待审核
240
                 //其他都是待审核
239
                 else {
241
                 else {
240
                     postListInfo.setStatus(PostListEnum.STATUS_WAIT.getValue());//状态,可能需要重新设计,五大部门按类型区分状态
242
                     postListInfo.setStatus(PostListEnum.STATUS_WAIT.getValue());//状态,可能需要重新设计,五大部门按类型区分状态
243
+                    postListInfo.setStatusTime(null);
244
+                    postListInfo.setStatusByUserId(null);
245
+                    postListInfo.setStatusByUserName(null);
246
+                    postListInfo.setReason(null);
241
                 }
247
                 }
242
 
248
 
243
                 list.add(postListInfo);
249
                 list.add(postListInfo);
@@ -330,27 +336,61 @@ public class PostListServiceImpl extends ServiceImpl<PostListMapper, PostList> i
330
         }
336
         }
331
 
337
 
332
 
338
 
333
-        //2、判断人力资源最后审核
339
+        //2、判断人力资源最后审核 & 全部是驳回时设置为驳回状态,都则审核中
334
         if (type == PostListEnum.TYPE_ONE.getValue()) {
340
         if (type == PostListEnum.TYPE_ONE.getValue()) {
335
-            //查询其他类型待审核的记录
336
-            LambdaQueryWrapper<PostListInfo> queryWrapper = new LambdaQueryWrapper<>();
337
-            queryWrapper.eq(PostListInfo::getPostListId, id);
338
-            queryWrapper.ne(PostListInfo::getType, PostListEnum.TYPE_ONE.getValue());//类型(1-业务职责;2-党建及党风廉政建设职责;3-安全环保职责;4-合规保密职;5-任职资格与能力素质要求)
339
-            queryWrapper.ne(PostListInfo::getStatus, PostListEnum.STATUS_WAIT.getValue());//分区域审核-状态:1-待审核;3-通过;4-驳回;
340
-
341
-            List<PostListInfo> postListInfoList = postListInfoMapper.selectList(queryWrapper);
342
-            if (!CollectionUtils.isEmpty(postListInfoList)) {
343
-                Set<Integer> typeSet = postListInfoList.stream().map(t -> t.getType()).collect(Collectors.toSet());
344
-                String typeView = "";
345
-                for (Integer typeIng : typeSet) {
346
-                    typeView += PostListEnum.getTypeView(typeIng) + ";";
341
+            boolean allStatusBack = false;
342
+            //通过
343
+            if (status == PostListEnum.STATUS_PASS.getValue()) {
344
+                //查询其他类型 待审核 & 驳回 的记录
345
+                LambdaQueryWrapper<PostListInfo> queryWrapper = new LambdaQueryWrapper<>();
346
+                queryWrapper.eq(PostListInfo::getPostListId, id);
347
+                queryWrapper.in(PostListInfo::getType, PostListEnum.TYPE_TWO.getValue(), PostListEnum.TYPE_THREE.getValue(), PostListEnum.TYPE_FOUR.getValue());//类型(1-业务职责;2-党建及党风廉政建设职责;3-安全环保职责;4-合规保密职;5-任职资格与能力素质要求)
348
+                queryWrapper.in(PostListInfo::getStatus, PostListEnum.STATUS_WAIT.getValue(), PostListEnum.STATUS_BACK.getValue());//分区域审核-状态:1-待审核;3-通过;4-驳回;
349
+                queryWrapper.groupBy(PostListInfo::getType);
350
+                List<PostListInfo> postListInfoList = postListInfoMapper.selectList(queryWrapper);
351
+                if (!CollectionUtils.isEmpty(postListInfoList)) {
352
+                    Set<Integer> typeSet = postListInfoList.stream().map(t -> t.getType()).collect(Collectors.toSet());
353
+                    String typeView = "";
354
+                    for (Integer typeIng : typeSet) {
355
+                        typeView += PostListEnum.getTypeView(typeIng) + ";";
356
+                    }
357
+                    throw new BaseException("以下部门还未审核,请检查!" + typeView);
358
+                }
359
+            }
360
+            //驳回
361
+            else {
362
+//                boolean allStatusBack = true;
363
+                //查询其他类型 待审核 & 通过 的记录
364
+                LambdaQueryWrapper<PostListInfo> queryWrapperV2 = new LambdaQueryWrapper<>();
365
+                queryWrapperV2.eq(PostListInfo::getPostListId, id);
366
+                queryWrapperV2.in(PostListInfo::getType, PostListEnum.TYPE_TWO.getValue(), PostListEnum.TYPE_THREE.getValue(), PostListEnum.TYPE_FOUR.getValue());//类型(1-业务职责;2-党建及党风廉政建设职责;3-安全环保职责;4-合规保密职;5-任职资格与能力素质要求)
367
+                queryWrapperV2.in(PostListInfo::getStatus, PostListEnum.STATUS_WAIT.getValue(), PostListEnum.STATUS_PASS.getValue());//分区域审核-状态:1-待审核;3-通过;4-驳回;
368
+                queryWrapperV2.groupBy(PostListInfo::getType);
369
+                List<PostListInfo> postListInfoListV2 = postListInfoMapper.selectList(queryWrapperV2);
370
+                //全部驳回
371
+                if (CollectionUtils.isEmpty(postListInfoListV2)) {
372
+                    allStatusBack = true;
373
+                }
374
+                //部分驳回
375
+                else {
376
+                    allStatusBack = false;
347
                 }
377
                 }
348
-                throw new BaseException("以下部门还未审核,请检查!" + typeView);
349
             }
378
             }
350
 
379
 
380
+            //人力资源审核通过 其他部门都审核通过时 将主单据修改为 审核通过
381
+            //人力资源审核驳回 其他部门部分审核通过、部分驳回时 将主单据修改为 审核中
382
+            //人力资源审核驳回 其他部门都驳回时 将主单据修改为 驳回
351
             LambdaUpdateWrapper<PostList> lambdaUpdateWrapper = new LambdaUpdateWrapper<>();
383
             LambdaUpdateWrapper<PostList> lambdaUpdateWrapper = new LambdaUpdateWrapper<>();
352
             lambdaUpdateWrapper.eq(PostList::getId, id);
384
             lambdaUpdateWrapper.eq(PostList::getId, id);
353
-            lambdaUpdateWrapper.set(PostList::getStatus, PostListEnum.STATUS_PASS.getValue());
385
+            if (status == PostListEnum.STATUS_PASS.getValue()) {
386
+                lambdaUpdateWrapper.set(PostList::getStatus, PostListEnum.STATUS_PASS.getValue());
387
+            } else {
388
+                if (allStatusBack) {
389
+                    lambdaUpdateWrapper.set(PostList::getStatus, PostListEnum.STATUS_BACK.getValue());
390
+                } else {
391
+                    lambdaUpdateWrapper.set(PostList::getStatus, PostListEnum.STATUS_WAIT.getValue());
392
+                }
393
+            }
354
             postListMapper.update(null, lambdaUpdateWrapper);
394
             postListMapper.update(null, lambdaUpdateWrapper);
355
         }
395
         }
356
         //非人力资源审核,将外层状态设置为审核中
396
         //非人力资源审核,将外层状态设置为审核中
@@ -372,16 +412,19 @@ public class PostListServiceImpl extends ServiceImpl<PostListMapper, PostList> i
372
         infoLambdaUpdateWrapper.set(PostListInfo::getStatus, status);
412
         infoLambdaUpdateWrapper.set(PostListInfo::getStatus, status);
373
         infoLambdaUpdateWrapper.set(PostListInfo::getStatusTime, new Date());
413
         infoLambdaUpdateWrapper.set(PostListInfo::getStatusTime, new Date());
374
 
414
 
415
+        infoLambdaUpdateWrapper.set(PostListInfo::getStatusByUserId, SecurityUtils.getUserId());
416
+        infoLambdaUpdateWrapper.set(PostListInfo::getStatusByUserName, SecurityUtils.getLoginUser().getUser().getNickName());
417
+
375
         //通过-参数
418
         //通过-参数
376
         if (status == PostListEnum.STATUS_PASS.getValue()) {
419
         if (status == PostListEnum.STATUS_PASS.getValue()) {
377
-            infoLambdaUpdateWrapper.set(PostListInfo::getStatusByUserId, SecurityUtils.getUserId());
378
-            infoLambdaUpdateWrapper.set(PostListInfo::getStatusByUserName, SecurityUtils.getLoginUser().getUser().getNickName());
420
+//            infoLambdaUpdateWrapper.set(PostListInfo::getStatusByUserId, SecurityUtils.getUserId());
421
+//            infoLambdaUpdateWrapper.set(PostListInfo::getStatusByUserName, SecurityUtils.getLoginUser().getUser().getNickName());
379
             infoLambdaUpdateWrapper.set(PostListInfo::getReason, null);
422
             infoLambdaUpdateWrapper.set(PostListInfo::getReason, null);
380
         }
423
         }
381
         //驳回-参数
424
         //驳回-参数
382
         else if (status == PostListEnum.STATUS_BACK.getValue()) {
425
         else if (status == PostListEnum.STATUS_BACK.getValue()) {
383
-            infoLambdaUpdateWrapper.set(PostListInfo::getStatusByUserId, null);
384
-            infoLambdaUpdateWrapper.set(PostListInfo::getStatusByUserName, null);
426
+//            infoLambdaUpdateWrapper.set(PostListInfo::getStatusByUserId, null);
427
+//            infoLambdaUpdateWrapper.set(PostListInfo::getStatusByUserName, null);
385
             infoLambdaUpdateWrapper.set(PostListInfo::getReason, reason);
428
             infoLambdaUpdateWrapper.set(PostListInfo::getReason, reason);
386
         }
429
         }
387
         int updateCount = postListInfoMapper.update(null, infoLambdaUpdateWrapper);
430
         int updateCount = postListInfoMapper.update(null, infoLambdaUpdateWrapper);

+ 1 - 9
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostPlanInfoServiceImpl.java

@@ -56,21 +56,13 @@ public class PostPlanInfoServiceImpl extends ServiceImpl<PostPlanInfoMapper, Pos
56
     @Override
56
     @Override
57
     @Transactional(rollbackFor = Exception.class)
57
     @Transactional(rollbackFor = Exception.class)
58
     public int insertPostPlanInfo(PostPlanInfo postPlanInfo) {
58
     public int insertPostPlanInfo(PostPlanInfo postPlanInfo) {
59
-
60
-        //            checkedDeptId
61
-//            checkedPostId
62
         if (postPlanInfo.getCheckedDeptId() == null || postPlanInfo.getCheckedPostId() == null) {
59
         if (postPlanInfo.getCheckedDeptId() == null || postPlanInfo.getCheckedPostId() == null) {
63
             throw new BaseException("涉及部门和涉及岗位的值为空,请重新选择!");
60
             throw new BaseException("涉及部门和涉及岗位的值为空,请重新选择!");
64
         }
61
         }
65
-
66
-
67
-        //TODO 自增主键修改为-MyBatis-Plus雪花算法(截取5位解决VUE精度丢失BUG)-系统登录日志
68
-        if (postPlanInfo.getId() == null)
69
-            postPlanInfo.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
62
+        postPlanInfo.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
70
         postPlanInfo.setCreateDefault();
63
         postPlanInfo.setCreateDefault();
71
         postPlanInfo.setStatus(PostPlanEnum.INFO_STATUS_NO.getValue());
64
         postPlanInfo.setStatus(PostPlanEnum.INFO_STATUS_NO.getValue());
72
         postPlanInfo.setCreateUserId(SecurityUtils.getUserId());
65
         postPlanInfo.setCreateUserId(SecurityUtils.getUserId());
73
-
74
         return postPlanInfoMapper.insertPostPlanInfo(postPlanInfo);
66
         return postPlanInfoMapper.insertPostPlanInfo(postPlanInfo);
75
     }
67
     }
76
 
68
 

+ 6 - 4
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostPlanJoinCheckedServiceImpl.java

@@ -3,6 +3,7 @@ package com.ruoyi.postCheck.service.impl;
3
 import java.util.Date;
3
 import java.util.Date;
4
 import java.util.List;
4
 import java.util.List;
5
 
5
 
6
+import com.ruoyi.common.constant.PostPlanEnum;
6
 import com.ruoyi.postCheck.domain.PostPlanInfo;
7
 import com.ruoyi.postCheck.domain.PostPlanInfo;
7
 import com.ruoyi.postCheck.mapper.PostPlanInfoMapper;
8
 import com.ruoyi.postCheck.mapper.PostPlanInfoMapper;
8
 import com.ruoyi.postCheck.mapper.PostPlanMapper;
9
 import com.ruoyi.postCheck.mapper.PostPlanMapper;
@@ -54,23 +55,24 @@ public class PostPlanJoinCheckedServiceImpl implements IPostPlanJoinCheckedServi
54
      * 岗检完成确认
55
      * 岗检完成确认
55
      *
56
      *
56
      * @param planInfoId    岗检计划明细ID
57
      * @param planInfoId    岗检计划明细ID
57
-     * @param checkedUserId 检查人ID
58
+     * @param checkedUserName 检查人ID
58
      * @param checkedTime   检查时间
59
      * @param checkedTime   检查时间
59
      * @param checkedImg    检查表照片
60
      * @param checkedImg    检查表照片
60
      * @return 结果
61
      * @return 结果
61
      */
62
      */
62
     @Override
63
     @Override
63
-    public int checked(Long planInfoId, Long checkedUserId, Date checkedTime, String checkedImg) {
64
+    public int checked(Long planInfoId, String checkedUserName, Date checkedTime, String checkedImg) {
64
 
65
 
65
-        if (planInfoId == null || checkedUserId == null || checkedTime == null) {
66
+        if (planInfoId == null || checkedUserName == null || checkedTime == null) {
66
             return 0;
67
             return 0;
67
         }
68
         }
68
 
69
 
69
         PostPlanInfo postPlanInfo = new PostPlanInfo();
70
         PostPlanInfo postPlanInfo = new PostPlanInfo();
70
         postPlanInfo.setId(planInfoId);
71
         postPlanInfo.setId(planInfoId);
71
-        postPlanInfo.setCheckedUserId(checkedUserId);
72
+        postPlanInfo.setCheckedUserName(checkedUserName);
72
         postPlanInfo.setCheckedTime(checkedTime);
73
         postPlanInfo.setCheckedTime(checkedTime);
73
         postPlanInfo.setCheckedImg(checkedImg);
74
         postPlanInfo.setCheckedImg(checkedImg);
75
+        postPlanInfo.setStatus(PostPlanEnum.INFO_STATUS_YES.getValue());
74
 
76
 
75
         return postPlanInfoMapper.updatePostPlanInfo(postPlanInfo);
77
         return postPlanInfoMapper.updatePostPlanInfo(postPlanInfo);
76
     }
78
     }

+ 1 - 1
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/service/impl/PostProgrammeServiceImpl.java

@@ -60,7 +60,7 @@ public class PostProgrammeServiceImpl extends ServiceImpl<PostProgrammeMapper, P
60
     @Override
60
     @Override
61
     public int insertPostProgramme(PostProgramme postProgramme) {
61
     public int insertPostProgramme(PostProgramme postProgramme) {
62
         //TODO 自增主键修改为-MyBatis-Plus雪花算法(截取5位解决VUE精度丢失BUG)-系统登录日志
62
         //TODO 自增主键修改为-MyBatis-Plus雪花算法(截取5位解决VUE精度丢失BUG)-系统登录日志
63
-        if (postProgramme.getId() == null)
63
+//        if (postProgramme.getId() == null)
64
             postProgramme.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
64
             postProgramme.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
65
         postProgramme.setCreateDefault();
65
         postProgramme.setCreateDefault();
66
 
66
 

+ 12 - 7
ruoyi-postcheck/src/main/resources/mapper/postCheck/PostCheckedItemsMapper.xml

@@ -3,7 +3,7 @@
3
 PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
3
 PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.ruoyi.postCheck.mapper.PostCheckedItemsMapper">
5
 <mapper namespace="com.ruoyi.postCheck.mapper.PostCheckedItemsMapper">
6
-    
6
+
7
     <resultMap type="PostCheckedItems" id="PostCheckedItemsResult">
7
     <resultMap type="PostCheckedItems" id="PostCheckedItemsResult">
8
         <result property="id"    column="id"    />
8
         <result property="id"    column="id"    />
9
         <result property="postCheckedId"    column="post_checked_id"    />
9
         <result property="postCheckedId"    column="post_checked_id"    />
@@ -19,17 +19,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
19
         <result property="postCheckedStandard"    column="post_checked_standard"    />
19
         <result property="postCheckedStandard"    column="post_checked_standard"    />
20
         <result property="postCheckedMethod"    column="post_checked_method"    />
20
         <result property="postCheckedMethod"    column="post_checked_method"    />
21
         <result property="postCheckedResult"    column="post_checked_result"    />
21
         <result property="postCheckedResult"    column="post_checked_result"    />
22
+        <result property="childrenTypeId"    column="children_type_id"    />
22
     </resultMap>
23
     </resultMap>
23
 
24
 
24
     <sql id="selectPostCheckedItemsVo">
25
     <sql id="selectPostCheckedItemsVo">
25
-        select id, post_checked_id, type, remark, del_flag, create_time, create_by, update_time, update_by, create_user_id, post_checked_content, post_checked_standard, post_checked_method, post_checked_result from post_checked_items
26
+        select id, post_checked_id, type, children_type_id, remark, del_flag, create_time, create_by, update_time, update_by, create_user_id, post_checked_content, post_checked_standard, post_checked_method, post_checked_result from post_checked_items
26
     </sql>
27
     </sql>
27
 
28
 
28
     <select id="selectPostCheckedItemsList" parameterType="PostCheckedItems" resultMap="PostCheckedItemsResult">
29
     <select id="selectPostCheckedItemsList" parameterType="PostCheckedItems" resultMap="PostCheckedItemsResult">
29
         <include refid="selectPostCheckedItemsVo"/>
30
         <include refid="selectPostCheckedItemsVo"/>
30
-        <where>  
31
+        <where>
31
             <if test="postCheckedId != null "> and post_checked_id = #{postCheckedId}</if>
32
             <if test="postCheckedId != null "> and post_checked_id = #{postCheckedId}</if>
32
             <if test="type != null "> and type = #{type}</if>
33
             <if test="type != null "> and type = #{type}</if>
34
+            <if test="childrenTypeId != null "> and children_type_id = #{childrenTypeId}</if>
33
             <if test="createUserId != null "> and create_user_id = #{createUserId}</if>
35
             <if test="createUserId != null "> and create_user_id = #{createUserId}</if>
34
             <if test="postCheckedContent != null  and postCheckedContent != ''"> and post_checked_content = #{postCheckedContent}</if>
36
             <if test="postCheckedContent != null  and postCheckedContent != ''"> and post_checked_content = #{postCheckedContent}</if>
35
             <if test="postCheckedStandard != null  and postCheckedStandard != ''"> and post_checked_standard = #{postCheckedStandard}</if>
37
             <if test="postCheckedStandard != null  and postCheckedStandard != ''"> and post_checked_standard = #{postCheckedStandard}</if>
@@ -37,18 +39,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
37
             <if test="postCheckedResult != null  and postCheckedResult != ''"> and post_checked_result = #{postCheckedResult}</if>
39
             <if test="postCheckedResult != null  and postCheckedResult != ''"> and post_checked_result = #{postCheckedResult}</if>
38
         </where>
40
         </where>
39
     </select>
41
     </select>
40
-    
42
+
41
     <select id="selectPostCheckedItemsById" parameterType="Long" resultMap="PostCheckedItemsResult">
43
     <select id="selectPostCheckedItemsById" parameterType="Long" resultMap="PostCheckedItemsResult">
42
         <include refid="selectPostCheckedItemsVo"/>
44
         <include refid="selectPostCheckedItemsVo"/>
43
         where id = #{id}
45
         where id = #{id}
44
     </select>
46
     </select>
45
-        
47
+
46
     <insert id="insertPostCheckedItems" parameterType="PostCheckedItems">
48
     <insert id="insertPostCheckedItems" parameterType="PostCheckedItems">
47
         insert into post_checked_items
49
         insert into post_checked_items
48
         <trim prefix="(" suffix=")" suffixOverrides=",">
50
         <trim prefix="(" suffix=")" suffixOverrides=",">
49
             <if test="id != null">id,</if>
51
             <if test="id != null">id,</if>
50
             <if test="postCheckedId != null">post_checked_id,</if>
52
             <if test="postCheckedId != null">post_checked_id,</if>
51
             <if test="type != null">type,</if>
53
             <if test="type != null">type,</if>
54
+            <if test="childrenTypeId != null">children_type_id,</if>
52
             <if test="remark != null">remark,</if>
55
             <if test="remark != null">remark,</if>
53
             <if test="delFlag != null">del_flag,</if>
56
             <if test="delFlag != null">del_flag,</if>
54
             <if test="createTime != null">create_time,</if>
57
             <if test="createTime != null">create_time,</if>
@@ -65,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
65
             <if test="id != null">#{id},</if>
68
             <if test="id != null">#{id},</if>
66
             <if test="postCheckedId != null">#{postCheckedId},</if>
69
             <if test="postCheckedId != null">#{postCheckedId},</if>
67
             <if test="type != null">#{type},</if>
70
             <if test="type != null">#{type},</if>
71
+            <if test="childrenTypeId != null">#{childrenTypeId},</if>
68
             <if test="remark != null">#{remark},</if>
72
             <if test="remark != null">#{remark},</if>
69
             <if test="delFlag != null">#{delFlag},</if>
73
             <if test="delFlag != null">#{delFlag},</if>
70
             <if test="createTime != null">#{createTime},</if>
74
             <if test="createTime != null">#{createTime},</if>
@@ -84,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
84
         <trim prefix="SET" suffixOverrides=",">
88
         <trim prefix="SET" suffixOverrides=",">
85
             <if test="postCheckedId != null">post_checked_id = #{postCheckedId},</if>
89
             <if test="postCheckedId != null">post_checked_id = #{postCheckedId},</if>
86
             <if test="type != null">type = #{type},</if>
90
             <if test="type != null">type = #{type},</if>
91
+            <if test="childrenTypeId != null">children_type_id = #{childrenTypeId},</if>
87
             <if test="remark != null">remark = #{remark},</if>
92
             <if test="remark != null">remark = #{remark},</if>
88
             <if test="delFlag != null">del_flag = #{delFlag},</if>
93
             <if test="delFlag != null">del_flag = #{delFlag},</if>
89
             <if test="createTime != null">create_time = #{createTime},</if>
94
             <if test="createTime != null">create_time = #{createTime},</if>
@@ -104,9 +109,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
104
     </delete>
109
     </delete>
105
 
110
 
106
     <delete id="deletePostCheckedItemsByIds" parameterType="String">
111
     <delete id="deletePostCheckedItemsByIds" parameterType="String">
107
-        delete from post_checked_items where id in 
112
+        delete from post_checked_items where id in
108
         <foreach item="id" collection="array" open="(" separator="," close=")">
113
         <foreach item="id" collection="array" open="(" separator="," close=")">
109
             #{id}
114
             #{id}
110
         </foreach>
115
         </foreach>
111
     </delete>
116
     </delete>
112
-</mapper>
117
+</mapper>

+ 10 - 1
ruoyi-postcheck/src/main/resources/mapper/postCheck/PostCheckedMapper.xml

@@ -5,7 +5,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
5
 <mapper namespace="com.ruoyi.postCheck.mapper.PostCheckedMapper">
5
 <mapper namespace="com.ruoyi.postCheck.mapper.PostCheckedMapper">
6
 
6
 
7
     <resultMap type="PostChecked" id="PostCheckedResult">
7
     <resultMap type="PostChecked" id="PostCheckedResult">
8
-        <result property="id"    column="id"    />
8
+        <result property="id"    column="id"/>
9
+        <result property="postCode"    column="post_code"/>
9
         <result property="checkWorkgroupId"    column="check_workgroup_id"    />
10
         <result property="checkWorkgroupId"    column="check_workgroup_id"    />
10
         <result property="checkGroupId"    column="check_group_id"    />
11
         <result property="checkGroupId"    column="check_group_id"    />
11
         <result property="checkedDeptId"    column="checked_dept_id"    />
12
         <result property="checkedDeptId"    column="checked_dept_id"    />
@@ -29,6 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
29
     <sql id="selectPostCheckedVo">
30
     <sql id="selectPostCheckedVo">
30
         SELECT
31
         SELECT
31
             t1.id,
32
             t1.id,
33
+            t1.post_code,
32
             t1.check_workgroup_id,
34
             t1.check_workgroup_id,
33
             t1.check_group_id,
35
             t1.check_group_id,
34
             t1.checked_dept_id,
36
             t1.checked_dept_id,
@@ -79,6 +81,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
79
             <if test="uploadUserId != null "> and upload_user_id = #{uploadUserId}</if>
81
             <if test="uploadUserId != null "> and upload_user_id = #{uploadUserId}</if>
80
             <if test="uploadTime != null "> and upload_time = #{uploadTime}</if>
82
             <if test="uploadTime != null "> and upload_time = #{uploadTime}</if>
81
             <if test="createUserId != null "> and create_user_id = #{createUserId}</if>
83
             <if test="createUserId != null "> and create_user_id = #{createUserId}</if>
84
+
85
+            <if test="postCode != null  and postCode != ''"> and t1.post_code like concat('%', #{postCode}, '%')</if>
86
+            <if test="checkedDeptName != null  and checkedDeptName != ''"> and sd."dept_name" like concat('%', #{checkedDeptName}, '%')</if>
87
+            <if test="checkWorkgroupName != null  and checkWorkgroupName != ''"> and pt1."name" like concat('%', #{checkWorkgroupName}, '%')</if>
88
+            <if test="checkGroupName != null  and checkGroupName != ''"> and pt2."name" like concat('%', #{checkGroupName}, '%')</if>
82
         </where>
89
         </where>
83
     </select>
90
     </select>
84
 
91
 
@@ -91,6 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
91
         insert into post_checked
98
         insert into post_checked
92
         <trim prefix="(" suffix=")" suffixOverrides=",">
99
         <trim prefix="(" suffix=")" suffixOverrides=",">
93
             <if test="id != null">id,</if>
100
             <if test="id != null">id,</if>
101
+            post_code,
94
             <if test="checkWorkgroupId != null">check_workgroup_id,</if>
102
             <if test="checkWorkgroupId != null">check_workgroup_id,</if>
95
             <if test="checkGroupId != null">check_group_id,</if>
103
             <if test="checkGroupId != null">check_group_id,</if>
96
             <if test="checkedDeptId != null">checked_dept_id,</if>
104
             <if test="checkedDeptId != null">checked_dept_id,</if>
@@ -112,6 +120,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
112
          </trim>
120
          </trim>
113
         <trim prefix="values (" suffix=")" suffixOverrides=",">
121
         <trim prefix="values (" suffix=")" suffixOverrides=",">
114
             <if test="id != null">#{id},</if>
122
             <if test="id != null">#{id},</if>
123
+            #{postCode},
115
             <if test="checkWorkgroupId != null">#{checkWorkgroupId},</if>
124
             <if test="checkWorkgroupId != null">#{checkWorkgroupId},</if>
116
             <if test="checkGroupId != null">#{checkGroupId},</if>
125
             <if test="checkGroupId != null">#{checkGroupId},</if>
117
             <if test="checkedDeptId != null">#{checkedDeptId},</if>
126
             <if test="checkedDeptId != null">#{checkedDeptId},</if>

+ 39 - 35
ruoyi-postcheck/src/main/resources/mapper/postCheck/PostCheckedProblemMapper.xml

@@ -10,7 +10,6 @@
10
         <result property="problemNo"    column="problem_no"    />
10
         <result property="problemNo"    column="problem_no"    />
11
         <result property="checkWorkgroupId"    column="check_workgroup_id"    />
11
         <result property="checkWorkgroupId"    column="check_workgroup_id"    />
12
         <result property="checkGroupId"    column="check_group_id"    />
12
         <result property="checkGroupId"    column="check_group_id"    />
13
-        <!--<result property="checkUserId"    column="check_user_id"    />-->
14
         <result property="checkUserName"    column="check_user_name"    />
13
         <result property="checkUserName"    column="check_user_name"    />
15
         <result property="deptApproveUserId"    column="dept_approve_user_id"    />
14
         <result property="deptApproveUserId"    column="dept_approve_user_id"    />
16
         <result property="deptApproveTime"    column="dept_approve_time"    />
15
         <result property="deptApproveTime"    column="dept_approve_time"    />
@@ -58,8 +57,6 @@
58
             t1.problem_no,
57
             t1.problem_no,
59
             t1.check_workgroup_id,
58
             t1.check_workgroup_id,
60
             t1.check_group_id,
59
             t1.check_group_id,
61
-            t1.check_user_id,
62
-            t1.check_user_name,
63
             t1.dept_approve_user_id,
60
             t1.dept_approve_user_id,
64
             t1.dept_approve_time,
61
             t1.dept_approve_time,
65
             t1.speciality_department_reviewer_id,
62
             t1.speciality_department_reviewer_id,
@@ -89,12 +86,18 @@
89
             t1.update_by,
86
             t1.update_by,
90
             t1.create_user_id,
87
             t1.create_user_id,
91
             t1.check_time,
88
             t1.check_time,
89
+            t1.check_user_name,
92
             t1.duty_type,
90
             t1.duty_type,
93
 
91
 
92
+            pt1.name AS checkWorkgroupName,
93
+            pt2.name AS checkGroupName,
94
+
94
             t2."dept_name" as checkedDeptName,
95
             t2."dept_name" as checkedDeptName,
95
             t3."post_name" as checkedPostName,
96
             t3."post_name" as checkedPostName,
96
             t4."nick_name" AS rectificationResponsibleUserName
97
             t4."nick_name" AS rectificationResponsibleUserName
97
         from post_checked_problem t1
98
         from post_checked_problem t1
99
+        LEFT JOIN post_team pt1 ON pt1.id = t1.check_workgroup_id
100
+        LEFT JOIN post_team pt2 ON pt2.id = t1.check_group_id
98
         LEFT JOIN "sys_dept" t2 ON t2."dept_id" = t1."checked_dept_id"
101
         LEFT JOIN "sys_dept" t2 ON t2."dept_id" = t1."checked_dept_id"
99
         LEFT JOIN "sys_post" t3 ON t3."post_id" = t1."checked_post_id"
102
         LEFT JOIN "sys_post" t3 ON t3."post_id" = t1."checked_post_id"
100
         LEFT JOIN "public"."sys_users" t4 ON  t4."user_id" = t1."rectification_responsible_user_id"
103
         LEFT JOIN "public"."sys_users" t4 ON  t4."user_id" = t1."rectification_responsible_user_id"
@@ -103,40 +106,44 @@
103
     <select id="selectPostCheckedProblemList" parameterType="PostCheckedProblem" resultMap="PostCheckedProblemResult">
106
     <select id="selectPostCheckedProblemList" parameterType="PostCheckedProblem" resultMap="PostCheckedProblemResult">
104
         <include refid="selectPostCheckedProblemVo"/>
107
         <include refid="selectPostCheckedProblemVo"/>
105
         <where>
108
         <where>
106
-            <if test="status != null "> and status = #{status}</if>
107
-            <if test="problemNo != null  and problemNo != ''"> and problem_no = #{problemNo}</if>
108
-            <if test="checkWorkgroupId != null "> and check_workgroup_id = #{checkWorkgroupId}</if>
109
-            <if test="checkGroupId != null "> and check_group_id = #{checkGroupId}</if>
110
-            <!--<if test="checkUserId != null "> and check_user_id = #{checkUserId}</if>-->
111
-            <if test="checkUserName != null and checkUserName != ''"> and check_user_name = #{checkUserName}</if>
112
-            <if test="deptApproveUserId != null "> and dept_approve_user_id = #{deptApproveUserId}</if>
113
-            <if test="deptApproveTime != null "> and dept_approve_time = #{deptApproveTime}</if>
114
-            <if test="specialityDepartmentReviewerId != null "> and speciality_department_reviewer_id = #{specialityDepartmentReviewerId}</if>
115
-            <if test="specialityDepartmentReviewTime != null "> and speciality_department_review_time = #{specialityDepartmentReviewTime}</if>
116
-            <if test="problemLevel != null  and problemLevel != ''"> and problem_level = #{problemLevel}</if>
117
-            <if test="problemAttribute != null"> and problem_attribute = #{problemAttribute}</if>
118
-            <if test="problemCategory != null"> and problem_category = #{problemCategory}</if>
119
-            <if test="description != null  and description != ''"> and description = #{description}</if>
120
-            <if test="problemCause != null  and problemCause != ''"> and problem_cause = #{problemCause}</if>
121
-            <if test="isImmediatelyCorrected != null "> and is_immediately_corrected = #{isImmediatelyCorrected}</if>
109
+            <if test="checkWorkgroupName != null  and checkWorkgroupName != ''"> and pt1."name" like concat('%', #{checkWorkgroupName}, '%')</if>
110
+            <if test="checkGroupName != null  and checkGroupName != ''"> and pt2."name" like concat('%', #{checkGroupName}, '%')</if>
111
+            <if test="checkedDeptName != null  and checkedDeptName != ''"> and t2."dept_name" like concat('%', #{checkedDeptName}, '%')</if>
112
+            <if test="checkedPostName != null  and checkedPostName != ''"> and t3."post_name" like concat('%', #{checkedPostName}, '%')</if>
113
+
114
+            <if test="status != null "> and t1.status = #{status}</if>
115
+            <if test="problemNo != null  and problemNo != ''"> and t1.problem_no = #{problemNo}</if>
116
+            <if test="checkWorkgroupId != null "> and t1.check_workgroup_id = #{checkWorkgroupId}</if>
117
+            <if test="checkGroupId != null "> and t1.check_group_id = #{checkGroupId}</if>
118
+            <if test="checkUserName != null and checkUserName != ''"> and t1.check_user_name = #{checkUserName}</if>
119
+            <if test="deptApproveUserId != null "> and t1.dept_approve_user_id = #{deptApproveUserId}</if>
120
+            <if test="deptApproveTime != null "> and t1.dept_approve_time = #{deptApproveTime}</if>
121
+            <if test="specialityDepartmentReviewerId != null "> and t1.speciality_department_reviewer_id = #{specialityDepartmentReviewerId}</if>
122
+            <if test="specialityDepartmentReviewTime != null "> and t1.speciality_department_review_time = #{specialityDepartmentReviewTime}</if>
123
+            <if test="problemLevel != null  and problemLevel != ''"> and t1.problem_level = #{problemLevel}</if>
124
+            <if test="problemAttribute != null"> and t1.problem_attribute = #{problemAttribute}</if>
125
+            <if test="problemCategory != null"> and t1.problem_category = #{problemCategory}</if>
126
+            <if test="description != null  and description != ''"> and t1.description = #{description}</if>
127
+            <if test="problemCause != null  and problemCause != ''"> and t1.problem_cause = #{problemCause}</if>
128
+            <if test="isImmediatelyCorrected != null "> and t1.is_immediately_corrected = #{isImmediatelyCorrected}</if>
122
             <if test="rectificationMeasure != null  and rectificationMeasure != ''"> and rectification_measure = #{rectificationMeasure}</if>
129
             <if test="rectificationMeasure != null  and rectificationMeasure != ''"> and rectification_measure = #{rectificationMeasure}</if>
123
-            <if test="checkedDeptId != null "> and checked_dept_id = #{checkedDeptId}</if>
124
-            <if test="checkedPostId != null "> and checked_post_id = #{checkedPostId}</if>
125
-            <if test="rectificationResponsibleUserId != null "> and rectification_responsible_user_id = #{rectificationResponsibleUserId}</if>
126
-            <if test="rectificationPeriod != null "> and rectification_period = #{rectificationPeriod}</if>
127
-            <if test="isRectificationCompleted != null "> and is_rectification_completed = #{isRectificationCompleted}</if>
128
-            <if test="rectificationCompletionTime != null "> and rectification_completion_time = #{rectificationCompletionTime}</if>
129
-            <if test="rectificationCompletionImg != null  and rectificationCompletionImg != ''"> and rectification_completion_img = #{rectificationCompletionImg}</if>
130
-            <if test="reviewDepartmentReviewerId != null "> and review_department_reviewer_id = #{reviewDepartmentReviewerId}</if>
131
-            <if test="reviewDepartmentReviewerTime != null "> and review_department_reviewer_time = #{reviewDepartmentReviewerTime}</if>
132
-            <if test="reviewConclusion != null  and reviewConclusion != ''"> and review_conclusion = #{reviewConclusion}</if>
133
-            <if test="reason != null  and reason != ''"> and reason = #{reason}</if>
134
-            <if test="createUserId != null "> and create_user_id = #{createUserId}</if>
130
+            <if test="checkedDeptId != null "> and t1.checked_dept_id = #{checkedDeptId}</if>
131
+            <if test="checkedPostId != null "> and t1.checked_post_id = #{checkedPostId}</if>
132
+            <if test="rectificationResponsibleUserId != null "> and t1.rectification_responsible_user_id = #{rectificationResponsibleUserId}</if>
133
+            <if test="rectificationPeriod != null "> and t1.rectification_period = #{rectificationPeriod}</if>
134
+            <if test="isRectificationCompleted != null "> and t1.is_rectification_completed = #{isRectificationCompleted}</if>
135
+            <if test="rectificationCompletionTime != null "> and t1.rectification_completion_time = #{rectificationCompletionTime}</if>
136
+            <if test="rectificationCompletionImg != null  and rectificationCompletionImg != ''"> and t1.rectification_completion_img = #{rectificationCompletionImg}</if>
137
+            <if test="reviewDepartmentReviewerId != null "> and t1.review_department_reviewer_id = #{reviewDepartmentReviewerId}</if>
138
+            <if test="reviewDepartmentReviewerTime != null "> and t1.review_department_reviewer_time = #{reviewDepartmentReviewerTime}</if>
139
+            <if test="reviewConclusion != null  and reviewConclusion != ''"> and t1.review_conclusion = #{reviewConclusion}</if>
140
+            <if test="reason != null  and reason != ''"> and t1.reason = #{reason}</if>
141
+            <if test="createUserId != null "> and t1.create_user_id = #{createUserId}</if>
135
 
142
 
136
             <!--<if test="checkTime != null "> and check_time = #{checkTime}</if>-->
143
             <!--<if test="checkTime != null "> and check_time = #{checkTime}</if>-->
137
             <if test="checkTime != null "> and TO_DATE(t1.check_time, 'yyyy-mm-dd') &gt;= TO_DATE(#{checkTime}, 'yyyy-mm-dd')</if>
144
             <if test="checkTime != null "> and TO_DATE(t1.check_time, 'yyyy-mm-dd') &gt;= TO_DATE(#{checkTime}, 'yyyy-mm-dd')</if>
138
 
145
 
139
-            <if test="dutyType != null "> and duty_type = #{dutyType}</if>
146
+            <if test="dutyType != null "> and t1.duty_type = #{dutyType}</if>
140
 
147
 
141
             <!-- 开始时间检索 -->
148
             <!-- 开始时间检索 -->
142
             <if test="params.beginTime != null and params.beginTime != ''">
149
             <if test="params.beginTime != null and params.beginTime != ''">
@@ -162,7 +169,6 @@
162
             <if test="problemNo != null and problemNo != ''">problem_no,</if>
169
             <if test="problemNo != null and problemNo != ''">problem_no,</if>
163
             <if test="checkWorkgroupId != null">check_workgroup_id,</if>
170
             <if test="checkWorkgroupId != null">check_workgroup_id,</if>
164
             <if test="checkGroupId != null">check_group_id,</if>
171
             <if test="checkGroupId != null">check_group_id,</if>
165
-            <!--<if test="checkUserId != null">check_user_id,</if>-->
166
             <if test="checkUserName != null and checkUserName != ''">check_user_name,</if>
172
             <if test="checkUserName != null and checkUserName != ''">check_user_name,</if>
167
             <if test="deptApproveUserId != null">dept_approve_user_id,</if>
173
             <if test="deptApproveUserId != null">dept_approve_user_id,</if>
168
             <if test="deptApproveTime != null">dept_approve_time,</if>
174
             <if test="deptApproveTime != null">dept_approve_time,</if>
@@ -202,7 +208,6 @@
202
             <if test="problemNo != null and problemNo != ''">#{problemNo},</if>
208
             <if test="problemNo != null and problemNo != ''">#{problemNo},</if>
203
             <if test="checkWorkgroupId != null">#{checkWorkgroupId},</if>
209
             <if test="checkWorkgroupId != null">#{checkWorkgroupId},</if>
204
             <if test="checkGroupId != null">#{checkGroupId},</if>
210
             <if test="checkGroupId != null">#{checkGroupId},</if>
205
-            <!--<if test="checkUserId != null">#{checkUserId},</if>-->
206
             <if test="checkUserName != null and checkUserName != ''">#{checkUserName},</if>
211
             <if test="checkUserName != null and checkUserName != ''">#{checkUserName},</if>
207
             <if test="deptApproveUserId != null">#{deptApproveUserId},</if>
212
             <if test="deptApproveUserId != null">#{deptApproveUserId},</if>
208
             <if test="deptApproveTime != null">#{deptApproveTime},</if>
213
             <if test="deptApproveTime != null">#{deptApproveTime},</if>
@@ -245,7 +250,6 @@
245
             <if test="problemNo != null and problemNo != ''">problem_no = #{problemNo},</if>
250
             <if test="problemNo != null and problemNo != ''">problem_no = #{problemNo},</if>
246
             <if test="checkWorkgroupId != null">check_workgroup_id = #{checkWorkgroupId},</if>
251
             <if test="checkWorkgroupId != null">check_workgroup_id = #{checkWorkgroupId},</if>
247
             <if test="checkGroupId != null">check_group_id = #{checkGroupId},</if>
252
             <if test="checkGroupId != null">check_group_id = #{checkGroupId},</if>
248
-            <!--<if test="checkUserId != null">check_user_id = #{checkUserId},</if>-->
249
             <if test="checkUserName != null and checkUserName != ''">check_user_name = #{checkUserName},</if>
253
             <if test="checkUserName != null and checkUserName != ''">check_user_name = #{checkUserName},</if>
250
             <if test="deptApproveUserId != null">dept_approve_user_id = #{deptApproveUserId},</if>
254
             <if test="deptApproveUserId != null">dept_approve_user_id = #{deptApproveUserId},</if>
251
             <if test="deptApproveTime != null">dept_approve_time = #{deptApproveTime},</if>
255
             <if test="deptApproveTime != null">dept_approve_time = #{deptApproveTime},</if>

+ 25 - 2
ruoyi-postcheck/src/main/resources/mapper/postCheck/PostPlanInfoMapper.xml

@@ -19,11 +19,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
19
         <result property="checkedImg"    column="checked_img"    />
19
         <result property="checkedImg"    column="checked_img"    />
20
         <result property="createUserId"    column="create_user_id"    />
20
         <result property="createUserId"    column="create_user_id"    />
21
         <result property="checkedTime"    column="checked_time"    />
21
         <result property="checkedTime"    column="checked_time"    />
22
+        <result property="checkedUserName"    column="checked_user_name"    />
23
+        <result property="status"    column="status"    />
24
+
25
+        <result property="printUserId"    column="print_user_id"    />
26
+        <result property="printTime"    column="print_time"    />
22
     </resultMap>
27
     </resultMap>
23
 
28
 
29
+
30
+
24
     <sql id="selectPostPlanInfoVo">
31
     <sql id="selectPostPlanInfoVo">
25
         select
32
         select
26
-            id, post_plan_id, checked_dept_id, check_time, checked_post_id, remark, del_flag, create_time, create_by, update_time, update_by, create_user_id
33
+            id, post_plan_id, checked_dept_id, check_time, checked_post_id, remark, del_flag, create_time, create_by, update_time, update_by, create_user_id,
34
+            print_user_id,
35
+            print_time,
36
+            checked_user_name,
37
+            checked_img,
38
+            checked_time,
39
+            status
27
         from post_plan_info
40
         from post_plan_info
28
     </sql>
41
     </sql>
29
 
42
 
@@ -35,6 +48,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
35
             <if test="checkTime != null "> and check_time = #{checkTime}</if>
48
             <if test="checkTime != null "> and check_time = #{checkTime}</if>
36
             <if test="checkedPostId != null "> and checked_post_id = #{checkedPostId}</if>
49
             <if test="checkedPostId != null "> and checked_post_id = #{checkedPostId}</if>
37
             <if test="createUserId != null "> and create_user_id = #{createUserId}</if>
50
             <if test="createUserId != null "> and create_user_id = #{createUserId}</if>
51
+            <if test="checkedUserName != null  and checkedUserName != ''"> and checked_user_name like concat('%', #{checkedUserName}, '%')</if>
52
+            <if test="status != null "> and status = #{status}</if>
38
         </where>
53
         </where>
39
     </select>
54
     </select>
40
 
55
 
@@ -58,6 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
58
             <if test="updateTime != null">update_time,</if>
73
             <if test="updateTime != null">update_time,</if>
59
             <if test="updateBy != null and updateBy != ''">update_by,</if>
74
             <if test="updateBy != null and updateBy != ''">update_by,</if>
60
             <if test="createUserId != null">create_user_id,</if>
75
             <if test="createUserId != null">create_user_id,</if>
76
+            <if test="status != null">status,</if>
61
          </trim>
77
          </trim>
62
         <trim prefix="values (" suffix=")" suffixOverrides=",">
78
         <trim prefix="values (" suffix=")" suffixOverrides=",">
63
             <if test="id != null">#{id},</if>
79
             <if test="id != null">#{id},</if>
@@ -72,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
72
             <if test="updateTime != null">#{updateTime},</if>
88
             <if test="updateTime != null">#{updateTime},</if>
73
             <if test="updateBy != null and updateBy != ''">#{updateBy},</if>
89
             <if test="updateBy != null and updateBy != ''">#{updateBy},</if>
74
             <if test="createUserId != null">#{createUserId},</if>
90
             <if test="createUserId != null">#{createUserId},</if>
91
+            <if test="status != null">#{status},</if>
75
          </trim>
92
          </trim>
76
     </insert>
93
     </insert>
77
 
94
 
@@ -89,12 +106,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
89
             <if test="updateTime != null">update_time = #{updateTime},</if>
106
             <if test="updateTime != null">update_time = #{updateTime},</if>
90
             <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
107
             <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
91
             <if test="checkedImg != null">checked_img = #{checkedImg},</if>
108
             <if test="checkedImg != null">checked_img = #{checkedImg},</if>
92
-            <if test="createUserId != null">create_user_id = #{createUserId},</if>
109
+            <if test="checkedUserName != null">checked_user_name = #{checkedUserName},</if>
93
             <if test="checkedTime != null">checked_time = #{checkedTime},</if>
110
             <if test="checkedTime != null">checked_time = #{checkedTime},</if>
111
+            <if test="printUserId != null">print_user_id = #{printUserId},</if>
112
+            <if test="printTime != null">print_time = #{printTime},</if>
113
+            <if test="status != null">status = #{status},</if>
114
+
94
         </trim>
115
         </trim>
95
         where id = #{id}
116
         where id = #{id}
96
     </update>
117
     </update>
97
 
118
 
119
+
120
+
98
     <delete id="deletePostPlanInfoById" parameterType="Long">
121
     <delete id="deletePostPlanInfoById" parameterType="Long">
99
         delete from post_plan_info where id = #{id}
122
         delete from post_plan_info where id = #{id}
100
     </delete>
123
     </delete>

+ 18 - 15
ruoyi-postcheck/src/main/resources/mapper/postCheck/PostPlanMapper.xml

@@ -97,6 +97,8 @@
97
             <if test="params.endTime != null and params.endTime != ''">
97
             <if test="params.endTime != null and params.endTime != ''">
98
                 AND TO_DATE(t1.start_time, 'yyyy-mm-dd') &lt;= TO_DATE(#{params.endTime}, 'yyyy-mm-dd')
98
                 AND TO_DATE(t1.start_time, 'yyyy-mm-dd') &lt;= TO_DATE(#{params.endTime}, 'yyyy-mm-dd')
99
             </if>
99
             </if>
100
+            <if test="checkGroupName != null  and checkGroupName != ''"> and pt1."name" like concat('%', #{checkGroupName}, '%')</if>
101
+            <if test="checkTeamName != null  and checkTeamName != ''"> and pt2."name" like concat('%', #{checkTeamName}, '%')</if>
100
         </where>
102
         </where>
101
         GROUP BY t1.id
103
         GROUP BY t1.id
102
     </select>
104
     </select>
@@ -211,25 +213,11 @@
211
 
213
 
212
     <!--从岗检计划中查询,岗检记录上传的列表-->
214
     <!--从岗检计划中查询,岗检记录上传的列表-->
213
     <select id="selectPostPlanJoinCheckedList" parameterType="PostPlanJoinChecked" resultType="PostPlanJoinChecked">
215
     <select id="selectPostPlanJoinCheckedList" parameterType="PostPlanJoinChecked" resultType="PostPlanJoinChecked">
214
-       <!--
215
         SELECT
216
         SELECT
216
             t1.check_group_id AS checkGroupId,
217
             t1.check_group_id AS checkGroupId,
217
             t1.check_team_id AS checkTeamId,
218
             t1.check_team_id AS checkTeamId,
218
             t2.id AS planInfoId,
219
             t2.id AS planInfoId,
219
-            t2.checked_user_id AS checkedUserId,
220
-            t2.checked_dept_id AS checkedDeptId,
221
-            t2.checked_post_id AS checkedPostId,
222
-            t2.status AS status
223
-        FROM post_plan t1
224
-        INNER JOIN post_plan_info t2 ON t2."post_plan_id"  = t1.id
225
-        GROUP BY t2.checked_dept_id
226
-        ORDER BY t1.start_time, t1.create_time, t2.create_time, t2.id
227
-        -->
228
-        SELECT
229
-            t1.check_group_id AS checkGroupId,
230
-            t1.check_team_id AS checkTeamId,
231
-            t2.id AS planInfoId,
232
-            t2.checked_user_id AS checkedUserId,
220
+            t2.checked_user_name AS checkedUserName,
233
             t2.checked_dept_id AS checkedDeptId,
221
             t2.checked_dept_id AS checkedDeptId,
234
             t2.checked_post_id AS checkedPostId,
222
             t2.checked_post_id AS checkedPostId,
235
             t2.check_time AS checkTime,
223
             t2.check_time AS checkTime,
@@ -252,6 +240,14 @@
252
         LEFT JOIN post_team pt2 ON pt2.id = t1.check_team_id
240
         LEFT JOIN post_team pt2 ON pt2.id = t1.check_team_id
253
         LEFT JOIN sys_dept sd ON sd.dept_id = t2.checked_dept_id
241
         LEFT JOIN sys_dept sd ON sd.dept_id = t2.checked_dept_id
254
         LEFT JOIN sys_post sp ON sp.post_id = t2.checked_post_id
242
         LEFT JOIN sys_post sp ON sp.post_id = t2.checked_post_id
243
+        <where>
244
+            <if test="status != null  and status != 0"> and t2."status" = #{status}</if>
245
+
246
+            <if test="checkGroupName != null  and checkGroupName != ''"> and pt1."name" like concat('%', #{checkGroupName}, '%')</if>
247
+            <if test="checkTeamName != null  and checkTeamName != ''"> and pt2."name" like concat('%', #{checkTeamName}, '%')</if>
248
+            <if test="checkedPostNames != null  and checkedPostNames != ''"> and sp."post_name" like concat('%', #{checkedPostNames}, '%')</if>
249
+            <if test="checkedDeptName != null  and checkedDeptName != ''"> and sd."dept_name" like concat('%', #{checkedDeptName}, '%')</if>
250
+        </where>
255
         GROUP BY t2.checked_dept_id
251
         GROUP BY t2.checked_dept_id
256
         ORDER BY t1.start_time, t1.create_time, t2.create_time, t2.id
252
         ORDER BY t1.start_time, t1.create_time, t2.create_time, t2.id
257
     </select>
253
     </select>
@@ -290,6 +286,13 @@
290
             <if test="planInfoId != null">
286
             <if test="planInfoId != null">
291
                 and t2.id = #{planInfoId}
287
                 and t2.id = #{planInfoId}
292
             </if>
288
             </if>
289
+            <if test="status != null  and status != 0"> and t2."status" = #{status}</if>
290
+
291
+            <if test="checkGroupName != null  and checkGroupName != ''"> and pt1."name" like concat('%', #{checkGroupName}, '%')</if>
292
+            <if test="checkTeamName != null  and checkTeamName != ''"> and pt2."name" like concat('%', #{checkTeamName}, '%')</if>
293
+            <if test="checkedPostNames != null  and checkedPostNames != ''"> and sp."post_name" like concat('%', #{checkedPostNames}, '%')</if>
294
+            <if test="checkedDeptName != null  and checkedDeptName != ''"> and sd."dept_name" like concat('%', #{checkedDeptName}, '%')</if>
295
+
293
         </where>
296
         </where>
294
         GROUP BY t1.id, t2.checked_dept_id
297
         GROUP BY t1.id, t2.checked_dept_id
295
         ORDER BY t1.start_time, t1.create_time, t2.create_time, t2.id
298
         ORDER BY t1.start_time, t1.create_time, t2.create_time, t2.id

+ 9 - 4
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java

@@ -1,6 +1,7 @@
1
 package com.ruoyi.system.mapper;
1
 package com.ruoyi.system.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import org.apache.ibatis.annotations.Param;
5
 import org.apache.ibatis.annotations.Param;
5
 import com.ruoyi.common.core.domain.entity.SysUser;
6
 import com.ruoyi.common.core.domain.entity.SysUser;
6
 
7
 
@@ -9,8 +10,7 @@ import com.ruoyi.common.core.domain.entity.SysUser;
9
  *
10
  *
10
  * @author ruoyi
11
  * @author ruoyi
11
  */
12
  */
12
-public interface SysUserMapper
13
-{
13
+public interface SysUserMapper {
14
     /**
14
     /**
15
      * 根据条件分页查询用户列表
15
      * 根据条件分页查询用户列表
16
      *
16
      *
@@ -71,7 +71,7 @@ public interface SysUserMapper
71
      * 修改用户头像
71
      * 修改用户头像
72
      *
72
      *
73
      * @param userName 用户名
73
      * @param userName 用户名
74
-     * @param avatar 头像地址
74
+     * @param avatar   头像地址
75
      * @return 结果
75
      * @return 结果
76
      */
76
      */
77
     public int updateUserAvatar(@Param("userName") String userName, @Param("avatar") String avatar);
77
     public int updateUserAvatar(@Param("userName") String userName, @Param("avatar") String avatar);
@@ -129,8 +129,13 @@ public interface SysUserMapper
129
      * 查询用户列表(分页)支持部门ID、岗位名称筛选
129
      * 查询用户列表(分页)支持部门ID、岗位名称筛选
130
      *
130
      *
131
      * @param deptId   部门ID
131
      * @param deptId   部门ID
132
+     * @param deptName 部门名称
133
+     * @param postId   岗位ID
132
      * @param postName 岗位名称
134
      * @param postName 岗位名称
135
+     * @param nickName 人员姓名
133
      * @return
136
      * @return
134
      */
137
      */
135
-    List<SysUser> postUserList(@Param("deptId") Long deptId,@Param("postName") String postName);
138
+    List<SysUser> postUserList(@Param("deptId") Long deptId, @Param("deptName") String deptName,
139
+                               @Param("postId") Long postId, @Param("postName") String postName,
140
+                               @Param("nickName") String nickName);
136
 }
141
 }

+ 7 - 1
ruoyi-system/src/main/java/com/ruoyi/system/service/ISysUserService.java

@@ -204,11 +204,17 @@ public interface ISysUserService
204
      */
204
      */
205
     public String importUser(List<SysUser> userList, Boolean isUpdateSupport, String operName);
205
     public String importUser(List<SysUser> userList, Boolean isUpdateSupport, String operName);
206
 
206
 
207
+
207
     /**
208
     /**
208
      *查询用户列表(分页)支持部门ID、岗位名称筛选
209
      *查询用户列表(分页)支持部门ID、岗位名称筛选
209
      * @param deptId 部门ID
210
      * @param deptId 部门ID
211
+     * @param deptName 部门名称
212
+     *
213
+     * @param postId 岗位ID
210
      * @param postName 岗位名称
214
      * @param postName 岗位名称
215
+     *
216
+     * @param nickName 人员姓名
211
      * @return
217
      * @return
212
      */
218
      */
213
-    List<SysUser> postUserList(Long deptId, String postName);
219
+    List<SysUser> postUserList(Long deptId, String deptName, Long postId, String postName, String nickName);
214
 }
220
 }

+ 6 - 10
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java

@@ -437,14 +437,7 @@ public class SysUserServiceImpl implements ISysUserService {
437
         return userMapper.deleteUserByIds(userIds);
437
         return userMapper.deleteUserByIds(userIds);
438
     }
438
     }
439
 
439
 
440
-    /**
441
-     * 导入用户数据
442
-     *
443
-     * @param userList        用户数据列表
444
-     * @param isUpdateSupport 是否更新支持,如果已存在,则进行更新数据
445
-     * @param operName        操作用户
446
-     * @return 结果
447
-     */
440
+
448
     @Override
441
     @Override
449
     public String importUser(List<SysUser> userList, Boolean isUpdateSupport, String operName) {
442
     public String importUser(List<SysUser> userList, Boolean isUpdateSupport, String operName) {
450
         if (StringUtils.isNull(userList) || userList.size() == 0) {
443
         if (StringUtils.isNull(userList) || userList.size() == 0) {
@@ -500,12 +493,15 @@ public class SysUserServiceImpl implements ISysUserService {
500
      * 查询用户列表(分页)支持部门ID、岗位名称筛选
493
      * 查询用户列表(分页)支持部门ID、岗位名称筛选
501
      *
494
      *
502
      * @param deptId   部门ID
495
      * @param deptId   部门ID
496
+     * @param deptName 部门名称
497
+     * @param postId   岗位ID
503
      * @param postName 岗位名称
498
      * @param postName 岗位名称
499
+     * @param nickName 人员姓名
504
      * @return
500
      * @return
505
      */
501
      */
506
     @Override
502
     @Override
507
-    public List<SysUser> postUserList(Long deptId, String postName) {
503
+    public List<SysUser> postUserList(Long deptId, String deptName, Long postId, String postName, String nickName) {
508
 
504
 
509
-        return userMapper.postUserList(deptId, postName);
505
+        return userMapper.postUserList(deptId, deptName, deptId, postName, nickName);
510
     }
506
     }
511
 }
507
 }

+ 5 - 4
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -256,10 +256,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
256
 		LEFT JOIN "public".sys_user_post sup ON sup.user_id  = u.user_id
256
 		LEFT JOIN "public".sys_user_post sup ON sup.user_id  = u.user_id
257
 		LEFT JOIN "public".sys_post sp ON sp.post_id = sup.post_id
257
 		LEFT JOIN "public".sys_post sp ON sp.post_id = sup.post_id
258
 		WHERE u.del_flag = '0'
258
 		WHERE u.del_flag = '0'
259
-		<if test="deptId != null and deptId != 0">AND u.dept_id = #{deptId}</if>
260
-		<if test="postName != null and postName != ''">
261
-			AND sp.post_name like concat('%', #{postName}, '%')
262
-		</if>
259
+		<if test="nickName != null and nickName != ''">AND u."nick_name" LIKE concat('%', #{nickName}, '%')</if>
260
+		<if test="deptId != null">AND u.dept_id = #{deptId}</if>
261
+		<if test="deptName != null and deptName != ''">AND d."dept_name" LIKE concat('%', #{deptName}, '%')</if>
262
+		<if test="postId != null">AND sp."post_id" = #{postId}</if>
263
+		<if test="postName != null and postName != ''">AND sp.post_name like concat('%', #{postName}, '%')</if>
263
 	</select>
264
 	</select>
264
 
265
 
265
 </mapper>
266
 </mapper>