Commit 8ebac3e445a7e19148c178a562d6f4c316a324c2
Committed by
Gitee
1 parent
8505873e
处理问题 https://gitee.com/zhijiantianya/ruoyi-vue-pro/issues/I560LX
处理问题 https://gitee.com/zhijiantianya/ruoyi-vue-pro/issues/I560LX
Showing
1 changed file
with
3 additions
and
0 deletions
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/permission/RoleServiceImpl.java
| ... | ... | @@ -215,6 +215,9 @@ public class RoleServiceImpl implements RoleService { |
| 215 | 215 | |
| 216 | 216 | @Override |
| 217 | 217 | public List<RoleDO> getRoles(@Nullable Collection<Integer> statuses) { |
| 218 | + if (statuses==null) { | |
| 219 | + return roleMapper.selectList(); | |
| 220 | + } | |
| 218 | 221 | return roleMapper.selectListByStatus(statuses); |
| 219 | 222 | } |
| 220 | 223 | ... | ... |