Browse Source

20241220 付费码管理

lrj 9 months ago
parent
commit
e4c1369374
1 changed files with 2 additions and 1 deletions
  1. 2 1
      PCS/src/main/java/cn/cslg/permission/service/RoleService.java

+ 2 - 1
PCS/src/main/java/cn/cslg/permission/service/RoleService.java

@@ -252,6 +252,7 @@ public class RoleService extends ServiceImpl<RoleMapper, Role> {
         if (roleList == null || roleList.size() == 0) {
             throw new XiaoShiException(ExceptionEnum.BUSINESS_ERROR, "无权限访问数据");
         }
+
         Role role = roleList.stream().filter(item -> item.getRoleType().equals(1) || item.getRoleType().equals(2) ||item.getRoleType().equals(3)).findFirst().orElse(null);
         if (role == null) {
             throw new XiaoShiException(ExceptionEnum.BUSINESS_ERROR, "无权限访问数据");
@@ -266,7 +267,7 @@ public class RoleService extends ServiceImpl<RoleMapper, Role> {
         if (roleList == null || roleList.size() == 0) {
             throw new XiaoShiException(ExceptionEnum.BUSINESS_ERROR, "无权限访问数据");
         }
-        Role role = roleList.stream().filter(item -> item.getRoleType().equals(1) || item.getRoleType().equals(2)).findFirst().orElse(null);
+        Role role = roleList.stream().filter(item -> item.getRoleType().equals(1) || item.getRoleType().equals(2) ||item.getRoleType().equals(3)).findFirst().orElse(null);
         if (role == null) {
             throw new XiaoShiException(ExceptionEnum.BUSINESS_ERROR, "无权限访问数据");
         }