| | |
| | | secondFamilyIdsBuffer.deleteCharAt(secondFamilyIdsBuffer.length() - 1); |
| | | } |
| | | |
| | | }else{ |
| | | String authorities = secondFamilyAuthority.substring(2, secondFamilyAuthority.length() - 1); |
| | | if (authorities.contains(" ")) { |
| | | //空格隔开得到菜单id,看是否有对应的权限 |
| | | String[] authorityIdList = authorities.split(" "); |
| | | for (String s : authorityIdList) { |
| | | if (s.equals(PROPERTY_LIST)) { |
| | | secondFamilyIdsBuffer.append(secondFamilyAuthority.charAt(0)).append(","); |
| | | break; |
| | | } |
| | | } |
| | | } else { |
| | | if (authorities.equals(PROPERTY_LIST)) { |
| | | secondFamilyIdsBuffer.append(secondFamilyAuthority.charAt(0)).append(","); |
| | | } |
| | | } |
| | | //把后面的逗号去掉 |
| | | if (secondFamilyIdsBuffer.length() > 1) { |
| | | secondFamilyIdsBuffer.deleteCharAt(secondFamilyIdsBuffer.length() - 1); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | //将StringBuffer转成String |
| | | String secondFamilyIds = secondFamilyIdsBuffer.toString(); |
| | | |