|
|
@ -246,7 +246,7 @@ public class SysRoleService extends CrudService<SysRole> implements ISysRoleServ
|
|
|
|
String menuTreeName = "";
|
|
|
|
String menuTreeName = "";
|
|
|
|
List<String> newAuthoritys = new ArrayList<>();
|
|
|
|
List<String> newAuthoritys = new ArrayList<>();
|
|
|
|
getParentName(id, newAuthoritys);
|
|
|
|
getParentName(id, newAuthoritys);
|
|
|
|
if (!newAuthoritys.get(0).isEmpty()) {
|
|
|
|
if (!CollectionUtils.isEmpty(newAuthoritys) && !newAuthoritys.get(0).isEmpty()) {
|
|
|
|
menuTreeName = newAuthoritys.get(0).substring(1);
|
|
|
|
menuTreeName = newAuthoritys.get(0).substring(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
newAuthority.append(menuTreeName).append("\n");
|
|
|
|
newAuthority.append(menuTreeName).append("\n");
|
|
|
@ -255,7 +255,7 @@ public class SysRoleService extends CrudService<SysRole> implements ISysRoleServ
|
|
|
|
List<String> delAuthoritys = new ArrayList<>();
|
|
|
|
List<String> delAuthoritys = new ArrayList<>();
|
|
|
|
String menuTreeName = "";
|
|
|
|
String menuTreeName = "";
|
|
|
|
getParentName(id, delAuthoritys);
|
|
|
|
getParentName(id, delAuthoritys);
|
|
|
|
if (!delAuthoritys.get(0).isEmpty()) {
|
|
|
|
if (!CollectionUtils.isEmpty(delAuthoritys) && !delAuthoritys.get(0).isEmpty()) {
|
|
|
|
menuTreeName = delAuthoritys.get(0).substring(1);
|
|
|
|
menuTreeName = delAuthoritys.get(0).substring(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
delAuthority.append(menuTreeName).append("\n");
|
|
|
|
delAuthority.append(menuTreeName).append("\n");
|
|
|
|