Commit 26ffac77 by guojuxing

获取用户没有权限的操作项接口修改

parent e5c178b0
......@@ -940,12 +940,12 @@ public class MenuApiServiceImpl implements MenuApiService {
}
List<MenuDTO> resultList = new ArrayList<>();
Map<Integer, Object> operationItemMap = new HashMap<>(16);
Map<String, Object> operationItemMap = new HashMap<>(16);
//查询用户拥有的操作项
List<TabSysMenuItem> menuItemList = menuItemService.listMenuItemByMenuId(authItemIdList);
if (CollectionUtils.isNotEmpty(menuItemList)) {
for (TabSysMenuItem menuItem : menuItemList) {
operationItemMap.put(menuItem.getItemId(), "1");
operationItemMap.put(menuItem.getItemId().toString(), "1");
}
}
//获取配置在权限项内的操作项数据
......@@ -954,7 +954,7 @@ public class MenuApiServiceImpl implements MenuApiService {
//当时超级管理员的时候,operationItemMap是没有值的,因此会一直有效。
if (CollectionUtils.isNotEmpty(operationItemListOfAuthItem)) {
for (MenuDTO menuDTO : operationItemListOfAuthItem) {
if (!operationItemMap.containsKey(menuDTO.getMenuId()) || StringUtils.isBlank(versionCode)
if (!operationItemMap.containsKey(menuDTO.getMenuId().toString()) || StringUtils.isBlank(versionCode)
|| !menuDTO.getMenuVersion().contains("_" + versionCode + "_")) {
//如果不存在,或者操作项的版本不对
//则是没有权限的操作项
......
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