@ -20,7 +20,7 @@ async function reportList(ctx) {
WITH RECURSIVE sub_departments AS (
SELECT id, dependence
FROM department
WHERE id = 1
WHERE id = ${userInfo.departmentId}
UNION ALL
SELECT d.id, d.dependence
FROM sub_departments sd