(select count(1) from p_plan_task_detail where task_no = a.id and status = 0) as noStartNum,
(select count(1) from p_plan_task_detail where task_no = a.id and status = 0) as noStartNum,
(select count(1) from p_plan_task_detail where task_no = a.id and status = 1) as passNum,
(select count(1) from p_plan_task_detail where task_no = a.id and status = 1) as passNum,
(select count(1) from p_plan_task_detail where task_no = a.id and status = 2) as noPassNum,
(select count(1) from p_plan_task_detail where task_no = a.id and status = 2) as noPassNum,
(select count(1) from p_plan_task_detail where task_no = a.id and status = 3) as overTimeNum
(select count(1) from p_plan_task_detail where task_no = a.id and status = 3) as overTimeNum
from
from
(select l.* from p_plan_task as l where DATE_FORMAT(l.begin_time,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d') and l.org_code like CONCAT(#{deptId},"%"))as a
(select l.* from p_plan_task as l where DATE_FORMAT(l.begin_time,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d') and l.org_code like CONCAT(#{deptId},"%"))as a