From a9a662abc304546dfe66bb77de2149f003f8f3e5 Mon Sep 17 00:00:00 2001 From: ArgonarioD Date: Wed, 6 Jul 2022 14:55:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=9F=A5=E8=AF=A2su?= =?UTF-8?q?btask=E6=97=B6=E8=A2=AB=E5=88=A0=E9=99=A4=E7=9A=84=E5=AD=90?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E9=A1=B9=E5=BD=B1=E5=93=8DhasChildren?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=AD=A3=E7=A1=AE=E6=80=A7=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/TaskMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/mapper/TaskMapper.xml b/src/main/resources/mapper/TaskMapper.xml index 59fa44d..747c4af 100644 --- a/src/main/resources/mapper/TaskMapper.xml +++ b/src/main/resources/mapper/TaskMapper.xml @@ -20,7 +20,7 @@ judge.task_father_id IS NOT NULL AS has_children FROM task AS t JOIN (SELECT staff_id, staff_fullname FROM staff) AS s ON t.task_holder_id = s.staff_id - LEFT JOIN (SELECT DISTINCT task_father_id FROM task) AS judge ON t.task_id = judge.task_father_id + LEFT JOIN (SELECT DISTINCT task_father_id FROM task WHERE is_deleted = 0) AS judge ON t.task_id = judge.task_father_id WHERE is_deleted = 0 AND task_project_id = #{projectId} AND t.task_father_id = #{fatherId}