|
|
@@ -38,7 +38,7 @@ public class PreviewMenuTreeService { |
|
|
|
List<MenuVO> menuVOList = buildMenu(prj_id, module, us,home); |
|
|
|
if (!CommUtil.isEmpty(menuVOList)) { |
|
|
|
R r = R.success(menuVOList); |
|
|
|
if(home.getId()>0){ |
|
|
|
if(home.getId()!=null&&home.getId()>0){ |
|
|
|
r.put("home",home); |
|
|
|
} |
|
|
|
return r; |
|
|
@@ -85,7 +85,7 @@ public class PreviewMenuTreeService { |
|
|
|
} |
|
|
|
|
|
|
|
public List<MenuVO> buildMenu(String prj_id, String module, UserSession us,MenuVO home) { |
|
|
|
Set<MenuPlan> set = RoleHelper.getMenuPlans(us.getUserId(),us.getPartyId()); |
|
|
|
Set<MenuPlan> set = RoleHelper.isAdmin(us.getUserId()) ? MenuPlanCache.getInstance().getByP(prj_id):RoleHelper.getMenuPlans(us.getUserId(),us.getPartyId()); |
|
|
|
if (CommUtil.isEmpty(set)) { |
|
|
|
return new ArrayList<>(); |
|
|
|
} |
|
|
|