|
@@ -38,7 +38,7 @@ public class PreviewMenuTreeService { |
|
|
List<MenuVO> menuVOList = buildMenu(prj_id, module, us,home); |
|
|
List<MenuVO> menuVOList = buildMenu(prj_id, module, us,home); |
|
|
if (!CommUtil.isEmpty(menuVOList)) { |
|
|
if (!CommUtil.isEmpty(menuVOList)) { |
|
|
R r = R.success(menuVOList); |
|
|
R r = R.success(menuVOList); |
|
|
if(home.getId()>0){ |
|
|
|
|
|
|
|
|
if(home.getId()!=null&&home.getId()>0){ |
|
|
r.put("home",home); |
|
|
r.put("home",home); |
|
|
} |
|
|
} |
|
|
return r; |
|
|
return r; |
|
@@ -85,7 +85,7 @@ public class PreviewMenuTreeService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public List<MenuVO> buildMenu(String prj_id, String module, UserSession us,MenuVO home) { |
|
|
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)) { |
|
|
if (CommUtil.isEmpty(set)) { |
|
|
return new ArrayList<>(); |
|
|
return new ArrayList<>(); |
|
|
} |
|
|
} |
|
|