From 1a7b143bcba90b80cc5442c0f31e577beb3b0426 Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期二, 13 八月 2024 10:47:24 +0800
Subject: [PATCH] 整理权限
---
pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/product/ProductCtrl.java | 2 +-
pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/MarkQrCode/MarkQrCodeCtrl.java | 6 ++++++
pms-parent/pms-global/src/main/resources/privileges-config.xml | 3 +++
pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleCtrl.java | 6 +++---
pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/taskPlan/DevOpsPlanCtrl.java | 10 +++++-----
5 files changed, 18 insertions(+), 9 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 25ecad9..58b5e4b 100644
--- a/pms-parent/pms-global/src/main/resources/privileges-config.xml
+++ b/pms-parent/pms-global/src/main/resources/privileges-config.xml
@@ -14,12 +14,15 @@
<privilege num="10100004" name="鏉冮檺鏌ヨ" type="1010" typeName="绯荤粺绠$悊"></privilege>
<privilege num="10100006" name="鏃ュ織鏌ヨ" type="1010" typeName="绯荤粺绠$悊"></privilege>
<privilege num="10100007" name="缂栫爜鏌ヨ" type="1010" typeName="绯荤粺绠$悊"></privilege>
+ <privilege num="10100008" name="缂栫爜绠$悊" type="1010" typeName="绯荤粺绠$悊"></privilege>
<!-- 鐢熶骇绠$悊 -->
<privilege num="10200000" name="鐢熶骇鏌ヨ" type="1020" typeName="鐢熶骇绠$悊"></privilege>
<privilege num="10200001" name="鐢熶骇绠$悊" type="1020" typeName="鐢熶骇绠$悊"></privilege>
<privilege num="10200002" name="娴佺▼鏌ヨ" type="1020" typeName="鐢熶骇绠$悊"></privilege>
<privilege num="10200003" name="娴佺▼绠$悊" type="1020" typeName="鐢熶骇绠$悊"></privilege>
+ <privilege num="10200004" name="杩愮淮璁″垝鏌ヨ" type="1020" typeName="鐢熶骇绠$悊"></privilege>
+ <privilege num="10200005" name="杩愮淮璁″垝绠$悊" type="1020" typeName="鐢熶骇绠$悊"></privilege>
<!-- 骞冲彴淇℃伅 -->
<privilege num="10300000" name="浜у搧鏌ヨ" type="1030" typeName="骞冲彴淇℃伅"></privilege>
diff --git a/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/MarkQrCode/MarkQrCodeCtrl.java b/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/MarkQrCode/MarkQrCodeCtrl.java
index 2998548..27d1652 100644
--- a/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/MarkQrCode/MarkQrCodeCtrl.java
+++ b/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/MarkQrCode/MarkQrCodeCtrl.java
@@ -3,8 +3,10 @@
import cn.hutool.core.codec.Base64;
import com.alibaba.excel.converters.Converter;
+import com.dy.common.aop.SsoPowerAop;
import com.dy.common.webUtil.BaseResponse;
import com.dy.common.webUtil.BaseResponseUtils;
+import com.dy.pmsGlobal.aop.Log;
import com.dy.pmsGlobal.util.QrCodeConstant;
import com.dy.pmsGlobal.util.QrCodeUtil;
import jakarta.servlet.http.HttpServletResponse;
@@ -33,6 +35,8 @@
* @return
*/
@GetMapping(path = "show")
+ @SsoPowerAop(power = "10100007")
+ @Log("鏌ヨ缂栫爜淇℃伅")
public BaseResponse<List<ResultVo>> show() throws Exception{
List<ResultVo> list = new ArrayList<>() ;
String[][] marks = QrCodeConstant.Marks() ;
@@ -52,6 +56,8 @@
* @return
*/
@GetMapping(path = "download")
+ @SsoPowerAop(power = "10100008")
+ @Log("瀵煎嚭缂栫爜淇℃伅")
public void download(HttpServletResponse response) throws Exception{
List<Converter> list = new ArrayList<>() ;
String[][] marks = QrCodeConstant.Marks() ;
diff --git a/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleCtrl.java b/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleCtrl.java
index 3eb8dd5..d3a2814 100644
--- a/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleCtrl.java
+++ b/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleCtrl.java
@@ -109,7 +109,7 @@
* @return
*/
@GetMapping(path="one")
- @SsoPowerAop(power = "10100004") //鐧诲綍涓庢潈闄愬悓鏃堕獙璇�
+ @SsoPowerAop(power = "10100002") //鐧诲綍涓庢潈闄愬悓鏃堕獙璇�
@Log("鏍规嵁ID鏌ヨ瑙掕壊淇℃伅")
public BaseResponse<BaRole> one(String id){
BaRole role=roleSv.selectById(id);
@@ -121,7 +121,7 @@
* @return
*/
@GetMapping(path="all")
- @SsoPowerAop(power = "10100004") //鐧诲綍涓庢潈闄愬悓鏃堕獙璇�
+ @SsoPowerAop(power = "10100002") //鐧诲綍涓庢潈闄愬悓鏃堕獙璇�
@Log("鏌ヨ鎵�鏈夎鑹�")
public BaseResponse<List<BaRole>> all(String id){
List<BaRole> roles=roleSv.selectAll();
@@ -134,7 +134,7 @@
* @return
*/
@PostMapping(path="some")
- @SsoPowerAop(power = "10100004")
+ @SsoPowerAop(power = "10100002")
@Log("鏌ヨ瑙掕壊淇℃伅")
public BaseResponse<QueryResultVo<List<BaRole>>> some(@RequestBody QueryVo vo){
QueryResultVo<List<BaRole>> list = roleSv.selectSome(vo) ;
diff --git a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/product/ProductCtrl.java b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/product/ProductCtrl.java
index 9249ea0..8ba3968 100644
--- a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/product/ProductCtrl.java
+++ b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/product/ProductCtrl.java
@@ -133,7 +133,7 @@
}
@PostMapping(path="export")
- @SsoPowerAop(power = "10300000")
+ @SsoPowerAop(power = "10300001")
@Log("瀵煎嚭浜у搧淇℃伅")
public void export(@RequestBody QueryVo queryVo, HttpServletResponse response){
List<Converter> list = new ArrayList<>() ;
diff --git a/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/taskPlan/DevOpsPlanCtrl.java b/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/taskPlan/DevOpsPlanCtrl.java
index 6c54e0d..5ae2226 100644
--- a/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/taskPlan/DevOpsPlanCtrl.java
+++ b/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/taskPlan/DevOpsPlanCtrl.java
@@ -28,7 +28,7 @@
@PostMapping(path="save")
- @SsoPowerAop(power = "10200001")
+ @SsoPowerAop(power = "10200005")
@Log("淇濆瓨缁勮浠诲姟璁″垝")
public BaseResponse<Boolean> save(@RequestBody @Valid PrDevOpsPlan plan){
int count = sv.save(plan);
@@ -45,7 +45,7 @@
* @return
*/
@PostMapping(path="update")
- @SsoPowerAop(power = "10200001")
+ @SsoPowerAop(power = "10200005")
@Log("鏇存柊缁勮浠诲姟璁″垝")
public BaseResponse<Boolean> update(@RequestBody @Valid PrDevOpsPlan plan){
int count = sv.update(plan);
@@ -57,7 +57,7 @@
}
@PostMapping(path="updateStatus")
- @SsoPowerAop(power = "10200001")
+ @SsoPowerAop(power = "10200005")
@Log("鏇存柊浠诲姟璁″垝鐘舵��")
public BaseResponse<Boolean> updateStatus(@RequestBody PrDevOpsPlan plan){
int count = sv.updateStatus(plan);
@@ -73,7 +73,7 @@
* @return
*/
@GetMapping(path="one")
- @SsoPowerAop(power = "10200000")
+ @SsoPowerAop(power = "10200004")
@Log("鏍规嵁ID鏌ヨ缁勮浠诲姟璁″垝")
public BaseResponse<PrDevOpsPlan> one(Long id){
PrDevOpsPlan plan=sv.selectById(id);
@@ -86,7 +86,7 @@
* @return
*/
@PostMapping(path="some")
- @SsoPowerAop(power = "10200000")
+ @SsoPowerAop(power = "10200004")
@Log("鍒嗛〉鏌ヨ缁勮浠诲姟璁″垝")
public BaseResponse<QueryResultVo<List<PrDevOpsPlan>>> some(@RequestBody QueryVo vo){
QueryResultVo<List<PrDevOpsPlan>> list = sv.selectSome(vo) ;
--
Gitblit v1.8.0