Guo1B0 1 рік тому
батько
коміт
f90231d615

+ 6 - 5
fhKeeper/formulahousekeeper/management-crm/src/main/resources/mapper/ClueMapper.xml

@@ -280,17 +280,18 @@
             and c.create_time BETWEEN #{clue.startTime} and #{clue.endTime}
         </if>
         <if test="clue.clueName != null and clue.clueName != '' ">
-            and c.clue_name = #{clue.clueName}
+            and c.clue_name LIKE CONCAT('%', #{clue.clueName}, '%')
         </if>
         <if test="clue.phone != null and clue.phone != '' ">
-            and  c.phone =  #{clue.phone}
+            and  c.phone LIKE CONCAT('%', #{clue.phone}, '%')
+        </if>
+        <if test="clue.email != null and clue.email != '' ">
+            and  c.email LIKE CONCAT('%', #{clue.email}, '%')
         </if>
+
         <if test="clue.customerLevelId != null and clue.customerLevelId != '' ">
             and  c.customer_level_id =  #{clue.customerLevelId}
         </if>
-        <if test="clue.email != null and clue.email != '' ">
-            and  c.email =  #{clue.email}
-        </if>
         <if test="clue.clueSourceId != null">
             and c.clue_source_id = #{clue.clueSourceId}
         </if>