|
@@ -312,8 +312,8 @@
|
|
|
|
|
|
<select id="getPlanRealTimeProgressList" resultType="java.util.Map">
|
|
<select id="getPlanRealTimeProgressList" resultType="java.util.Map">
|
|
select b.id as planId,(Case when b.plan_type=0 then b.product_scheduling_num else b.task_change_notice_num end) as taskName,
|
|
select b.id as planId,(Case when b.plan_type=0 then b.product_scheduling_num else b.task_change_notice_num end) as taskName,
|
|
- b.foreman_name as userName,SUM(d.work_time) as planWorkTime,SUM(d.job_of_money) as planCost,
|
|
|
|
- SUM((select SUM(working_time) from report where user_procedure_team_id = d.id)) as nowWorkTime,
|
|
|
|
|
|
+ b.foreman_name as userName,IFNULL(SUM(d.work_time),0) as planWorkTime,SUM(d.job_of_money) as planCost,
|
|
|
|
+ IFNULL(SUM((select SUM(working_time) from report where user_procedure_team_id = d.id)),0) as nowWorkTime,
|
|
SUM((select SUM(cost) from report where user_procedure_team_id = d.id)) as nowCost
|
|
SUM((select SUM(cost) from report where user_procedure_team_id = d.id)) as nowCost
|
|
from plan_procedure_total a
|
|
from plan_procedure_total a
|
|
left join plan b on a.plan_id=b.id
|
|
left join plan b on a.plan_id=b.id
|