Commit 8978b1e8 authored by zjy's avatar zjy

user/role/tright 5.20

需要增加Token
完成
parent b4c46c1b
......@@ -209,15 +209,7 @@ public class RoleServiceImpl implements RoleService {
roleGetReqVo.setId(roleVo.getId());
List<RoleVo> childList = roleDao.getChild(roleGetReqVo);
for (RoleVo child:childList) {
roleDao.remove(child);
RoleAuthorityGetReqVo reqVo1 = new RoleAuthorityGetReqVo();
reqVo1.setRoleId(child.getId());
List<RoleAuthorityVo> roleAuthorityList2 = roleAuthorityDaoImpl.getRoleAuthorityList(reqVo1);
if (roleAuthorityList2 != null && roleAuthorityList2.size() != 0){
for (RoleAuthorityVo roleAuthority:roleAuthorityList) {
roleAuthorityDaoImpl.remove(roleAuthority);
}
}
this.deleteRole(child);
}
}
......
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