Commit 2cdd032d by 徐高华

权限重复过滤

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