From 4788c0abe7193191b3ca024b0f5f8fed196294bd Mon Sep 17 00:00:00 2001
From: yupeng <roc__yu@163.com>
Date: 星期三, 05 三月 2025 14:29:26 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into xizang-changyun

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TDeptController.java |   24 +++++++++++++++++-------
 1 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TDeptController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TDeptController.java
index 91e2ac2..fa0e4a9 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TDeptController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TDeptController.java
@@ -51,7 +51,7 @@
     /**
      * 获取部门管理管理列表
      */
-    @PreAuthorize("@ss.hasPermi('system:dept:list')")
+    @PreAuthorize("@ss.hasPermi('system:department:list')")
     @ApiOperation(value = "获取部门管理分页列表")
     @PostMapping(value = "/pageList")
     public R<PageInfo<DeptVO>> pageList(@RequestBody TDeptQuery query) {
@@ -59,9 +59,19 @@
     }
 
     /**
+     * 获取部门管理管理列表
+     */
+    @ApiOperation(value = "获取部门管理列表")
+    @PostMapping(value = "/list")
+    public R<List<TDept>> list() {
+        return R.ok(deptService.list(Wrappers.lambdaQuery(TDept.class)
+                .eq(TDept::getStatus, 1)));
+    }
+
+    /**
      * 添加部门管理管理
      */
-    @PreAuthorize("@ss.hasPermi('system:dept:add')")
+    @PreAuthorize("@ss.hasPermi('system:department:add')")
     @Log(title = "部门管理信息-新增部门管理", businessType = BusinessType.INSERT)
     @ApiOperation(value = "添加部门管理")
     @PostMapping(value = "/add")
@@ -77,7 +87,7 @@
     /**
      * 修改部门管理
      */
-    @PreAuthorize("@ss.hasPermi('system:dept:update')")
+    @PreAuthorize("@ss.hasPermi('system:department:edit')")
     @Log(title = "部门管理信息-修改部门管理", businessType = BusinessType.UPDATE)
     @ApiOperation(value = "修改部门管理")
     @PostMapping(value = "/update")
@@ -93,7 +103,7 @@
     /**
      * 查看部门管理详情
      */
-    @PreAuthorize("@ss.hasPermi('system:dept:detail')")
+    @PreAuthorize("@ss.hasPermi('system:department:edit')")
     @ApiOperation(value = "查看部门管理详情")
     @GetMapping(value = "/getDetailById")
     public R<TDept> getDetailById(@RequestParam String id) {
@@ -103,7 +113,7 @@
     /**
      * 删除部门管理
      */
-    @PreAuthorize("@ss.hasPermi('system:dept:delete')")
+    @PreAuthorize("@ss.hasPermi('system:department:delete')")
     @Log(title = "部门管理信息-删除部门管理", businessType = BusinessType.DELETE)
     @ApiOperation(value = "删除部门管理")
     @DeleteMapping(value = "/deleteById")
@@ -117,7 +127,7 @@
     /**
      * 批量删除部门管理
      */
-    @PreAuthorize("@ss.hasPermi('system:dept:delete')")
+    @PreAuthorize("@ss.hasPermi('system:department:delete')")
     @Log(title = "部门管理信息-删除部门管理", businessType = BusinessType.DELETE)
     @ApiOperation(value = "批量删除部门管理")
     @DeleteMapping(value = "/deleteByIds")
@@ -131,7 +141,7 @@
     /**
      * 轮播图上下架
      */
-    @PreAuthorize("@ss.hasPermi('system:dept:upAndDown')")
+    @PreAuthorize("@ss.hasPermi('system:department:open')")
     @ApiOperation(value = "部门管理上下架",notes = "true:上架,false:下架")
     @PostMapping(value = "/upAndDown")
     public R upAndDown(@RequestBody TDeptUpAndDownDTO dto) {

--
Gitblit v1.7.1