File was renamed from ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java |
| | |
| | | package com.ruoyi.web.controller.system; |
| | | package com.ruoyi.web.system; |
| | | |
| | | import java.util.List; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.service.ISysDeptService; |
| | | import com.ruoyi.web.server.system.ISysDeptService; |
| | | |
| | | /** |
| | | * 部门信息 |
| | |
| | | /** |
| | | * 新增部门 |
| | | */ |
| | | @RequiresPermissions("system:dept:add") |
| | | @GetMapping("/add/{parentId}") |
| | | public String add(@PathVariable("parentId") Long parentId, ModelMap mmap) |
| | | { |
| | |
| | | * @param deptId 部门ID |
| | | * @param excludeId 排除ID |
| | | */ |
| | | @RequiresPermissions("system:dept:list") |
| | | @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("excludeId", excludeId); |
| | |
| | | /** |
| | | * 加载部门列表树(排除下级) |
| | | */ |
| | | @RequiresPermissions("system:dept:list") |
| | | @GetMapping("/treeData/{excludeId}") |
| | | @ResponseBody |
| | | public List<Ztree> treeDataExcludeChild(@PathVariable(value = "excludeId", required = false) Long excludeId) |