浏览代码

线索更改

Guo1B0 1 年之前
父节点
当前提交
f90231d615
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      fhKeeper/formulahousekeeper/management-crm/src/main/resources/mapper/ClueMapper.xml

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