瀏覽代碼

推荐客户家迷糊查询

dingxin 5 年之前
父節點
當前提交
9c25f99876
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      src/main/resources/mapper/TaRecommendCustomerMapper.xml

+ 3
- 3
src/main/resources/mapper/TaRecommendCustomerMapper.xml 查看文件

@@ -50,16 +50,16 @@ FROM
50 50
             and a.building_id = #{building}
51 51
         </if>
52 52
         <if test="name != null and name !=''">
53
-            and a.name = #{name}
53
+            and a.name like CONCAT('%',#{name}, '%')
54 54
         </if>
55 55
         <if test="tel != null and tel!=''">
56
-            and a.phone = #{tel}
56
+            and a.phone like CONCAT('%',#{tel}, '%')
57 57
         </if>
58 58
         <if test="consultName != null and consultName !=''">
59 59
             and c.nickname like CONCAT('%',#{consultName}, '%')
60 60
         </if>
61 61
         <if test="consultTel != null and consultTel !=''">
62
-            and c.phone = #{consultTel}
62
+            and c.phone like CONCAT('%',#{consultTel}, '%')
63 63
         </if>
64 64
         <if test="entryType != null and entryType !=''">
65 65
             and a.entry_type = #{entryType}