From a40176e184cafd8280d47f267ecfc477c9afe2c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Mon, 22 Jan 2024 21:14:55 +0800 Subject: [PATCH] 'commit' --- src/main/resource/Sql/Collect.sql | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/resource/Sql/Collect.sql b/src/main/resource/Sql/Collect.sql index 205702c6..920c8e53 100644 --- a/src/main/resource/Sql/Collect.sql +++ b/src/main/resource/Sql/Collect.sql @@ -140,9 +140,8 @@ (select count(1) from t_collect_job_target as t2 where t2.parent_id=t1.job_id and t2.bureau_id=t1.target_id)as forward_count, (select count(1) from t_collect_job_target as t2 where t2.parent_id=t1.job_id and t2.bureau_id=t1.target_id and t2.is_finish=1) as forward_fill_count -- 对于这个单位而言,它如果下发了转发任务的话,那么新的转发任务ID号是多少 - , - (select t3.job_id from t_collect_job as t3 inner join t_collect_job_target as t2 on t3.job_id=t2.job_id where t3.parent_id=t1.job_id - and t2.current_target_type_id=2 limit 1) as child_job_id + ,(select t3.job_id from t_collect_job as t3 inner join t_collect_job_target as t2 on t3.job_id=t2.job_id where t3.parent_id=t1.job_id + and t2.current_target_type_id=2 limit 1) as child_job_id from t_collect_job_target as t1 inner join t_sys_loginperson as t2 on t1.target_id=t2.person_id inner join t_collect_job as t4 on t1.job_id=t4.job_id