|
|
@@ -1280,13 +1280,14 @@
|
|
|
|
|
|
<select id="selectPrivateOrganizationCustomerList" resultType="com.goafanti.customer.bo.CustomerListOut">
|
|
|
select a.id uid,a.aid,a.nickname name,a.society_tag societyTag,a.`level`,b.name aName,dg1.name as province,dg2.name as city,
|
|
|
- a.guidance, dg3.name as area,d.intended_project intendedProject,d.business_scope businessScope,d.org_code orgCode,
|
|
|
+ a.guidance, dg3.name as area,d.intended_project intendedProject,d.business_scope businessScope,d.org_code orgCode,ic.name industry,
|
|
|
date_format(um.last_sign_time,'%Y-%m-%d %H:%i:%S') lastSignTime,
|
|
|
date_format(a.transfer_time,'%Y-%m-%d %H:%i:%S') as transferTime,
|
|
|
date_format(a.create_time,'%Y-%m-%d %H:%i:%S') as createTime,
|
|
|
date_format(um.last_follow_time,'%Y-%m-%d %H:%i:%S') lastFollowTime,
|
|
|
if(a.transfer_time < um.last_follow_time,um.last_follow_time,a.transfer_time) as orderTime
|
|
|
from user a left join admin b on a.aid=b.id left join organization_identity d on a.id = d.uid
|
|
|
+ left join industry_category ic on d.industry=ic.id
|
|
|
left join district_glossory dg1 on d.location_province = dg1.id
|
|
|
left join district_glossory dg2 on d.location_city = dg2.id
|
|
|
left join district_glossory dg3 on d.location_area = dg3.id
|