|
|
@@ -2243,12 +2243,16 @@ inner join(
|
|
|
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,
|
|
|
- um.channel_type type
|
|
|
+ um.channel_type type,
|
|
|
+ ua.enterprise_count as enterpriseCount,
|
|
|
+ ua.channel_indicators channelIndicators,
|
|
|
+ ua.interview_distribution as interviewDistribution
|
|
|
from user a left join admin b on a.aid=b.id left join organization_identity d on a.id = d.uid
|
|
|
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
|
|
|
left join user_mid um on um.aid=a.aid and um.uid=a.id
|
|
|
+ left join user_archives ua on ua.uid=a.id
|
|
|
where a.type= 1 and a.source in(1,2,3) and a.new_channel=1
|
|
|
<if test=" shareType !=null ">
|
|
|
and a.share_type = #{shareType}
|