Browse Source

fix 小程序-后台标记为管理员的用户登录小程序异常反馈看不到部门其他人上报的记录

dev
巴林闲侠 2 years ago
parent
commit
54f5fc239b
  1. 2
      api/app/lib/controllers/report/index.js

2
api/app/lib/controllers/report/index.js

@ -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

Loading…
Cancel
Save