|
@@ -211,8 +211,10 @@ public class ResourceUmsController extends BaseController {
|
|
List<Role> roles = this.roleService.selectList(new EntityWrapper<Role>());
|
|
List<Role> roles = this.roleService.selectList(new EntityWrapper<Role>());
|
|
for(Role role : roles)
|
|
for(Role role : roles)
|
|
{
|
|
{
|
|
- Option option = new Option( role.getRoleName(),role.getId(), role.getRecordState() == 2?false:true );
|
|
|
|
- options.add(option);
|
|
|
|
|
|
+ if(role!=null){
|
|
|
|
+ Option option = new Option( role.getRoleName(),role.getId(), (role.getRecordState()!=null && role.getRecordState() == 2)?false:true );
|
|
|
|
+ options.add(option);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return ResultUtil.createSuccess(200, options);
|
|
return ResultUtil.createSuccess(200, options);
|
|
}
|
|
}
|