Commit 90f911e5 authored by tangf's avatar tangf

Merge branch 'master' of http://192.168.0.204/pd-new/pd-user

parents 13d18c17 8978b1e8
...@@ -209,15 +209,7 @@ public class RoleServiceImpl implements RoleService { ...@@ -209,15 +209,7 @@ public class RoleServiceImpl implements RoleService {
roleGetReqVo.setId(roleVo.getId()); roleGetReqVo.setId(roleVo.getId());
List<RoleVo> childList = roleDao.getChild(roleGetReqVo); List<RoleVo> childList = roleDao.getChild(roleGetReqVo);
for (RoleVo child:childList) { for (RoleVo child:childList) {
roleDao.remove(child); this.deleteRole(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);
}
}
} }
} }
......
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