Commit c6dc0560 by songyinghui

feature: 菜单权限初始化

parent 4c42a79f
......@@ -556,6 +556,9 @@ public class HaobanRoleApiServiceImpl implements HaobanRoleApiService {
// 从低版本 升级到 高版本, 此时菜单code只取 版本 差异的菜单
List<String> lowMenuCodes = menuCodeMap.get(haobanRoleBO.getClerkType() + "" + contentMaterialROleInitQDTO.getOldVersion());
List<String> highMenuCodes = menuCodeMap.get(haobanRoleBO.getClerkType() + "" + contentMaterialROleInitQDTO.getVersion());
if (CollectionUtils.isEmpty(highMenuCodes) || CollectionUtils.isEmpty(lowMenuCodes)) {
continue;
}
highMenuCodes.removeAll(lowMenuCodes);
menuCodes = highMenuCodes;
}
......
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