huangzhiguo vor 1 Jahr
Ursprung
Commit
e5d900cabc
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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">