|
@@ -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);
|
|
|
}
|