فهرست منبع

CHECK_ADMIN给财务用

skyfffire 1 ماه پیش
والد
کامیت
47723af646
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 2 3
      src/main/java/modules/withdraw/WithdrawController.java

+ 2 - 3
src/main/java/modules/withdraw/WithdrawController.java

@@ -25,7 +25,6 @@ public class WithdrawController extends MyController {
     }
     
     @Before(LoginInterceptor.class)
-    @RequiredRoleInterface({UserController.ROLE_SUPER_ADMIN})
     @EmptyInterface({"amount"})
     public void create() {
         // 通过 MyController 获取解析后的 JSON 对象,拦截器也使用了这个方法
@@ -56,7 +55,7 @@ public class WithdrawController extends MyController {
     }
     
     @Before(LoginInterceptor.class)
-    @RequiredRoleInterface({UserController.ROLE_SUPER_ADMIN})
+    @RequiredRoleInterface({UserController.ROLE_CHECK_ADMIN})
     @EmptyInterface({"withdraw_sn"})
     public void pass() {
         JSONObject requestBodyJson = MyController.getJsonModelByRequestAndType(getRequest(), JSONObject.class);
@@ -86,7 +85,7 @@ public class WithdrawController extends MyController {
     }
 
     @Before(LoginInterceptor.class)
-    @RequiredRoleInterface({UserController.ROLE_SUPER_ADMIN})
+    @RequiredRoleInterface({UserController.ROLE_CHECK_ADMIN})
     @EmptyInterface({"withdraw_sn", "reason"})
     public void refuse() {
         JSONObject requestBodyJson = MyController.getJsonModelByRequestAndType(getRequest(), JSONObject.class);