|
@@ -54,6 +54,7 @@ public class SysDeptController extends BaseController
|
|
/**
|
|
/**
|
|
* 新增部门
|
|
* 新增部门
|
|
*/
|
|
*/
|
|
|
|
+ @RequiresPermissions("system:dept:add")
|
|
@GetMapping("/add/{parentId}")
|
|
@GetMapping("/add/{parentId}")
|
|
public String add(@PathVariable("parentId") Long parentId, ModelMap mmap)
|
|
public String add(@PathVariable("parentId") Long parentId, ModelMap mmap)
|
|
{
|
|
{
|
|
@@ -163,9 +164,9 @@ public class SysDeptController extends BaseController
|
|
* @param deptId 部门ID
|
|
* @param deptId 部门ID
|
|
* @param excludeId 排除ID
|
|
* @param excludeId 排除ID
|
|
*/
|
|
*/
|
|
|
|
+ @RequiresPermissions("system:dept:list")
|
|
@GetMapping(value = { "/selectDeptTree/{deptId}", "/selectDeptTree/{deptId}/{excludeId}" })
|
|
@GetMapping(value = { "/selectDeptTree/{deptId}", "/selectDeptTree/{deptId}/{excludeId}" })
|
|
- public String selectDeptTree(@PathVariable("deptId") Long deptId,
|
|
|
|
- @PathVariable(value = "excludeId", required = false) Long excludeId, ModelMap mmap)
|
|
|
|
|
|
+ public String selectDeptTree(@PathVariable("deptId") Long deptId, @PathVariable(value = "excludeId", required = false) Long excludeId, ModelMap mmap)
|
|
{
|
|
{
|
|
mmap.put("dept", deptService.selectDeptById(deptId));
|
|
mmap.put("dept", deptService.selectDeptById(deptId));
|
|
mmap.put("excludeId", excludeId);
|
|
mmap.put("excludeId", excludeId);
|
|
@@ -175,6 +176,7 @@ public class SysDeptController extends BaseController
|
|
/**
|
|
/**
|
|
* 加载部门列表树(排除下级)
|
|
* 加载部门列表树(排除下级)
|
|
*/
|
|
*/
|
|
|
|
+ @RequiresPermissions("system:dept:list")
|
|
@GetMapping("/treeData/{excludeId}")
|
|
@GetMapping("/treeData/{excludeId}")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public List<Ztree> treeDataExcludeChild(@PathVariable(value = "excludeId", required = false) Long excludeId)
|
|
public List<Ztree> treeDataExcludeChild(@PathVariable(value = "excludeId", required = false) Long excludeId)
|