csg6 10 months ago
parent
commit
a9b3229279

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

@@ -87,7 +87,7 @@ public class PostCheckedProblem extends BaseEntity {
87
     @ApiModelProperty("问题等级")
87
     @ApiModelProperty("问题等级")
88
     @TableField(value = "problem_level")
88
     @TableField(value = "problem_level")
89
     @Excel(name = "问题等级", readConverterExp = "1一般、2 重要")
89
     @Excel(name = "问题等级", readConverterExp = "1一般、2 重要")
90
-    private String problemLevel;
90
+    private Integer problemLevel;
91
 
91
 
92
     @ApiModelProperty("职责类别:1-业务职责;2-党建及党风廉政;3-安全环保职责;4-合规保密职;")
92
     @ApiModelProperty("职责类别:1-业务职责;2-党建及党风廉政;3-安全环保职责;4-合规保密职;")
93
     @TableField(value = "duty_type")
93
     @TableField(value = "duty_type")
@@ -102,7 +102,7 @@ public class PostCheckedProblem extends BaseEntity {
102
     @ApiModelProperty("问题类别")
102
     @ApiModelProperty("问题类别")
103
     @TableField(value = "problem_category")
103
     @TableField(value = "problem_category")
104
     @Excel(name = "问题类别", readConverterExp = "职责权限问题、工作内容问题、工作标准问题、考核奖励问题、任职资格问题、其他")
104
     @Excel(name = "问题类别", readConverterExp = "职责权限问题、工作内容问题、工作标准问题、考核奖励问题、任职资格问题、其他")
105
-    private String problemCategory;
105
+    private Integer problemCategory;
106
 
106
 
107
     @ApiModelProperty("问题描述")
107
     @ApiModelProperty("问题描述")
108
     @TableField(value = "description")
108
     @TableField(value = "description")

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

@@ -1179,9 +1179,9 @@ public class PostCheckedProblemServiceImpl extends ServiceImpl<PostCheckedProble
1179
         );
1179
         );
1180
         List<ProblemAttributeCategoryView> list = new ArrayList<>();
1180
         List<ProblemAttributeCategoryView> list = new ArrayList<>();
1181
         if (postCheckedProblems != null && postCheckedProblems.size() > 0) {
1181
         if (postCheckedProblems != null && postCheckedProblems.size() > 0) {
1182
-            Map<String, List<PostCheckedProblem>> collect = postCheckedProblems.stream().collect(Collectors.groupingBy(PostCheckedProblem::getProblemCategory));
1182
+            Map<Integer, List<PostCheckedProblem>> collect = postCheckedProblems.stream().collect(Collectors.groupingBy(PostCheckedProblem::getProblemCategory));
1183
 //           问题类别(职责权限问题、工作内容问题、工作标准问题、考核奖励问题、任职资格问题、其他)
1183
 //           问题类别(职责权限问题、工作内容问题、工作标准问题、考核奖励问题、任职资格问题、其他)
1184
-            for (Map.Entry<String, List<PostCheckedProblem>> stringListEntry : collect.entrySet()) {
1184
+            for (Map.Entry<Integer, List<PostCheckedProblem>> stringListEntry : collect.entrySet()) {
1185
                 List<PostCheckedProblem> value = stringListEntry.getValue();
1185
                 List<PostCheckedProblem> value = stringListEntry.getValue();
1186
                 if (value != null && value.size() > 0) {
1186
                 if (value != null && value.size() > 0) {
1187
 
1187
 

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

@@ -120,7 +120,7 @@
120
             <if test="deptApproveTime != null "> and t1.dept_approve_time = #{deptApproveTime}</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>
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>
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>
123
+            <if test="problemLevel != null"> and t1.problem_level = #{problemLevel}</if>
124
             <if test="problemAttribute != null"> and t1.problem_attribute = #{problemAttribute}</if>
124
             <if test="problemAttribute != null"> and t1.problem_attribute = #{problemAttribute}</if>
125
             <if test="problemCategory != null"> and t1.problem_category = #{problemCategory}</if>
125
             <if test="problemCategory != null"> and t1.problem_category = #{problemCategory}</if>
126
             <if test="description != null  and description != ''"> and t1.description = #{description}</if>
126
             <if test="description != null  and description != ''"> and t1.description = #{description}</if>
@@ -158,7 +158,7 @@
158
 
158
 
159
     <select id="selectPostCheckedProblemById" parameterType="Long" resultMap="PostCheckedProblemResult">
159
     <select id="selectPostCheckedProblemById" parameterType="Long" resultMap="PostCheckedProblemResult">
160
         <include refid="selectPostCheckedProblemVo"/>
160
         <include refid="selectPostCheckedProblemVo"/>
161
-        where id = #{id}
161
+        where t1.id = #{id}
162
     </select>
162
     </select>
163
 
163
 
164
     <insert id="insertPostCheckedProblem" parameterType="PostCheckedProblem">
164
     <insert id="insertPostCheckedProblem" parameterType="PostCheckedProblem">
@@ -174,7 +174,7 @@
174
             <if test="deptApproveTime != null">dept_approve_time,</if>
174
             <if test="deptApproveTime != null">dept_approve_time,</if>
175
             <if test="specialityDepartmentReviewerId != null">speciality_department_reviewer_id,</if>
175
             <if test="specialityDepartmentReviewerId != null">speciality_department_reviewer_id,</if>
176
             <if test="specialityDepartmentReviewTime != null">speciality_department_review_time,</if>
176
             <if test="specialityDepartmentReviewTime != null">speciality_department_review_time,</if>
177
-            <if test="problemLevel != null and problemLevel != ''">problem_level,</if>
177
+            <if test="problemLevel != null">problem_level,</if>
178
             <if test="problemAttribute != null">problem_attribute,</if>
178
             <if test="problemAttribute != null">problem_attribute,</if>
179
             <if test="problemCategory != null">problem_category,</if>
179
             <if test="problemCategory != null">problem_category,</if>
180
             <if test="description != null">description,</if>
180
             <if test="description != null">description,</if>
@@ -213,9 +213,9 @@
213
             <if test="deptApproveTime != null">#{deptApproveTime},</if>
213
             <if test="deptApproveTime != null">#{deptApproveTime},</if>
214
             <if test="specialityDepartmentReviewerId != null">#{specialityDepartmentReviewerId},</if>
214
             <if test="specialityDepartmentReviewerId != null">#{specialityDepartmentReviewerId},</if>
215
             <if test="specialityDepartmentReviewTime != null">#{specialityDepartmentReviewTime},</if>
215
             <if test="specialityDepartmentReviewTime != null">#{specialityDepartmentReviewTime},</if>
216
-            <if test="problemLevel != null and problemLevel != ''">#{problemLevel},</if>
216
+            <if test="problemLevel != null">#{problemLevel},</if>
217
             <if test="problemAttribute != null">#{problemAttribute},</if>
217
             <if test="problemAttribute != null">#{problemAttribute},</if>
218
-            <if test="problemCategory != null and problemCategory != ''">#{problemCategory},</if>
218
+            <if test="problemCategory != null">#{problemCategory},</if>
219
             <if test="description != null">#{description},</if>
219
             <if test="description != null">#{description},</if>
220
             <if test="problemCause != null">#{problemCause},</if>
220
             <if test="problemCause != null">#{problemCause},</if>
221
             <if test="isImmediatelyCorrected != null">#{isImmediatelyCorrected},</if>
221
             <if test="isImmediatelyCorrected != null">#{isImmediatelyCorrected},</if>
@@ -255,7 +255,7 @@
255
             <if test="deptApproveTime != null">dept_approve_time = #{deptApproveTime},</if>
255
             <if test="deptApproveTime != null">dept_approve_time = #{deptApproveTime},</if>
256
             <if test="specialityDepartmentReviewerId != null">speciality_department_reviewer_id = #{specialityDepartmentReviewerId},</if>
256
             <if test="specialityDepartmentReviewerId != null">speciality_department_reviewer_id = #{specialityDepartmentReviewerId},</if>
257
             <if test="specialityDepartmentReviewTime != null">speciality_department_review_time = #{specialityDepartmentReviewTime},</if>
257
             <if test="specialityDepartmentReviewTime != null">speciality_department_review_time = #{specialityDepartmentReviewTime},</if>
258
-            <if test="problemLevel != null and problemLevel != ''">problem_level = #{problemLevel},</if>
258
+            <if test="problemLevel != null">problem_level = #{problemLevel},</if>
259
             <if test="problemAttribute != null">problem_attribute = #{problemAttribute},</if>
259
             <if test="problemAttribute != null">problem_attribute = #{problemAttribute},</if>
260
             <if test="problemCategory != null">problem_category = #{problemCategory},</if>
260
             <if test="problemCategory != null">problem_category = #{problemCategory},</if>
261
             <if test="description != null">description = #{description},</if>
261
             <if test="description != null">description = #{description},</if>