huangzhiguo 1 年之前
父節點
當前提交
e5d900cabc
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/resources/mapper/user/CmClubRemarksDao.xml

+ 2 - 2
src/main/resources/mapper/user/CmClubRemarksDao.xml

@@ -103,7 +103,7 @@
             <if test="serviceProviderId != null">
                 and ccr.serviceProviderId = #{serviceProviderId}
             </if>
-            <if test="consult != null">
+            <if test="consult != null and consult != '' ">
                 and (ccr.consultType LIKE concat('%,',#{consult},'%') OR ccr.consultType LIKE concat('',#{consult},',%') OR ccr.consultType =  #{consult})
             </if>
             <if test="startTime != '' and startTime != null">
@@ -165,7 +165,7 @@
             <if test="serviceProviderId != null">
                 and ccr.serviceProviderId = #{serviceProviderId}
             </if>
-            <if test="consult != null">
+            <if test="consult != null and consult != '' ">
                 and (ccr.consultType LIKE concat('%,',#{consult},'%') OR ccr.consultType LIKE concat('',#{consult},',%') OR ccr.consultType =  #{consult})
             </if>
             <if test="startTime != '' and startTime != null">