Commit ee83b6ba authored by zhaobiyan's avatar zhaobiyan

客户会员筛选字段

parent 35fb74da
...@@ -49,7 +49,11 @@ ...@@ -49,7 +49,11 @@
concat( c.area_code, c.phone_new, '' ) AS default_contact_phone, concat( c.area_code, c.phone_new, '' ) AS default_contact_phone,
c.email AS default_email, c.email AS default_email,
agent.NAME AS agent_customer_name, agent.NAME AS agent_customer_name,
su.nickname AS customer_service_name su.nickname AS customer_service_name,
mu.code as member_code,
mu.nickname as member_nickname,
mu.mobile as member_mobile,
mu.area_code as member_area_code
FROM FROM
ecw_indirect_customer a ecw_indirect_customer a
LEFT JOIN ecw_indirect_customer_contacts c ON a.id = c.customer_id LEFT JOIN ecw_indirect_customer_contacts c ON a.id = c.customer_id
...@@ -154,16 +158,16 @@ ...@@ -154,16 +158,16 @@
</if> </if>
<!-- 会员信息 --> <!-- 会员信息 -->
<if test="query.memberCode != null and query.memberCode != '' "> <if test="query.memberCode != null and query.memberCode != '' ">
AND mu.code like concat('%',#{query.memberCode},'%') AND contact.member_code like concat('%',#{query.memberCode},'%')
</if> </if>
<if test="query.memberName != null and query.memberName != '' "> <if test="query.memberName != null and query.memberName != '' ">
AND mu.nickname like concat('%',#{query.memberName},'%') AND contact.member_nickname like concat('%',#{query.memberName},'%')
</if> </if>
<if test="query.memberMobile != null and query.memberMobile != '' "> <if test="query.memberMobile != null and query.memberMobile != '' ">
AND mu.mobile like concat('%',#{query.memberMobile},'%') AND contact.member_mobile like concat('%',#{query.memberMobile},'%')
</if> </if>
<if test="query.memberAreaCode != null and query.memberAreaCode != '' "> <if test="query.memberAreaCode != null and query.memberAreaCode != '' ">
AND mu.area_code like concat('%',#{query.memberAreaCode},'%') AND contact.member_area_code like concat('%',#{query.memberAreaCode},'%')
</if> </if>
</sql> </sql>
<select id="getOpenSeaCustomerPageReqCount" resultType="java.lang.Long" <select id="getOpenSeaCustomerPageReqCount" resultType="java.lang.Long"
...@@ -178,7 +182,11 @@ ...@@ -178,7 +182,11 @@
concat( c.area_code, c.phone_new, '' ) AS default_contact_phone, concat( c.area_code, c.phone_new, '' ) AS default_contact_phone,
c.email AS default_email, c.email AS default_email,
agent.NAME AS agent_customer_name, agent.NAME AS agent_customer_name,
su.nickname AS customer_service_name su.nickname AS customer_service_name,
mu.code as member_code,
mu.nickname as member_nickname,
mu.mobile as member_mobile,
mu.area_code as member_area_code
FROM FROM
ecw_indirect_customer a ecw_indirect_customer a
LEFT JOIN ecw_indirect_customer_contacts c ON a.id = c.customer_id LEFT JOIN ecw_indirect_customer_contacts c ON a.id = c.customer_id
...@@ -206,7 +214,11 @@ ...@@ -206,7 +214,11 @@
concat( c.area_code, c.phone_new, '' ) AS default_contact_phone, concat( c.area_code, c.phone_new, '' ) AS default_contact_phone,
c.email AS default_email, c.email AS default_email,
agent.NAME AS agent_customer_name, agent.NAME AS agent_customer_name,
su.nickname AS customer_service_name su.nickname AS customer_service_name,
mu.code as member_code,
mu.nickname as member_nickname,
mu.mobile as member_mobile,
mu.area_code as member_area_code
FROM FROM
ecw_indirect_customer a ecw_indirect_customer a
LEFT JOIN ecw_indirect_customer_contacts c ON a.id = c.customer_id LEFT JOIN ecw_indirect_customer_contacts c ON a.id = c.customer_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment