Merge pull request !163 from not_null/N/A
pull/2/head
芋道源码 2022-05-17 01:49:09 +00:00 committed by Gitee
commit b88b6904bf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 0 deletions

View File

@ -215,6 +215,9 @@ public class RoleServiceImpl implements RoleService {
@Override
public List<RoleDO> getRoles(@Nullable Collection<Integer> statuses) {
if (statuses==null) {
return roleMapper.selectList();
}
return roleMapper.selectListByStatus(statuses);
}