From e5ead76e6f88915ac4f7b694f98a3f3740565c55 Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期三, 04 九月 2024 09:17:49 +0800
Subject: [PATCH] 排班管理添加权限编号
---
pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleCtrl.java | 14 +++++++-------
pms-parent/pms-global/src/main/resources/privileges-config.xml | 2 ++
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/pms-parent/pms-global/src/main/resources/privileges-config.xml b/pms-parent/pms-global/src/main/resources/privileges-config.xml
index 5f78cee..a35b8bf 100644
--- a/pms-parent/pms-global/src/main/resources/privileges-config.xml
+++ b/pms-parent/pms-global/src/main/resources/privileges-config.xml
@@ -25,6 +25,8 @@
<privilege num="10200005" name="杩愮淮璁″垝绠$悊" type="1020" typeName="鐢熶骇绠$悊"></privilege>
<privilege num="10200006" name="璁㈠崟鏌ヨ" type="1020" typeName="鐢熶骇绠$悊"></privilege>
<privilege num="10200007" name="璁㈠崟绠$悊" type="1020" typeName="鐢熶骇绠$悊"></privilege>
+ <privilege num="10200008" name="鎺掔彮鏌ヨ" type="1020" typeName="鐢熶骇绠$悊"></privilege>
+ <privilege num="10200009" name="鎺掔彮绠$悊" type="1020" typeName="鐢熶骇绠$悊"></privilege>
<!-- 骞冲彴淇℃伅 -->
<privilege num="10300000" name="浜у搧鏌ヨ" type="1030" typeName="骞冲彴淇℃伅"></privilege>
diff --git a/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleCtrl.java b/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleCtrl.java
index 8e0e515..13d8b48 100644
--- a/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleCtrl.java
+++ b/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleCtrl.java
@@ -38,7 +38,7 @@
}
@PostMapping(path="save")
- @SsoPowerAop(power = "-1")
+ @SsoPowerAop(power = "10200009")
@Log("淇濆瓨鎺掔彮")
public BaseResponse<Boolean> save(@RequestBody @Valid PrSchedule schedule){
int count = sv.save(schedule);
@@ -55,7 +55,7 @@
* @return
*/
@PostMapping(path="update")
- @SsoPowerAop(power = "-1")
+ @SsoPowerAop(power = "10200009")
@Log("鏇存柊鎺掔彮")
public BaseResponse<Boolean> update(@RequestBody @Valid PrSchedule schedule){
int count = sv.update(schedule);
@@ -72,7 +72,7 @@
* @return
*/
@PostMapping(path="selectPlan")
- @SsoPowerAop(power = "-1")
+ @SsoPowerAop(power = "10200008")
@Log("鏌ヨ浠诲姟璁″垝鍒楄〃")
public BaseResponse<List<JSONObject>> selectPlan(@RequestBody QueryVo vo){
List<JSONObject> array = sv.selectPlan(vo) ;
@@ -83,7 +83,7 @@
* @return
*/
@GetMapping(path="one")
- @SsoPowerAop(power = "-1")
+ @SsoPowerAop(power = "10200008")
@Log("鏍规嵁ID鏌ヨ鎺掔彮")
public BaseResponse<PrSchedule> one(Long id){
PrSchedule schedule=sv.selectById(id);
@@ -96,7 +96,7 @@
* @return
*/
@PostMapping(path="some")
- @SsoPowerAop(power = "-1")
+ @SsoPowerAop(power = "10200008")
@Log("鍒嗛〉鏌ヨ鎺掔彮")
public BaseResponse<QueryResultVo<List<PrSchedule>>> some(@RequestBody com.dy.pmsProduct.schedule.QueryVo vo){
QueryResultVo<List<PrSchedule>> list = sv.selectSome(vo) ;
@@ -107,7 +107,7 @@
* @return
*/
@GetMapping(path="getUserList")
- @SsoPowerAop(power = "-1")
+ @SsoPowerAop(power = "10200008")
@Log("鏌ヨ绯荤粺涓搷浣滀汉鍛樹俊鎭�")
public BaseResponse<List<BaUser>> getUserList(){
List<BaUser> userList = sv.selectById();
@@ -116,7 +116,7 @@
@PostMapping(path="export")
- @SsoPowerAop(power = "-1")
+ @SsoPowerAop(power = "10200009")
@Log("瀵煎嚭鎺掔彮")
public void exportSchedule(@RequestBody QueryVo queryVo, HttpServletResponse response) throws IOException {
List<ExcelVo> list = new ArrayList<>();
--
Gitblit v1.8.0