huliguo
2025-05-30 ac89371643d184cae09b2f93af2e1fce401dc92f
pt-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java
@@ -50,7 +50,7 @@
    }
    @PreAuthorize("@ss.hasPermi('system:user:list')")
    @ApiOperation(value = "用户管理-部门选择框", tags = "系统后台-权限管理")
    @ApiOperation(value = "账号管理-部门选择框", tags = "系统后台-权限管理")
    @GetMapping("/list")
    public AjaxResult list() {
        List<SysDeptPageVO> list = deptService.getDeptList();
@@ -101,11 +101,21 @@
    }
    /**
     * 部门详情
     */
    @PreAuthorize("@ss.hasPermi('system:dept:list')")
    @ApiOperation(value = "部门管理-查看部门(回显)", tags = "系统后台-权限管理")
    @GetMapping("/{deptId}")
    public AjaxResult detail(@PathVariable("deptId") Long deptId) {
        SysDept sysDept = deptService.selectDeptById(deptId);
        return success(sysDept);
    }
    /**
     * 修改部门
     */
    @PreAuthorize("@ss.hasPermi('system:dept:list')")
    @Log(title = "部门管理", businessType = BusinessType.UPDATE)
    @ApiOperation(value = "部门管理-新增部门", tags = "系统后台-权限管理")
    @ApiOperation(value = "部门管理-修改部门", tags = "系统后台-权限管理")
    @PutMapping("/edit")
    public AjaxResult edit(@RequestParam("id")Long id,
                           @RequestParam("name")String name) {