Commit fa8345bf by guojuxing

权限拦截修复:如果层级小于等于2的进行额外判断

parent 05cd3ddb
......@@ -101,12 +101,14 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
if (menuInfo != null) {
Map<String, MenuInfo> tempMap = listToMap(menuInfoList);
Integer temp = getOperationModule(menuInfo.getMenuId(), tempMap);
Integer temp = menuInfo.getMenuId();
//获取第二层级的页面
while (tempMap.get(temp.toString()).getLevel().intValue() != 2) {
temp = getOperationModule(tempMap.get(temp.toString()).getMenuId(), tempMap);
if (menuInfo.getLevel().intValue() > 2) {
temp = getOperationModule(menuInfo.getMenuId(), tempMap);
while (tempMap.get(temp.toString()).getLevel().intValue() != 2) {
temp = getOperationModule(tempMap.get(temp.toString()).getMenuId(), tempMap);
}
}
int secondLevelMenuId = tempMap.get(temp.toString()).getMenuId();
String secondLevelMenuName = tempMap.get(temp.toString()).getMenuName();
//获取第一层级的页面
......
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