|
@@ -302,13 +302,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<select id="selectCrmMyCustomerListQuery" resultType="com.fs.crm.vo.CrmMyCustomerListQueryVO">
|
|
<select id="selectCrmMyCustomerListQuery" resultType="com.fs.crm.vo.CrmMyCustomerListQueryVO">
|
|
select cu.*,c.create_time as customer_create_time,c.visit_status,c.remark,c.register_desc,c.register_submit_time,
|
|
select cu.*,c.create_time as customer_create_time,c.visit_status,c.remark,c.register_desc,c.register_submit_time,
|
|
c.customer_code,c.customer_name,c.mobile,c.sex,c.weixin,c.address,c.is_receive,c.customer_type,c.source,
|
|
c.customer_code,c.customer_name,c.mobile,c.sex,c.weixin,c.address,c.is_receive,c.customer_type,c.source,
|
|
- c.tags,c.receive_time
|
|
|
|
|
|
+ c.tags,c.receive_time,c.customer_level
|
|
from crm_customer_user cu
|
|
from crm_customer_user cu
|
|
inner join crm_customer c on c.customer_user_id=cu.customer_user_id
|
|
inner join crm_customer c on c.customer_user_id=cu.customer_user_id
|
|
where cu.is_pool=0 and c.is_del = 0
|
|
where cu.is_pool=0 and c.is_del = 0
|
|
<if test="maps.companyId != null">
|
|
<if test="maps.companyId != null">
|
|
and cu.company_id =#{maps.companyId}
|
|
and cu.company_id =#{maps.companyId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="maps.customerLevel != null">
|
|
|
|
+ and c.customer_level =#{maps.customerLevel}
|
|
|
|
+ </if>
|
|
<if test="maps.companyUserId != null">
|
|
<if test="maps.companyUserId != null">
|
|
and cu.company_user_id =#{maps.companyUserId}
|
|
and cu.company_user_id =#{maps.companyUserId}
|
|
</if>
|
|
</if>
|
|
@@ -368,7 +371,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<select id="selectCrmMyAssistListQuery" resultType="com.fs.crm.vo.CrmMyCustomerListQueryVO">
|
|
<select id="selectCrmMyAssistListQuery" resultType="com.fs.crm.vo.CrmMyCustomerListQueryVO">
|
|
select cu.*,c.create_time as customer_create_time,c.visit_status,c.remark,c.register_desc,c.register_submit_time,
|
|
select cu.*,c.create_time as customer_create_time,c.visit_status,c.remark,c.register_desc,c.register_submit_time,
|
|
c.customer_code,c.customer_name,c.mobile,c.sex,c.weixin,c.address,c.is_receive,c.customer_type,c.source,
|
|
c.customer_code,c.customer_name,c.mobile,c.sex,c.weixin,c.address,c.is_receive,c.customer_type,c.source,
|
|
- c.tags,c.receive_time
|
|
|
|
|
|
+ c.tags,c.receive_time, c.customer_level
|
|
from crm_customer_assist ca
|
|
from crm_customer_assist ca
|
|
LEFT JOIN crm_customer c on c.customer_id=ca.customer_id
|
|
LEFT JOIN crm_customer c on c.customer_id=ca.customer_id
|
|
LEFT JOIN crm_customer_user cu on c.customer_user_id=cu.customer_user_id
|
|
LEFT JOIN crm_customer_user cu on c.customer_user_id=cu.customer_user_id
|
|
@@ -379,6 +382,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="maps.companyUserId != null">
|
|
<if test="maps.companyUserId != null">
|
|
and ca.company_user_id =#{maps.companyUserId}
|
|
and ca.company_user_id =#{maps.companyUserId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="maps.customerLevel != null">
|
|
|
|
+ and c.customer_level =#{maps.customerLevel}
|
|
|
|
+ </if>
|
|
<if test="maps.address != null and maps.address != ''">
|
|
<if test="maps.address != null and maps.address != ''">
|
|
and c.address like CONCAT('%',#{maps.address},'%')
|
|
and c.address like CONCAT('%',#{maps.address},'%')
|
|
</if>
|
|
</if>
|