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">