Commit fa1da400 by guojuxing

登录报错修改

parent 3d09582d
...@@ -113,12 +113,14 @@ public class LoginController { ...@@ -113,12 +113,14 @@ public class LoginController {
List<MenuInfo> menuInfoList = EntityUtil.changeEntityListNew(MenuInfo.class, menuList); List<MenuInfo> menuInfoList = EntityUtil.changeEntityListNew(MenuInfo.class, menuList);
Map<String, Object> map = new HashMap<>(16); Map<String, Object> map = new HashMap<>(16);
Map<String, MenuInfo> moduleMap = new HashMap<>(16); Map<String, MenuInfo> moduleMap = new HashMap<>(16);
for (MenuInfo menuDTO : menuInfoList) { if (CollectionUtils.isNotEmpty(menuInfoList)) {
if (StringUtils.isBlank(menuDTO.getMenuUrl())) { for (MenuInfo menuDTO : menuInfoList) {
continue; if (StringUtils.isBlank(menuDTO.getMenuUrl())) {
continue;
}
moduleMap.put(menuDTO.getProjectUrlForWeb() + menuDTO.getMenuUrl(), menuDTO);
map.put(menuDTO.getMenuUrl(), menuDTO);
} }
moduleMap.put(menuDTO.getProjectUrlForWeb() + menuDTO.getMenuUrl(), menuDTO);
map.put(menuDTO.getMenuUrl(), menuDTO);
} }
userDetail.setMenuInfoList(menuInfoList); userDetail.setMenuInfoList(menuInfoList);
userDetail.setMenuUrlMap(map); userDetail.setMenuUrlMap(map);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment