Commit 2cdd032d by 徐高华

权限重复过滤

parent 622c4acc
......@@ -275,11 +275,11 @@ public class HaobanMenuServiceImpl implements HaobanMenuService {
String gicMenuCode = gicMenu.getMenuCode();
String haobanRoles = gicMenu.getHaobanRoles() ;
if(null == authType || authType == 0) {
logger.info("authType=0 {}",gicMenuCode);
logger.info("authType无值{}",gicMenuCode);
continue;
}
if(StringUtils.isBlank(haobanRoles)) {
logger.info("haobanRoles null {}",gicMenuCode);
logger.info("haobanRoles无值{}",gicMenuCode);
continue;
}
List<String> menuCodeList = Arrays.asList(gicMenuCode) ;
......@@ -299,6 +299,7 @@ public class HaobanMenuServiceImpl implements HaobanMenuService {
for(TabHaobanRole role : hbRoleList) {
int roleType = role.getClerkType() ;
if(!addRoleTypeList.contains(roleType)) {
logger.info("角色不符合={},{}",addRoleTypeList,roleType);
continue;
}
Long roleId = role.getRoleId() ;
......@@ -306,6 +307,7 @@ public class HaobanMenuServiceImpl implements HaobanMenuService {
// 判断是否已存在
List<String> oldList = this.roleMenuMapper.getMenuInMenuCodes(wxEnterpriseId,roleId,Arrays.asList(menuCode)) ;
if(CollectionUtils.isNotEmpty(oldList)) {
logger.info("权限已存在roleId={},{}",role,menuCode);
continue;
}
menu = new TabHaobanRoleMenu() ;
......
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