Commit 6bb6bbdf by guojuxing

加日志

parent 1bc43597
...@@ -104,6 +104,7 @@ public class AuthInterceptor extends HandlerInterceptorAdapter { ...@@ -104,6 +104,7 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
MenuInfo menuInfo = moduleUrlMap.get(moduleUrl); MenuInfo menuInfo = moduleUrlMap.get(moduleUrl);
if (menuInfo != null) { if (menuInfo != null) {
Map<String, MenuInfo> tempMap = listToMap(menuInfoList); Map<String, MenuInfo> tempMap = listToMap(menuInfoList);
log.info("接口的菜单信息:{}", JSON.toJSONString(menuInfo));
Integer temp = menuInfo.getMenuId(); Integer temp = menuInfo.getMenuId();
//获取第二层级的页面 //获取第二层级的页面
...@@ -124,7 +125,12 @@ public class AuthInterceptor extends HandlerInterceptorAdapter { ...@@ -124,7 +125,12 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
MenuInfo secondMenuInfo = tempMap.get(temp.toString()); MenuInfo secondMenuInfo = tempMap.get(temp.toString());
secondLevelMenuId = secondMenuInfo.getMenuId(); secondLevelMenuId = secondMenuInfo.getMenuId();
secondLevelMenuName = secondMenuInfo.getMenuName(); secondLevelMenuName = secondMenuInfo.getMenuName();
secondLevelUrl = secondLevelUrl + secondMenuInfo.getProjectUrlForWeb() + secondMenuInfo.getMenuUrl(); if (StringUtils.isNotBlank(secondMenuInfo.getProjectUrlForWeb())) {
secondLevelUrl = secondLevelUrl + secondMenuInfo.getProjectUrlForWeb();
}
if (StringUtils.isNotBlank(secondMenuInfo.getMenuUrl())) {
secondLevelUrl += secondMenuInfo.getMenuUrl();
}
//获取第一层级的页面 //获取第一层级的页面
temp = getOperationModule(secondMenuInfo.getMenuId(), tempMap); temp = getOperationModule(secondMenuInfo.getMenuId(), tempMap);
firstLevelMenuId = tempMap.get(temp.toString()).getMenuId(); firstLevelMenuId = tempMap.get(temp.toString()).getMenuId();
...@@ -135,7 +141,12 @@ public class AuthInterceptor extends HandlerInterceptorAdapter { ...@@ -135,7 +141,12 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
firstLevelMenuId = firstMenuInfo.getMenuId(); firstLevelMenuId = firstMenuInfo.getMenuId();
secondLevelMenuId = firstMenuInfo.getMenuId(); secondLevelMenuId = firstMenuInfo.getMenuId();
firstLevelMenuName = firstMenuInfo.getMenuName(); firstLevelMenuName = firstMenuInfo.getMenuName();
secondLevelUrl = secondLevelUrl + firstMenuInfo.getProjectUrlForWeb() + firstMenuInfo.getMenuUrl(); if (StringUtils.isNotBlank(firstMenuInfo.getProjectUrlForWeb())) {
secondLevelUrl = secondLevelUrl + firstMenuInfo.getProjectUrlForWeb();
}
if (StringUtils.isNotBlank(firstMenuInfo.getMenuUrl())) {
secondLevelUrl += firstMenuInfo.getMenuUrl();
}
} }
log.info("一级页面的ID和名称:{},{}", firstLevelMenuId, firstLevelMenuName); log.info("一级页面的ID和名称:{},{}", firstLevelMenuId, firstLevelMenuName);
log.info("二级页面的ID和名称:{},{}", secondLevelMenuId, secondLevelMenuName); log.info("二级页面的ID和名称:{},{}", secondLevelMenuId, secondLevelMenuName);
......
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