Commit 1699b411 by songyinghui

feature: 菜单权限初始化 版本切换

parent c6dc0560
...@@ -559,8 +559,10 @@ public class HaobanRoleApiServiceImpl implements HaobanRoleApiService { ...@@ -559,8 +559,10 @@ public class HaobanRoleApiServiceImpl implements HaobanRoleApiService {
if (CollectionUtils.isEmpty(highMenuCodes) || CollectionUtils.isEmpty(lowMenuCodes)) { if (CollectionUtils.isEmpty(highMenuCodes) || CollectionUtils.isEmpty(lowMenuCodes)) {
continue; continue;
} }
highMenuCodes.removeAll(lowMenuCodes); menuCodes = highMenuCodes
menuCodes = highMenuCodes; .stream()
.filter(item -> !lowMenuCodes.contains(item))
.collect(Collectors.toList());
} }
logger.info("本次对应的menuCode:{}", JSON.toJSONString(menuCodes)); logger.info("本次对应的menuCode:{}", JSON.toJSONString(menuCodes));
List<String> hasExistMenuCodes = haobanRoleMenuService.getByWxEnterpriseIdAndRoleId(wxEnterpriseId, haobanRoleBO.getRoleId()); List<String> hasExistMenuCodes = haobanRoleMenuService.getByWxEnterpriseIdAndRoleId(wxEnterpriseId, haobanRoleBO.getRoleId());
......
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