|
@@ -685,12 +685,14 @@
|
|
|
select a.id as followId, a.aid,date_format( a.create_time,'%Y-%m-%d %H:%i:%S') as followTime, a.contact_type as contactType,
|
|
select a.id as followId, a.aid,date_format( a.create_time,'%Y-%m-%d %H:%i:%S') as followTime, a.contact_type as contactType,
|
|
|
a.result,a.guidance, b.nickname,b.identify_name as identifyName, c.name as contacts, c.mobile as contactMobile,pr.supplement ,pr.id prid,
|
|
a.result,a.guidance, b.nickname,b.identify_name as identifyName, c.name as contacts, c.mobile as contactMobile,pr.supplement ,pr.id prid,
|
|
|
d.name as adminName,date_format(a.guidance_time,'%Y-%m-%d %H:%i:%S') as guidanceTime,a.guidance_name guidanceName,
|
|
d.name as adminName,date_format(a.guidance_time,'%Y-%m-%d %H:%i:%S') as guidanceTime,a.guidance_name guidanceName,
|
|
|
|
|
+ a.type,a.pid,br.bname projectName,
|
|
|
pr.plan ,pr.next_plan nextPlan ,pr.expected_effect expectedEffect
|
|
pr.plan ,pr.next_plan nextPlan ,pr.expected_effect expectedEffect
|
|
|
<if test="businessProjectId != null and businessProjectId != ''"><!-- 客户甲项目A所有的跟进记录 -->
|
|
<if test="businessProjectId != null and businessProjectId != ''"><!-- 客户甲项目A所有的跟进记录 -->
|
|
|
,e.id as ufbId,e.follow_situation as followSituation,e.customer_status as customerStatus
|
|
,e.id as ufbId,e.follow_situation as followSituation,e.customer_status as customerStatus
|
|
|
</if>
|
|
</if>
|
|
|
from user_follow a left join user b on a.uid = b.id left join organization_contact_book c on a.ocb_id = c.id
|
|
from user_follow a left join user b on a.uid = b.id left join organization_contact_book c on a.ocb_id = c.id
|
|
|
left join admin d on a.aid = d.id left join public_release_details prd on a.id =prd.ufid
|
|
left join admin d on a.aid = d.id left join public_release_details prd on a.id =prd.ufid
|
|
|
|
|
+ left join business_project br on a.pid=br.id
|
|
|
left join public_release pr on prd.prid=pr.id
|
|
left join public_release pr on prd.prid=pr.id
|
|
|
<if test="businessProjectId != null and businessProjectId != ''"><!-- 客户甲项目A所有的跟进记录 -->
|
|
<if test="businessProjectId != null and businessProjectId != ''"><!-- 客户甲项目A所有的跟进记录 -->
|
|
|
inner join user_follow_business e on a.id = e.follow_id
|
|
inner join user_follow_business e on a.id = e.follow_id
|