|
@@ -1,6 +1,8 @@
|
|
package com.ozs.web.controller.system;
|
|
package com.ozs.web.controller.system;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
import org.apache.commons.lang3.ArrayUtils;
|
|
import org.apache.commons.lang3.ArrayUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -45,6 +47,16 @@ public class SysDeptController extends BaseController
|
|
return success(depts);
|
|
return success(depts);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 获取部门树列表
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/deptTree")
|
|
|
|
+ @ApiOperation("获取部门树列表")
|
|
|
|
+ public AjaxResult deptTree(SysDept dept)
|
|
|
|
+ {
|
|
|
|
+ return success(deptService.selectDeptTreeList(dept));
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 查询部门列表(排除节点)
|
|
* 查询部门列表(排除节点)
|
|
*/
|
|
*/
|