Selaa lähdekoodia

推荐客户家迷糊查询

dingxin 5 vuotta sitten
vanhempi
commit
9c25f99876
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3
    3
      src/main/resources/mapper/TaRecommendCustomerMapper.xml

+ 3
- 3
src/main/resources/mapper/TaRecommendCustomerMapper.xml Näytä tiedosto

@@ -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}