From 53153afbec438d582d79579390affc9b72ed3730 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Tue, 08 Jul 2025 14:28:40 +0800
Subject: [PATCH] 排序改造
---
multi-admin/src/main/java/com/gkhy/exam/admin/controller/system/SysDeptController.java | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 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 fa76240..868f6b3 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
@@ -48,18 +48,31 @@
// @PreAuthorize("hasAnyAuthority('system:dept:list')")
@GetMapping("/list")
@ApiOperation(value = "获取部门列表")
+ @ApiImplicitParams({
+ @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
+ @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"),
+ })
public CommonResult list(SysDept dept)
{
List<DeptVo> depts = deptService.selectDeptList(dept);
return CommonResult.success(depts);
}
+ @GetMapping("/pageList")
+ @ApiOperation(value = "获取部门列表分页")
+ public CommonResult pageList(SysDept dept)
+ {
+
+ return CommonResult.success(deptService.selectDeptPageList(dept));
+ }
+
+
@GetMapping("/treeList")
@ApiOperation(value = "获取部门列表树状")
public CommonResult treeList(SysDept dept)
{
- List<TreeSelect> treeSelects = deptService.selectDeptTreeList(dept);
+ List<SysDept> treeSelects = deptService.selectDeptTreeList(dept);
return CommonResult.success(treeSelects);
}
@@ -137,7 +150,7 @@
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "companyId", dataType = "Long", required = true, value = "公司id"),
})
- public CommonResult initFunctionalDistribution(@RequestParam Long companyId) {
+ public CommonResult initFunctionalDistribution(@RequestParam("companyId") Long companyId) {
return CommonResult.success(deptService.initFunctionalDistribution(companyId));
}
--
Gitblit v1.9.2