|
|
@@ -1325,7 +1325,8 @@
|
|
|
from (select a.task_receiver aid,sum(commodity_quantity) projectCount, sum(if(a.project_status=1,commodity_quantity,0)) inProgress,
|
|
|
sum(if(a.project_status in (19,27) ,commodity_quantity,0)) complete, sum(if(a.project_status=0,commodity_quantity,0)) notStarted,
|
|
|
sum(if(a.project_status in (2,3,29),commodity_quantity,0)) stop
|
|
|
- from t_order_task a where a.split_status in (0,2) and a.task_receiver = #{aid} group by a.task_receiver)x
|
|
|
+ from t_order_task a left join t_order_new b on a.order_no =b.order_no
|
|
|
+ where b.delete_sign in (0,2,3) and a.split_status in (0,2) and a.task_receiver = #{aid} group by a.task_receiver)x
|
|
|
left join (select aid,sum(if(a.`type` in (0,1,2),1,0)) countPublicRelease,sum(if(a.`type` in (3),1,0)) countAssist
|
|
|
from public_release a left join public_release_details b on a.id=b.prid where aid= #{aid})y on x.aid=y.aid
|
|
|
left join (SELECT b.aid,count(DISTINCT a.order_no) countChange from new_order_change a
|