From 2892b2a80babdde59f8dcf6750b26870a6d6a853 Mon Sep 17 00:00:00 2001 From: heheng <475597332@qq.com> Date: 星期一, 16 六月 2025 14:05:41 +0800 Subject: [PATCH] 部分功能调整 --- multi-admin/src/main/java/com/gkhy/exam/admin/controller/system/SysDeptController.java | 36 ++++++++++++++++++------------------ 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/multi-admin/src/main/java/com/gkhy/exam/admin/controller/system/SysDeptController.java b/multi-admin/src/main/java/com/gkhy/exam/admin/controller/system/SysDeptController.java index 907972f..646990a 100644 --- a/multi-admin/src/main/java/com/gkhy/exam/admin/controller/system/SysDeptController.java +++ b/multi-admin/src/main/java/com/gkhy/exam/admin/controller/system/SysDeptController.java @@ -31,7 +31,7 @@ * * @author expert */ -@Api(tags = "部门-业务处室") +@Api(tags = "部门管理") @RestController @RequestMapping("/system/dept") public class SysDeptController @@ -60,17 +60,17 @@ * 查询部门列表(排除节点) */ //@PreAuthorize("hasAnyAuthority('system:dept:list')") - @GetMapping("/list/exclude/{deptId}") - @ApiImplicitParams({ - @ApiImplicitParam(paramType = "query", name = "deptId", dataType = "Long", required = true, value = "部门id"), - }) - @ApiOperation(value = "查询部门列表(排除节点)") - public CommonResult excludeChild(@PathVariable(value = "deptId", required = false) Long deptId) - { - List<SysDept> depts = deptService.getOutDeptList(new SysDept()); - depts.removeIf(d -> d.getDeptId().intValue() == deptId || ArrayUtils.contains(StringUtils.split(d.getAncestors(), ","), deptId + "")); - return CommonResult.success(depts); - } +// @GetMapping("/list/exclude/{deptId}") +// @ApiImplicitParams({ +// @ApiImplicitParam(paramType = "query", name = "deptId", dataType = "Long", required = true, value = "部门id"), +// }) +// @ApiOperation(value = "查询部门列表(排除节点)") +// public CommonResult excludeChild(@PathVariable(value = "deptId", required = false) Long deptId) +// { +// List<SysDept> depts = deptService.getOutDeptList(new SysDept()); +// depts.removeIf(d -> d.getDeptId().intValue() == deptId || ArrayUtils.contains(StringUtils.split(d.getAncestors(), ","), deptId + "")); +// return CommonResult.success(depts); +// } /** * 根据部门编号获取详细信息 @@ -182,19 +182,19 @@ */ //@PreAuthorize("hasAnyAuthority('system:dept:remove')") @DeleteMapping("/{deptId}") - @ApiOperation(value = "删除部门门业务处室") + @ApiOperation(value = "删除部门") public CommonResult remove(@PathVariable Long deptId) { if (deptService.hasChildByDeptId(deptId)) { return CommonResult.failed("存在下级部门,不允许删除"); } - if (deptService.checkDeptExistUser(deptId)) - { - return CommonResult.failed("部门存在用户,不允许删除"); - } +// if (deptService.checkDeptExistUser(deptId)) +// { +// return CommonResult.failed("部门存在用户,不允许删除"); +// } //todo 校验专家是否申请复用 - deptService.checkDeptDataScope(deptId); +// deptService.checkDeptDataScope(deptId); return CommonResult.success(deptService.deleteDeptById(deptId)); } } -- Gitblit v1.9.2