@@ -236,9 +236,9 @@ public interface ProTaskWorkunitMapper extends BaseMapper<ProTaskWorkunit> {
* @param endDate 结束时间
* @return
*/
@Select(value="select ifnull(sum(t1.quantity),0) denominator,ifnull(sum(t1.quantity_produced),0) numerator from pro_task_workunit t1 left join pro_task t2 on t1.task_id = t2.task_id\n"+
@Select(value="select ifnull(sum(t1.quantity),0) denominator,ifnull(sum(t1.quantity_produced),0) numerator from pro_task_workunit t1 left join pro_task t2 on t1.task_id = t2.task_id left join pro_task_workorder tw on t2.task_id = tw.task_id left join pro_workorder wo on wo.workorder_id = tw.workorder_id\n"+
"where t1.schedule_end_date > #{startDate} and t1.schedule_end_date < #{endDate} \n"+
"and t2.is_last_process = 1")
"and t2.is_last_process = 1 and wo.status <> 'close'")