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