|
|
@@ -168,7 +168,7 @@ public class NewRoleServiceImpl extends BaseMybatisDao<RoleMapper> implements Ne
|
|
|
@Override
|
|
|
public int updatedimission(String aid, String transferId) {
|
|
|
List<Integer> list=roleResourcesMapper.selectAdminRoleResources(aid);
|
|
|
- if (list.size()<1) {
|
|
|
+ if (list.size()<1||list.get(0)==null) {
|
|
|
throw new BusinessException(new Error("","用户角色资源不存在"));
|
|
|
}
|
|
|
for (Integer s : list) {
|