Commit 676de3c2 by guojuxing

权限控制修复

parent f16e1d3a
......@@ -109,13 +109,23 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
temp = getOperationModule(tempMap.get(temp.toString()).getMenuId(), tempMap);
}
}
int secondLevelMenuId = tempMap.get(temp.toString()).getMenuId();
String secondLevelMenuName = tempMap.get(temp.toString()).getMenuName();
//获取第一层级的页面
temp = getOperationModule(tempMap.get(temp.toString()).getMenuId(), tempMap);
int firstLevelMenuId = tempMap.get(temp.toString()).getMenuId();
String firstLevelMenuName = tempMap.get(temp.toString()).getMenuName();
int secondLevelMenuId = 0;
String secondLevelMenuName = "无";
int firstLevelMenuId;
String firstLevelMenuName;
//如果是第二级的
if (menuInfo.getLevel().intValue() == 2) {
secondLevelMenuId = tempMap.get(temp.toString()).getMenuId();
secondLevelMenuName = tempMap.get(temp.toString()).getMenuName();
//获取第一层级的页面
temp = getOperationModule(tempMap.get(temp.toString()).getMenuId(), tempMap);
firstLevelMenuId = tempMap.get(temp.toString()).getMenuId();
firstLevelMenuName = tempMap.get(temp.toString()).getMenuName();
} else {
//第一级
firstLevelMenuId = tempMap.get(temp.toString()).getMenuId();
firstLevelMenuName = tempMap.get(temp.toString()).getMenuName();
}
log.info("一级页面的ID和名称:{},{}", firstLevelMenuId, firstLevelMenuName);
log.info("二级页面的ID和名称:{},{}", secondLevelMenuId, secondLevelMenuName);
request.setAttribute("moduleMenuId", secondLevelMenuId);
......
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