/** 重新加载缓存中的权限菜单列表 */ public void reloadOrgEntityMap() { ConstantValue.locationTreeMap.clear(); List<CatalogInfoBO> infoList = catalogInfoService.findAllCatalogInfo(); if (infoList != null && infoList.size() > 0) { for (CatalogInfoBO bo : infoList) { List<OrgEntityInfoBO> orgList = orgEntityInfoService.findOrgEntityInfoByCatalogInfoId(bo.getInfoId()); ConstantValue.locationTreeMap.put(bo.getInfoId(), orgList); } } }
public void reloadOrgSocialMap() { ConstantValue.socialMap.clear(); List<CatalogInfoBO> cl = catalogInfoService.findAllCatalogInfo(); if (cl != null && cl.size() > 0) { for (CatalogInfoBO c : cl) { List<OrgSocialInfoBO> sl = socialInfoService.findAllByInfoId(c.getInfoId()); if (sl != null && sl.size() > 0) { ConstantValue.socialMap.put(c.getInfoId(), sl); } } } }