|
@@ -59,6 +59,7 @@ public class RoleHandler { |
|
|
//if (CommUtil.isEmpty(set)) return R.error("未选择菜单!"); |
|
|
//if (CommUtil.isEmpty(set)) return R.error("未选择菜单!"); |
|
|
Role role = RoleCache.getInstance().get(role_id); |
|
|
Role role = RoleCache.getInstance().get(role_id); |
|
|
RoleRightContent rc = new RoleRightContent(role.getPrivilege()); |
|
|
RoleRightContent rc = new RoleRightContent(role.getPrivilege()); |
|
|
|
|
|
rc.resetItem(); |
|
|
for (Long menu_id : set) { |
|
|
for (Long menu_id : set) { |
|
|
MenuPlanItem item = MenuPlanCache.getInstance().getById(role.getSmpId(), menu_id); |
|
|
MenuPlanItem item = MenuPlanCache.getInstance().getById(role.getSmpId(), menu_id); |
|
|
RoleRight right = rc.getRoleRight(item.getId()); |
|
|
RoleRight right = rc.getRoleRight(item.getId()); |
|
|