From 78dd38a688b749b72117f61aebdb3ebe085047ad Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期三, 06 九月 2023 13:19:36 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/crm/manager/controller/CompanyController.java            |    6 +-
 src/main/java/com/zy/crm/manager/controller/CstmrController.java              |    8 ++--
 src/main/java/com/zy/crm/manager/controller/CstmrTypeController.java          |    6 +-
 src/main/java/com/zy/crm/manager/controller/PlanNeedController.java           |    6 +-
 src/main/java/com/zy/crm/manager/controller/ReimburseCostTypesController.java |    6 +-
 src/main/java/com/zy/crm/manager/controller/PlanController.java               |    8 ++--
 src/main/java/com/zy/crm/manager/controller/ReimburseController.java          |   10 ++--
 src/main/java/com/zy/crm/manager/controller/BusinessTripController.java       |    6 +-
 src/main/java/com/zy/crm/manager/controller/RuleController.java               |    6 +-
 src/main/java/com/zy/crm/manager/controller/PlanTypeController.java           |    6 +-
 src/main/java/com/zy/crm/manager/controller/OrderController.java              |    6 +-
 src/main/java/com/zy/crm/manager/controller/ProcessPermissionsController.java |    6 +-
 12 files changed, 40 insertions(+), 40 deletions(-)

diff --git a/src/main/java/com/zy/crm/manager/controller/BusinessTripController.java b/src/main/java/com/zy/crm/manager/controller/BusinessTripController.java
index 5ec6e3d..1578ccc 100644
--- a/src/main/java/com/zy/crm/manager/controller/BusinessTripController.java
+++ b/src/main/java/com/zy/crm/manager/controller/BusinessTripController.java
@@ -100,7 +100,7 @@
     }
 
     @RequestMapping(value = "/businessTrip/add/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "娣诲姞鍑哄樊鐢宠")
     public R add(BusinessTrip businessTrip) {
         if (Cools.isEmpty(businessTrip)){
             return R.error();
@@ -151,7 +151,7 @@
     }
 
 	@RequestMapping(value = "/businessTrip/update/auth")
-	@ManagerAuth
+	@ManagerAuth(memo = "鏇存柊鍑哄樊鐢宠")
     public R update(BusinessTrip businessTrip){
         if (Cools.isEmpty(businessTrip) || null==businessTrip.getId()){
             return R.error();
@@ -189,7 +189,7 @@
     }
 
     @RequestMapping(value = "/businessTrip/delete/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "鍒犻櫎鍑哄樊鐢宠")
     public R delete(@RequestParam(value="ids[]") Long[] ids){
          for (Long id : ids){
             businessTripService.deleteById(id);
diff --git a/src/main/java/com/zy/crm/manager/controller/CompanyController.java b/src/main/java/com/zy/crm/manager/controller/CompanyController.java
index 363728d..c034f95 100644
--- a/src/main/java/com/zy/crm/manager/controller/CompanyController.java
+++ b/src/main/java/com/zy/crm/manager/controller/CompanyController.java
@@ -60,7 +60,7 @@
     }
 
     @RequestMapping(value = "/company/add/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "娣诲姞鍏徃")
     public R add(Company company) {
         company.setHostId(getHostId());
         company.setCreateBy(getUserId());
@@ -73,7 +73,7 @@
     }
 
 	@RequestMapping(value = "/company/update/auth")
-	@ManagerAuth
+	@ManagerAuth(memo = "鏇存柊鍏徃")
     public R update(Company company){
         if (Cools.isEmpty(company) || null==company.getId()){
             return R.error();
@@ -85,7 +85,7 @@
     }
 
     @RequestMapping(value = "/company/delete/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "鍒犻櫎鍏徃")
     public R delete(@RequestParam(value="ids[]") Long[] ids){
          for (Long id : ids){
             companyService.deleteById(id);
diff --git a/src/main/java/com/zy/crm/manager/controller/CstmrController.java b/src/main/java/com/zy/crm/manager/controller/CstmrController.java
index 5c9c60f..fc04cf6 100644
--- a/src/main/java/com/zy/crm/manager/controller/CstmrController.java
+++ b/src/main/java/com/zy/crm/manager/controller/CstmrController.java
@@ -108,7 +108,7 @@
     }
 
     @RequestMapping(value = "/cstmr/add/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "娣诲姞鐢叉柟鍗曚綅")
     public R add(Cstmr cstmr) {
         Long hostId = getHostId();
         if (cstmrService.selectByUuid(hostId, cstmr.getUuid()) != null) {
@@ -129,7 +129,7 @@
     }
 
 	@RequestMapping(value = "/cstmr/update/auth")
-	@ManagerAuth
+	@ManagerAuth(memo = "鏇存柊鐢叉柟鍗曚綅")
     public R update(Cstmr cstmr){
         if (Cools.isEmpty(cstmr) || null==cstmr.getId()){
             return R.error();
@@ -141,7 +141,7 @@
     }
 
     @RequestMapping(value = "/cstmr/delete/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "鍒犻櫎鐢叉柟鍗曚綅")
     public R delete(@RequestParam(value="ids[]") Long[] ids){
         for (Long id : ids){
             cstmrService.deleteById(id);
@@ -150,7 +150,7 @@
     }
 
     @RequestMapping(value = "/cstmr/delete/one/{id}")
-    @ManagerAuth
+    @ManagerAuth(memo = "鍒犻櫎鐢叉柟鍗曚綅")
     public R deleteOne(@PathVariable Long id) {
         cstmrService.deleteById(id);
         return R.ok();
diff --git a/src/main/java/com/zy/crm/manager/controller/CstmrTypeController.java b/src/main/java/com/zy/crm/manager/controller/CstmrTypeController.java
index 9890a63..958d3b1 100644
--- a/src/main/java/com/zy/crm/manager/controller/CstmrTypeController.java
+++ b/src/main/java/com/zy/crm/manager/controller/CstmrTypeController.java
@@ -60,7 +60,7 @@
     }
 
     @RequestMapping(value = "/cstmrType/add/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "娣诲姞瀹㈡埛绫诲埆")
     public R add(CstmrType cstmrType) {
         cstmrType.setHostId(getHostId());
         cstmrType.setCreateBy(getUserId());
@@ -73,7 +73,7 @@
     }
 
 	@RequestMapping(value = "/cstmrType/update/auth")
-	@ManagerAuth
+	@ManagerAuth(memo = "鏇存柊瀹㈡埛绫诲埆")
     public R update(CstmrType cstmrType){
         if (Cools.isEmpty(cstmrType) || null==cstmrType.getId()){
             return R.error();
@@ -85,7 +85,7 @@
     }
 
     @RequestMapping(value = "/cstmrType/delete/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "鍒犻櫎瀹㈡埛绫诲埆")
     public R delete(@RequestParam(value="ids[]") Long[] ids){
          for (Long id : ids){
             cstmrTypeService.deleteById(id);
diff --git a/src/main/java/com/zy/crm/manager/controller/OrderController.java b/src/main/java/com/zy/crm/manager/controller/OrderController.java
index 3020843..6d66486 100644
--- a/src/main/java/com/zy/crm/manager/controller/OrderController.java
+++ b/src/main/java/com/zy/crm/manager/controller/OrderController.java
@@ -62,7 +62,7 @@
     }
 
     @RequestMapping(value = "/order/add/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "娣诲姞璺熻釜椤圭洰")
     public R add(Order order) {
         Long hostId = getHostId();
         if (orderService.selectByUuid(hostId, order.getUuid()) != null) {
@@ -85,7 +85,7 @@
     }
 
 	@RequestMapping(value = "/order/update/auth")
-	@ManagerAuth
+	@ManagerAuth(memo = "鏇存柊璺熻釜椤圭洰")
     public R update(Order order){
         if (Cools.isEmpty(order) || null==order.getId()){
             return R.error();
@@ -97,7 +97,7 @@
     }
 
     @RequestMapping(value = "/order/delete/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "鍒犻櫎璺熻釜椤圭洰")
     public R delete(@RequestParam(value="ids[]") Long[] ids){
          for (Long id : ids){
             orderService.deleteById(id);
diff --git a/src/main/java/com/zy/crm/manager/controller/PlanController.java b/src/main/java/com/zy/crm/manager/controller/PlanController.java
index 89c6475..22a3747 100644
--- a/src/main/java/com/zy/crm/manager/controller/PlanController.java
+++ b/src/main/java/com/zy/crm/manager/controller/PlanController.java
@@ -110,7 +110,7 @@
     }
 
     @RequestMapping(value = "/plan/add/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "娣诲姞瑙勫垝鐢宠鍗�")
     @Transactional
     public R add(@RequestParam Map<String, Object> param) {
         // pre
@@ -159,7 +159,7 @@
     }
 
 	@RequestMapping(value = "/plan/update/auth")
-	@ManagerAuth
+	@ManagerAuth(memo = "鏇存柊瑙勫垝鐢宠鍗�")
     @Transactional
     public R update(@RequestParam Map<String, Object> param){
 //        String planNeed = null;
@@ -212,7 +212,7 @@
     }
 
     @RequestMapping(value = "/plan/delete/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "鍒犻櫎瑙勫垝鐢宠鍗�")
     public R delete(@RequestParam(value="ids[]") Long[] ids){
          for (Long id : ids){
             planService.deleteById(id);
@@ -319,7 +319,7 @@
 
 
     @PostMapping(value = "/plan/approval/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "瀹℃壒鐢宠鍗�")
     public R approval(@RequestParam Long planId,
                       @RequestParam(required = false) Long plannerId){
         Plan plan = planService.selectById(planId);
diff --git a/src/main/java/com/zy/crm/manager/controller/PlanNeedController.java b/src/main/java/com/zy/crm/manager/controller/PlanNeedController.java
index d02e84b..64476a1 100644
--- a/src/main/java/com/zy/crm/manager/controller/PlanNeedController.java
+++ b/src/main/java/com/zy/crm/manager/controller/PlanNeedController.java
@@ -60,7 +60,7 @@
     }
 
     @RequestMapping(value = "/planNeed/add/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "娣诲姞瑙勫垝鍗曢渶姹�")
     public R add(PlanNeed planNeed) {
         planNeed.setHostId(getHostId());
         planNeed.setCreateBy(getUserId());
@@ -73,7 +73,7 @@
     }
 
 	@RequestMapping(value = "/planNeed/update/auth")
-	@ManagerAuth
+	@ManagerAuth(memo = "鏇存柊瑙勫垝鍗曢渶姹�")
     public R update(PlanNeed planNeed){
         if (Cools.isEmpty(planNeed) || null==planNeed.getId()){
             return R.error();
@@ -85,7 +85,7 @@
     }
 
     @RequestMapping(value = "/planNeed/delete/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "鍒犻櫎瑙勫垝鍗曢渶姹�")
     public R delete(@RequestParam(value="ids[]") Long[] ids){
          for (Long id : ids){
             planNeedService.deleteById(id);
diff --git a/src/main/java/com/zy/crm/manager/controller/PlanTypeController.java b/src/main/java/com/zy/crm/manager/controller/PlanTypeController.java
index 82fdf77..38cd89c 100644
--- a/src/main/java/com/zy/crm/manager/controller/PlanTypeController.java
+++ b/src/main/java/com/zy/crm/manager/controller/PlanTypeController.java
@@ -88,7 +88,7 @@
     }
 
     @RequestMapping(value = "/planType/add/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "娣诲姞瑙勫垝鍗曠被鍨�")
     public R add(PlanType planType) {
         planType.setHostId(getHostId());
         planType.setCreateBy(getUserId());
@@ -101,7 +101,7 @@
     }
 
 	@RequestMapping(value = "/planType/update/auth")
-	@ManagerAuth
+	@ManagerAuth(memo = "鏇存柊瑙勫垝鍗曠被鍨�")
     public R update(PlanType planType){
         if (Cools.isEmpty(planType) || null==planType.getId()){
             return R.error();
@@ -113,7 +113,7 @@
     }
 
     @RequestMapping(value = "/planType/delete/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "鍒犻櫎瑙勫垝鍗曠被鍨�")
     public R delete(@RequestParam(value="ids[]") Long[] ids){
          for (Long id : ids){
             planTypeService.deleteById(id);
diff --git a/src/main/java/com/zy/crm/manager/controller/ProcessPermissionsController.java b/src/main/java/com/zy/crm/manager/controller/ProcessPermissionsController.java
index b262b64..321ec3f 100644
--- a/src/main/java/com/zy/crm/manager/controller/ProcessPermissionsController.java
+++ b/src/main/java/com/zy/crm/manager/controller/ProcessPermissionsController.java
@@ -64,7 +64,7 @@
     }
 
     @RequestMapping(value = "/processPermissions/add/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "娣诲姞瀹℃牳鏉冮檺")
     public R add(ProcessPermissions processPermissions) {
         int count = processPermissionsService.selectCount(new EntityWrapper<ProcessPermissions>().eq("process_memo", processPermissions.getProcessMemo()).eq("process", processPermissions.getProcess()));
         if (count>0){
@@ -77,7 +77,7 @@
     }
 
 	@RequestMapping(value = "/processPermissions/update/auth")
-	@ManagerAuth
+	@ManagerAuth(memo = "鏇存柊瀹℃牳鏉冮檺")
     public R update(ProcessPermissions processPermissions){
         if (Cools.isEmpty(processPermissions) || null==processPermissions.getId()){
             return R.error();
@@ -94,7 +94,7 @@
     }
 
     @RequestMapping(value = "/processPermissions/delete/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "鍒犻櫎瀹℃牳鏉冮檺")
     public R delete(@RequestParam(value="ids[]") Long[] ids){
          for (Long id : ids){
             processPermissionsService.deleteById(id);
diff --git a/src/main/java/com/zy/crm/manager/controller/ReimburseController.java b/src/main/java/com/zy/crm/manager/controller/ReimburseController.java
index 371aa0d..1b45e56 100644
--- a/src/main/java/com/zy/crm/manager/controller/ReimburseController.java
+++ b/src/main/java/com/zy/crm/manager/controller/ReimburseController.java
@@ -68,7 +68,7 @@
     }
 
     @RequestMapping(value = "/reimburse/add/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "娣诲姞鎶ラ攢妯℃澘")
     public R add(@RequestBody Map<String,Object> map) {
         User user = getUser();
         if(!user.getRoleCode().equals("boss") && !user.getDeptName().equals("鏍镐环缁�")){
@@ -92,7 +92,7 @@
     }
 
 	@RequestMapping(value = "/reimburse/update/auth")
-	@ManagerAuth
+	@ManagerAuth(memo = "鏇存柊鎶ラ攢妯℃澘")
     public R update(@RequestBody Map<String,Object> map){
         User user = getUser();
         if(!user.getRoleCode().equals("boss") && !user.getDeptName().equals("鏍镐环缁�")){
@@ -108,8 +108,8 @@
     }
 
     @RequestMapping(value = "/reimburse/updateStatus/auth")
-    @ManagerAuth
-    public R update(Long id,Integer status){
+    @ManagerAuth(memo = "鏇存柊鎶ラ攢妯℃澘鐘舵��")
+    public R updateStatus(Long id,Integer status){
         User user = getUser();
         if(!user.getRoleCode().equals("boss") && !user.getDeptName().equals("鏍镐环缁�")){
             return R.error("鏉冮檺涓嶈冻锛岀姝㈡洿鏂版ā鏉�");
@@ -123,7 +123,7 @@
     }
 
     @RequestMapping(value = "/reimburse/delete/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "鍒犻櫎鎶ラ攢妯℃澘")
     public R delete(Long[] ids){
         User user = getUser();
         if(!user.getRoleCode().equals("boss") && !user.getDeptName().equals("鏍镐环缁�")){
diff --git a/src/main/java/com/zy/crm/manager/controller/ReimburseCostTypesController.java b/src/main/java/com/zy/crm/manager/controller/ReimburseCostTypesController.java
index 95686f4..3f77c04 100644
--- a/src/main/java/com/zy/crm/manager/controller/ReimburseCostTypesController.java
+++ b/src/main/java/com/zy/crm/manager/controller/ReimburseCostTypesController.java
@@ -64,14 +64,14 @@
     }
 
     @RequestMapping(value = "/reimburseCostTypes/add/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "娣诲姞鎶ラ攢璐圭敤绫诲瀷")
     public R add(ReimburseCostTypes reimburseCostTypes) {
         reimburseCostTypesService.insert(reimburseCostTypes);
         return R.ok();
     }
 
 	@RequestMapping(value = "/reimburseCostTypes/update/auth")
-	@ManagerAuth
+	@ManagerAuth(memo = "鏇存柊鎶ラ攢璐圭敤绫诲瀷")
     public R update(ReimburseCostTypes reimburseCostTypes){
         if (Cools.isEmpty(reimburseCostTypes) || null==reimburseCostTypes.getId()){
             return R.error();
@@ -81,7 +81,7 @@
     }
 
     @RequestMapping(value = "/reimburseCostTypes/delete/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "鍒犻櫎鎶ラ攢璐圭敤绫诲瀷")
     public R delete(@RequestParam(value="ids[]") Long[] ids){
          for (Long id : ids){
             reimburseCostTypesService.deleteById(id);
diff --git a/src/main/java/com/zy/crm/manager/controller/RuleController.java b/src/main/java/com/zy/crm/manager/controller/RuleController.java
index 6690777..1b352e1 100644
--- a/src/main/java/com/zy/crm/manager/controller/RuleController.java
+++ b/src/main/java/com/zy/crm/manager/controller/RuleController.java
@@ -61,7 +61,7 @@
     }
 
     @RequestMapping(value = "/rule/add/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "娣诲姞鍗曞彿瑙勫垯")
     public R add(Rule rule) {
         if (Cools.isEmpty(rule.getRuleConnector())){
             rule.setRuleConnector("-");
@@ -76,7 +76,7 @@
     }
 
 	@RequestMapping(value = "/rule/update/auth")
-	@ManagerAuth
+	@ManagerAuth(memo = "鏇存柊鍗曞彿瑙勫垯")
     public R update(Rule rule){
         if (Cools.isEmpty(rule) || null==rule.getId()){
             return R.error();
@@ -94,7 +94,7 @@
     }
 
     @RequestMapping(value = "/rule/delete/auth")
-    @ManagerAuth
+    @ManagerAuth(memo = "鍒犻櫎鍗曞彿瑙勫垯")
     public R delete(@RequestParam(value="ids[]") Long[] ids){
          for (Long id : ids){
             ruleService.deleteById(id);

--
Gitblit v1.9.1