Min 1 rok pred
rodič
commit
958971ea55

+ 2 - 2
fhKeeper/formulahousekeeper/management-workshop/src/main/resources/mapper/ReportMapper.xml

@@ -312,8 +312,8 @@
 
     <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,
-        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
         from plan_procedure_total a
         left join plan b on a.plan_id=b.id