From c2963c9ba128728788add2586f1fb5dc421ca6b5 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期三, 10 四月 2024 18:11:31 +0800
Subject: [PATCH] 新增运维平台、资产管理
---
ycl-server/src/main/java/com/ycl/platform/controller/YwPeopleController.java | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/YwPeopleController.java b/ycl-server/src/main/java/com/ycl/platform/controller/YwPeopleController.java
index 0c07df2..46900da 100644
--- a/ycl-server/src/main/java/com/ycl/platform/controller/YwPeopleController.java
+++ b/ycl-server/src/main/java/com/ycl/platform/controller/YwPeopleController.java
@@ -2,6 +2,7 @@
import com.ycl.system.domain.group.Update;
import com.ycl.system.domain.group.Add;
+import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import lombok.RequiredArgsConstructor;
import java.util.List;
@@ -53,6 +54,7 @@
return ywPeopleService.remove(ids);
}
+// @PreAuthorize("@ss.hasPermi('unit:people:page')")
@GetMapping("/page")
@ApiOperation(value = "鍒嗛〉", notes = "鍒嗛〉")
public Result page(YwPeopleQuery query) {
@@ -65,6 +67,12 @@
return ywPeopleService.detail(id);
}
+ @GetMapping("/getPeopleByUnitId/{id}")
+ @ApiOperation(value = "璇︽儏", notes = "璇︽儏")
+ public Result getPeopleByUnitId(@PathVariable("id") String id) {
+ return ywPeopleService.getPeopleByUnitId(id);
+ }
+
@GetMapping("/list")
@ApiOperation(value = "鍒楄〃", notes = "鍒楄〃")
public Result list() {
--
Gitblit v1.8.0