|
|
@@ -33,8 +33,8 @@ |
|
|
|
select a.customer_id,a.name,a.type,a.industry_code,a.longitude,a.latitude,a.enterprise_tax_number,a.business_license,a.business_contact,a.phone_number,a.address,a.province_code,a.city_code,a.count_code,b.*,c.service_provider_id
|
|
|
|
from tb_customer_audit as b,tb_customer_company as a left join r_customer_service_provider_enterprise as c on a.customer_id = c.enterprise_id
|
|
|
|
where a.customer_id = b.user_id and a.sys_deleted = 0 and a.type = 1 and b.vip_level = 2
|
|
|
|
<if test="name != null"> and a.business_contact like concat('%', #{businessContact}, '%')</if>
|
|
|
|
<if test="phone != null"> and a.phone_number like concat('%', #{phoneNumber}, '%')</if>
|
|
|
|
<if test="businessContact != null"> and a.business_contact like concat('%', #{businessContact}, '%')</if>
|
|
|
|
<if test="phoneNumber != null"> and a.phone_number like concat('%', #{phoneNumber}, '%')</if>
|
|
|
|
<if test="follow != 0"> and b.follow = #{follow} </if>
|
|
|
|
<if test="resource != 0"> and b.resource = #{resource} </if>
|
|
|
|
<if test="push != 0"> and b.push = #{push} </if>
|
|
|
|