|
|
|
@ -42,9 +42,8 @@
|
|
|
|
|
-- 任务列表
|
|
|
|
|
#sql("viewJobList")
|
|
|
|
|
select t1.*,t2.forward_time,t2.status_code,t2.deadline_time,t2.target_id,
|
|
|
|
|
(select count(1) from t_collect_job_target as t3 where t3.job_id=t2.job_id) as child_count, -- 下发子任务数
|
|
|
|
|
(select count(1) from t_collect_job_target as t3 where t3.job_id=t2.job_id and
|
|
|
|
|
t3.status_code in (1122,2122,2132,2232)) as child_reply_count
|
|
|
|
|
(select count(1) from t_collect_job_target as t3 where t3.job_id=t2.job_id and t3.bureau_id=t2.target_id) as child_count, -- 下发子任务数
|
|
|
|
|
(select count(1) from t_collect_job_target as t3 where t3.job_id=t2.job_id and t3.bureau_id=t2.target_id and t3.status_code in (1122,2122,2132,2232)) as child_reply_count
|
|
|
|
|
from t_collect_job as t1
|
|
|
|
|
inner join t_collect_job_target as t2 on t1.job_id=t2.job_id
|
|
|
|
|
where t2.target_id = #para(bureau_id)
|
|
|
|
|