dev:BUG修改
This commit is contained in:
@@ -472,6 +472,9 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
|
||||
}
|
||||
//查询一级
|
||||
JSONArray pa = baseMapper.queryPdaAuthority(accountId, "0", null);
|
||||
if(ObjectUtil.isEmpty(pa)){
|
||||
throw new BadRequestException("当前用户无菜单权限!");
|
||||
}
|
||||
JSONObject result = pa.getJSONObject(0);
|
||||
//查询二级
|
||||
JSONArray SecondResults = baseMapper.queryPdaAuthority(accountId, "1", null);
|
||||
@@ -484,7 +487,7 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
|
||||
row.put("sonTree", ThirdResults);
|
||||
roleTree.add(row);
|
||||
}
|
||||
result.put("sonTree", roleTree);
|
||||
result.put("sonTree", roleTree);
|
||||
|
||||
returnjo.put("code", "1");
|
||||
returnjo.put("desc", "查询成功!");
|
||||
|
||||
Reference in New Issue
Block a user