Forráskód Böngészése

岗检清单调整;岗检表模块

csg6 10 hónap óta
szülő
commit
69f44289e1

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

@@ -0,0 +1,16 @@
1
+package com.post;
2
+
3
+import com.ruoyi.common.utils.Arith;
4
+
5
+import java.math.BigDecimal;
6
+
7
+public class Test01 {
8
+    public static void main(String[] args) {
9
+        double round = Arith.round(new BigDecimal(99.98).doubleValue(), 2);
10
+        System.out.println(round);
11
+        System.out.println(new BigDecimal(round).doubleValue());
12
+    }
13
+    public void ss(){
14
+
15
+    }
16
+}

+ 24 - 22
ruoyi-postcheck/src/main/java/com/ruoyi/postCheck/controller/PostCheckedController.java

@@ -148,29 +148,31 @@ public class PostCheckedController extends BaseController {
148 148
 
149 149
     /**
150 150
      * 修改岗检表管理
151
-     @ApiOperation("修改岗检表管理")
152
-     @ApiImplicitParams({
153
-     @ApiImplicitParam(name = "id", value = "主键ID", dataType = "Long", dataTypeClass = Long.class),
154
-     @ApiImplicitParam(name = "checkWorkgroupId", value = "检查工作组ID", dataType = "Long", dataTypeClass = Long.class),
155
-     @ApiImplicitParam(name = "checkGroupId", value = "检查小组ID", dataType = "Long", dataTypeClass = Long.class),
156
-     @ApiImplicitParam(name = "checkedDeptId", value = "被检查部门ID", dataType = "Long", dataTypeClass = Long.class),
157
-     @ApiImplicitParam(name = "checkedPostId", value = "被检查岗位ID", dataType = "Long", dataTypeClass = Long.class),
158
-     @ApiImplicitParam(name = "printUserId", value = "打印人ID", dataType = "Long", dataTypeClass = Long.class),
159
-     @ApiImplicitParam(name = "printTime", value = "打印时间", dataType = "Date", dataTypeClass = Date.class),
160
-     @ApiImplicitParam(name = "checkedImg", value = "上传:检查后的检查表照片或PDF,磁盘相对路径", dataType = "String", dataTypeClass = String.class),
161
-     @ApiImplicitParam(name = "checkedUserName", value = "上传:检查人中文姓名(上传页面设置的值)", dataType = "String", dataTypeClass = String.class),
162
-     @ApiImplicitParam(name = "checkedTime", value = "上传:检查时间(上传页面设置的值)", dataType = "Date", dataTypeClass = Date.class),
163
-     @ApiImplicitParam(name = "uploadUserId", value = "上传:检查表上传人ID", dataType = "Long", dataTypeClass = Long.class),
164
-     @ApiImplicitParam(name = "uploadTime", value = "上传:检查表上传时间", dataType = "Date", dataTypeClass = Date.class),
165
-     @ApiImplicitParam(name = "delFlag", value = "删除标志(0代表存在 2代表删除)", dataType = "Integer", dataTypeClass = Integer.class),
166
-     @ApiImplicitParam(name = "createUserId", value = "创建者用户ID", dataType = "Long", dataTypeClass = Long.class),
167
-     })
168
-     @PreAuthorize("@ss.hasPermi('postCheck:postChecked:edit')")
169
-     @Log(title = "岗检表管理", businessType = BusinessType.UPDATE)
170
-     @PutMapping public AjaxResult edit(@RequestBody PostChecked postChecked) {
171
-     return toAjax(postCheckedService.updatePostChecked(postChecked));
172
-     }
173 151
      */
152
+    @ApiOperation("修改岗检表管理")
153
+    @ApiImplicitParams({
154
+            @ApiImplicitParam(name = "id", value = "主键ID", dataType = "Long", dataTypeClass = Long.class),
155
+            @ApiImplicitParam(name = "checkWorkgroupId", value = "检查工作组ID", dataType = "Long", dataTypeClass = Long.class),
156
+            @ApiImplicitParam(name = "checkGroupId", value = "检查小组ID", dataType = "Long", dataTypeClass = Long.class),
157
+            @ApiImplicitParam(name = "checkedDeptId", value = "被检查部门ID", dataType = "Long", dataTypeClass = Long.class),
158
+            @ApiImplicitParam(name = "checkedPostId", value = "被检查岗位ID", dataType = "Long", dataTypeClass = Long.class),
159
+//     @ApiImplicitParam(name = "printUserId", value = "打印人ID", dataType = "Long", dataTypeClass = Long.class),
160
+//     @ApiImplicitParam(name = "printTime", value = "打印时间", dataType = "Date", dataTypeClass = Date.class),
161
+//     @ApiImplicitParam(name = "checkedImg", value = "上传:检查后的检查表照片或PDF,磁盘相对路径", dataType = "String", dataTypeClass = String.class),
162
+//     @ApiImplicitParam(name = "checkedUserName", value = "上传:检查人中文姓名(上传页面设置的值)", dataType = "String", dataTypeClass = String.class),
163
+//     @ApiImplicitParam(name = "checkedTime", value = "上传:检查时间(上传页面设置的值)", dataType = "Date", dataTypeClass = Date.class),
164
+//     @ApiImplicitParam(name = "uploadUserId", value = "上传:检查表上传人ID", dataType = "Long", dataTypeClass = Long.class),
165
+//     @ApiImplicitParam(name = "uploadTime", value = "上传:检查表上传时间", dataType = "Date", dataTypeClass = Date.class),
166
+//     @ApiImplicitParam(name = "delFlag", value = "删除标志(0代表存在 2代表删除)", dataType = "Integer", dataTypeClass = Integer.class),
167
+//     @ApiImplicitParam(name = "createUserId", value = "创建者用户ID", dataType = "Long", dataTypeClass = Long.class),
168
+            @ApiImplicitParam(name = "children", value = "检查表明细数组", dataType = "List", dataTypeClass = PostCheckedItems.class),
169
+    })
170
+    @PreAuthorize("@ss.hasPermi('postCheck:postChecked:edit')")
171
+    @Log(title = "岗检表管理", businessType = BusinessType.UPDATE)
172
+    @PutMapping
173
+    public AjaxResult edit(@RequestBody PostChecked postChecked) {
174
+        return toAjax(postCheckedService.updatePostChecked(postChecked));
175
+    }
174 176
 
175 177
     /**
176 178
      * 删除岗检表管理

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

@@ -181,8 +181,8 @@ public class PostListController extends BaseController {
181 181
     @ApiOperation("2、检查内容:参数是检查项目下拉框")
182 182
     @GetMapping("/contentListByType")
183 183
     @ApiImplicitParams({
184
-            @ApiImplicitParam(name = "deptId", value = "参数->部门ID", dataType = "Integer", dataTypeClass = Integer.class),
185
-            @ApiImplicitParam(name = "postId", value = "参数->岗位ID", dataType = "Integer", dataTypeClass = Integer.class),
184
+            @ApiImplicitParam(name = "deptId", value = "参数->部门ID", dataType = "Long", dataTypeClass = Long.class),
185
+            @ApiImplicitParam(name = "postId", value = "参数->岗位ID", dataType = "Long", dataTypeClass = Long.class),
186 186
             @ApiImplicitParam(name = "type", value = "参数->检查项目(业务职责、党建党风、安全环保……)", dataType = "Integer", dataTypeClass = Integer.class),
187 187
             @ApiImplicitParam(name = "postCheckedContent", value = "返回->检查内容", dataType = "String", dataTypeClass = String.class),
188 188
             @ApiImplicitParam(name = "postCheckedStandard", value = "返回->检查标准", dataType = "String", dataTypeClass = String.class),
@@ -266,7 +266,6 @@ public class PostListController extends BaseController {
266 266
                 item.setPostCheckedStandard("按照要求做好保密教育、不发生重大泄密事件;不发生大规模群访闹访事件,限时办结信访事项->伪代码返回-检查标准");  //检查标准 ->  工作标准(work_standard)  要求2(requirement)
267 267
                 itemsList.add(item);
268 268
 
269
-
270 269
             }
271 270
 
272 271
             // 按类型

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

@@ -199,11 +199,14 @@ public class PostCheckedProblem extends BaseEntity {
199 199
     private Date checkTime;
200 200
 
201 201
 
202
-//    ==================显示字段==============
202
+    //    ==================显示字段==============
203 203
     @ApiModelProperty("整改责任部门名称")
204 204
     @TableField(exist = false)
205 205
     private String checkedDeptName;
206 206
     @ApiModelProperty("整改责任岗位名称")
207 207
     @TableField(exist = false)
208 208
     private String checkedPostName;
209
+    @ApiModelProperty("整改责任人名称")
210
+    @TableField(exist = false)
211
+    private String rectificationResponsibleUserName;
209 212
 }

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

@@ -23,12 +23,20 @@ public class PostPlanJoinChecked implements Serializable {
23 23
 //    @TableField(value = "check_group_id")
24 24
     @Excel(name = "检查工作组ID")
25 25
     private Long checkGroupId;
26
+    @ApiModelProperty("检查工作组名称")
27
+    private String checkGroupName;
26 28
 
27 29
     @ApiModelProperty("检查小组")
28 30
 //    @TableField(value = "check_team_id")
29 31
     @Excel(name = "检查小组")
30 32
     private Long checkTeamId;
31 33
 
34
+    @ApiModelProperty("检查小组名称")
35
+    private String checkTeamName;
36
+
37
+    @ApiModelProperty("检查人员中文名称逗号拼接")
38
+    private String checkedUserNames;
39
+
32 40
     @ApiModelProperty("上传:检查人ID")
33 41
 //    @TableField(value = "checked_user_id")
34 42
     @Excel(name = "检查人ID")
@@ -38,12 +46,17 @@ public class PostPlanJoinChecked implements Serializable {
38 46
 //    @TableField(value = "checked_dept_id")
39 47
     @Excel(name = "被检查部门ID")
40 48
     private Long checkedDeptId;
49
+    @ApiModelProperty("被检查部门名称")
50
+    private String checkedDeptName;
41 51
 
42 52
     @ApiModelProperty("被检查岗位ID")
43 53
 //    @TableField(value = "checked_post_id")
44 54
     @Excel(name = "被检查岗位ID")
45 55
     private Long checkedPostId;
46 56
 
57
+    @ApiModelProperty("被检查岗位名称(多个拼接)")
58
+    private String checkedPostNames;
59
+
47 60
     @ApiModelProperty("岗检状态:1-未检;2-已检;")
48 61
 //    @TableField(value = "status")
49 62
     @Excel(name = "岗检状态")

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

@@ -34,12 +34,12 @@ public class PostPlanJoinProblem implements Serializable {
34 34
     @Excel(name = "检查小组")
35 35
     private Long checkTeamId;
36 36
 
37
-    @ApiModelProperty("检查人员中文名称逗号拼接")
38
-    private String checkedUserNames;
39
-
40 37
     @ApiModelProperty("检查小组名称")
41 38
     private String checkTeamName;
42 39
 
40
+    @ApiModelProperty("检查人员中文名称逗号拼接")
41
+    private String checkedUserNames;
42
+
43 43
     @ApiModelProperty("被检查部门ID")
44 44
 //    @TableField(value = "checked_dept_id")
45 45
     @Excel(name = "被检查部门ID")

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

@@ -107,6 +107,7 @@ public class PostCheckedServiceImpl extends ServiceImpl<PostCheckedMapper, PostC
107 107
         if (row > 0) {
108 108
             for (PostCheckedItems child : children) {
109 109
                 child.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
110
+                child.setPostCheckedId(postChecked.getId());
110 111
                 child.setCreateDefault();
111 112
             }
112 113
             postCheckedItemsService.saveBatch(children);
@@ -147,6 +148,7 @@ public class PostCheckedServiceImpl extends ServiceImpl<PostCheckedMapper, PostC
147 148
             //插入明细
148 149
             for (PostCheckedItems child : children) {
149 150
                 child.setId(Long.parseLong(IdWorker.getIdStr().substring(4)));
151
+                child.setPostCheckedId(postChecked.getId());
150 152
                 child.setCreateDefault();
151 153
             }
152 154
             postCheckedItemsService.saveBatch(children);

+ 1 - 0
ruoyi-postcheck/src/main/resources/mapper/postCheck/PostListMapper.xml

@@ -265,6 +265,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
265 265
 
266 266
     <select id="contentListByType" resultType="PostCheckedItems">
267 267
         SELECT
268
+            t2.id,
268 269
             t2.type,
269 270
             t2.level_one  as levelOne,
270 271
             t2.level_two as levelTwo,

+ 25 - 0
ruoyi-postcheck/src/main/resources/mapper/postCheck/PostPlanMapper.xml

@@ -199,6 +199,7 @@
199 199
 
200 200
     <!--从岗检计划中查询,岗检记录上传的列表-->
201 201
     <select id="selectPostPlanJoinCheckedList" parameterType="PostPlanJoinChecked" resultType="PostPlanJoinChecked">
202
+       <!--
202 203
         SELECT
203 204
             t1.check_group_id AS checkGroupId,
204 205
             t1.check_team_id AS checkTeamId,
@@ -211,6 +212,30 @@
211 212
         INNER JOIN post_plan_info t2 ON t2."post_plan_id"  = t1.id
212 213
         GROUP BY t2.checked_dept_id
213 214
         ORDER BY t1.start_time, t1.create_time, t2.create_time, t2.id
215
+        -->
216
+        SELECT
217
+            t1.check_group_id AS checkGroupId,
218
+            t1.check_team_id AS checkTeamId,
219
+            t2.id AS planInfoId,
220
+            t2.checked_user_id AS checkedUserId,
221
+            t2.checked_dept_id AS checkedDeptId,
222
+            t2.checked_post_id AS checkedPostId,
223
+            t2.status AS status,
224
+            pt1.name AS checkGroupName,
225
+            pt2.name AS checkTeamName,
226
+            sd.dept_name AS checkedDeptName,
227
+            GROUP_CONCAT (DISTINCT sp.post_name) AS checkedPostNames,
228
+            GROUP_CONCAT (DISTINCT su."nick_name") AS checkedUserNames
229
+        FROM post_plan t1
230
+        INNER JOIN post_plan_info t2 ON t2."post_plan_id"  = t1.id
231
+        LEFT JOIN post_plan_check_user t3 ON t3.post_plan_id  = t1.id
232
+        LEFT JOIN "public"."sys_users" su ON su."user_id" = t3."checked_user_id"
233
+        LEFT JOIN post_team pt1 ON pt1.id = t1.check_group_id
234
+        LEFT JOIN post_team pt2 ON pt2.id = t1.check_team_id
235
+        LEFT JOIN sys_dept sd ON sd.dept_id = t2.checked_dept_id
236
+        LEFT JOIN sys_post sp ON sp.post_id = t2.checked_post_id
237
+        GROUP BY t2.checked_dept_id
238
+        ORDER BY t1.start_time, t1.create_time, t2.create_time, t2.id
214 239
     </select>
215 240
 
216 241
     <!--从岗检计划中查询,岗检问题录入的列表-->

+ 26 - 1
ruoyi-postcheck/src/main/resources/mapper/postCheck/PostProgrammeMapper.xml

@@ -32,7 +32,32 @@
32 32
     </resultMap>
33 33
 
34 34
     <sql id="selectPostProgrammeVo">
35
-        select id, name, submit_date, status_hr, date_hr, reason_hr, status_icfa, date_icfa, reason_icfa, remark, del_flag, create_time, create_by, update_time, update_by, create_user_id, disk_path, dept_id, dept_name, status, status_time, status_user_id, status_icfa_user_id, status_hr_user_id from post_programme
35
+        select
36
+            t1.id,
37
+            t1.name,
38
+            t1.submit_date,
39
+            t1.status_hr,
40
+            t1.date_hr,
41
+            t1.reason_hr,
42
+            t1.status_icfa,
43
+            t1.date_icfa,
44
+            t1.reason_icfa,
45
+            t1.remark,
46
+            t1.del_flag,
47
+            t1.create_time,
48
+            t1.create_by,
49
+            t1.update_time,
50
+            t1.update_by,
51
+            t1.create_user_id,
52
+            t1.disk_path,
53
+            t1.dept_id,
54
+            t1.dept_name,
55
+            t1.status,
56
+            t1.status_time,
57
+            t1.status_user_id,
58
+            t1.status_icfa_user_id,
59
+            t1.status_hr_user_id
60
+        from post_programme t1
36 61
     </sql>
37 62
 
38 63
     <select id="selectPostProgrammeList" parameterType="PostProgramme" resultMap="PostProgrammeResult">