‘suhuihui’ преди 4 месеца
родител
ревизия
0cfc99068e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      api/services/dept_service.py

+ 1 - 1
api/services/dept_service.py

@@ -50,7 +50,7 @@ class DeptService:
         for dept_row in dept_results:
             children_dept_list = []
             children_depts = (
-                db.session.query(Dept.dept_id, Dept.dept_name)
+                db.session.query(Dept)
                 .filter(Dept.status == "active", Dept.parent_dept_id == dept_row.dept_id)
                 .all()
             )