|
@ -59,12 +59,6 @@ public class RoleServiceImpl implements RoleService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (roleVo.getPriority() == null) { |
|
|
|
|
|
return Result.error("优先级为空"); |
|
|
|
|
|
} |
|
|
|
|
|
if (roleVo.getPriority() <= 0 || roleVo.getPriority() > 999) { |
|
|
|
|
|
return Result.error("优先级不在1-999"); |
|
|
|
|
|
} |
|
|
|
|
|
if (roleVo.getMenuIds() == null || roleVo.getMenuIds().isEmpty()) { |
|
|
if (roleVo.getMenuIds() == null || roleVo.getMenuIds().isEmpty()) { |
|
|
return Result.error("权限为空"); |
|
|
return Result.error("权限为空"); |
|
|
} |
|
|
} |
|
@ -115,13 +109,6 @@ public class RoleServiceImpl implements RoleService { |
|
|
return Result.error("角色名重复"); |
|
|
return Result.error("角色名重复"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (roleVo.getPriority() == null) { |
|
|
|
|
|
return Result.error("优先级为空"); |
|
|
|
|
|
} |
|
|
|
|
|
if (roleVo.getPriority() <= 0 || roleVo.getPriority() > 999) { |
|
|
|
|
|
return Result.error("优先级不在1-999"); |
|
|
|
|
|
} |
|
|
|
|
|
if (roleVo.getMenuIds() == null || roleVo.getMenuIds().isEmpty()) { |
|
|
if (roleVo.getMenuIds() == null || roleVo.getMenuIds().isEmpty()) { |
|
|
return Result.error("权限为空"); |
|
|
return Result.error("权限为空"); |
|
|
} else { |
|
|
} else { |
|
|