not_null 2022-05-10 10:20:41 +00:00 committed by Gitee
parent 8505873e1b
commit 8ebac3e445
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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