瀏覽代碼

推荐客户家迷糊查询

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

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

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