|
@@ -23,7 +23,7 @@
|
|
join t_f_flow_approve tffa on tffa.flow_id = tfcfe.flow_id
|
|
join t_f_flow_approve tffa on tffa.flow_id = tfcfe.flow_id
|
|
where tbqpa.service_id = #{serviceId}
|
|
where tbqpa.service_id = #{serviceId}
|
|
and tbs.status <![CDATA[ <> ]]> 'CANCEL'
|
|
and tbs.status <![CDATA[ <> ]]> 'CANCEL'
|
|
- and tffa.status <![CDATA[ <> ]]> 'END'
|
|
|
|
|
|
+ and tffa.status = 'FINISH'
|
|
and tbqpa.Influence_degree is not null
|
|
and tbqpa.Influence_degree is not null
|
|
group by su.real_name,tbc.lead_id) t
|
|
group by su.real_name,tbc.lead_id) t
|
|
order by t.sum desc
|
|
order by t.sum desc
|
|
@@ -54,7 +54,7 @@
|
|
join t_f_flow_approve tffa on tffa.flow_id = tfcfe.flow_id
|
|
join t_f_flow_approve tffa on tffa.flow_id = tfcfe.flow_id
|
|
where tbqpa.service_id = #{serviceId}
|
|
where tbqpa.service_id = #{serviceId}
|
|
and tbs.status <![CDATA[ <> ]]> 'CANCEL'
|
|
and tbs.status <![CDATA[ <> ]]> 'CANCEL'
|
|
- and tffa.status <![CDATA[ <> ]]> 'END'
|
|
|
|
|
|
+ and tffa.status = 'FINISH'
|
|
and tbqpa.Influence_degree is not null
|
|
and tbqpa.Influence_degree is not null
|
|
group by su.mobile_number) t
|
|
group by su.mobile_number) t
|
|
left join t_b_user_archives tbua on tbua.mobile_number = t.mobileNumber
|
|
left join t_b_user_archives tbua on tbua.mobile_number = t.mobileNumber
|
|
@@ -73,7 +73,7 @@
|
|
join t_f_flow_approve tffa on tffa.flow_id = tfcfe.flow_id
|
|
join t_f_flow_approve tffa on tffa.flow_id = tfcfe.flow_id
|
|
where tbqpa.service_id = #{serviceId}
|
|
where tbqpa.service_id = #{serviceId}
|
|
and tbs.status <![CDATA[ <> ]]> 'CANCEL'
|
|
and tbs.status <![CDATA[ <> ]]> 'CANCEL'
|
|
- and tffa.status <![CDATA[ <> ]]> 'END'
|
|
|
|
|
|
+ and tffa.status = 'FINISH'
|
|
and tbqpa.reason is not null
|
|
and tbqpa.reason is not null
|
|
group by tbqpa.reason) t order by t.reasonSum desc
|
|
group by tbqpa.reason) t order by t.reasonSum desc
|
|
</select>
|
|
</select>
|