修复了查询subtask时被删除的子工作项影响hasChildren字段正确性的问题
parent
c81065d93e
commit
a9a662abc3
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue