Ver código fonte

添加条件判断

gao.qiang 1 ano atrás
pai
commit
fc96464ae3

+ 1 - 1
base-system/src/main/java/com/ozs/system/service/impl/SysRoleServiceImpl.java

@@ -193,7 +193,7 @@ public class SysRoleServiceImpl extends JoinServiceImpl<SysRoleMapper, SysRole>
             SysRole role = new SysRole();
             role.setRoleId(roleId);
             SysRole sysRole = baseMapper.selectRoleById(roleId);
-            if ("2".equals(sysRole.getStatus())) {
+            if ("1".equals(sysRole.getStatus())) {
                 List<SysRole> roles = SpringUtils.getAopProxy(this).selectRoleList(role);
                 if (StringUtils.isEmpty(roles)) {
                     throw new ServiceException("没有权限访问角色数据!");