guoyujia 1 napja
szülő
commit
b3d65faf30

+ 2 - 1
src/main/java/cn/ezhizao/project/business/switchDept/controller/SwitchController.java

@@ -180,8 +180,9 @@ public class SwitchController extends BaseController {
 
     @GetMapping("/listAllDepts")
     @Log(title = "获取所有工段列表", businessType = BusinessType.SELECT)
-    public AjaxResult listAllDepts(SysDept sysDept) {
+    public AjaxResult listAllDepts(SysDept sysDept) throws NoSuchFieldException, IllegalAccessException {
         sysDept.setIsWorkSection(1);
+        setTenantId(sysDept);
         List<SysDept> depts = sysDeptService.selectDeptList(sysDept);
         return success(depts);
     }