zouxuan 1 éve
szülő
commit
66c9790db5

+ 3 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/page/SysSuggestionQueryInfo.java

@@ -24,6 +24,9 @@ public class SysSuggestionQueryInfo extends QueryInfo {
     @ApiModelProperty(value = "处理状态")
     private Boolean handleFlag;
 
+    @ApiModelProperty(value = "是否处理")
+    private Boolean disposeFlag;
+
     @ApiModelProperty(value = "是否需要反馈")
     private Boolean feedbackFlag;
 

+ 10 - 2
mec-biz/src/main/resources/config/mybatis/SysSuggestionMapper.xml

@@ -86,7 +86,7 @@
             <if test="type!=null">
                 AND ss.type_ = #{type, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
             </if>
-            <if test="clientType!=null">
+            <if test="clientType != null and clientType != ''">
                 AND ss.client_type_ = #{clientType}
             </if>
             <if test="startTime!=null and startTime!=''">
@@ -95,7 +95,7 @@
             <if test="endTime!=null and endTime!=''">
                 AND DATE_FORMAT(ss.create_time_,'%Y-%m-%d') &lt;= #{endTime}
             </if>
-            <if test="search!=null and search!=''">
+            <if test="search != null and search != ''">
                 AND (su.real_name_ LIKE CONCAT('%', #{search}, '%') OR su.username_ LIKE CONCAT('%', #{search}, '%') OR ss.user_id_=#{search} OR su.phone_=#{search})
             </if>
             <if test="operatorSearch != null and operatorSearch != ''">
@@ -104,6 +104,14 @@
             <if test="suggestionType != null">
                 AND ss.suggestion_type_ = #{suggestionType}
             </if>
+            <if test="disposeFlag != null">
+                <if test="disposeFlag == false">
+                    AND ss.operator_id_ IS NULL
+                </if>
+                <if test="disposeFlag == true">
+                    AND ss.operator_id_ IS NOT NULL
+                </if>
+            </if>
             <if test="handleFlag != null">
                 AND ss.handle_flag_ = #{handleFlag}
             </if>