Ver Fonte

20241220 付费码管理

lrj há 9 meses atrás
pai
commit
e4c1369374

+ 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, "无权限访问数据");
         }