提交 1a0a9511 authored 作者: gongwenjie's avatar gongwenjie

考勤

上级 308f944e
......@@ -68,7 +68,7 @@ public class RoleController {
return "修改角色成功";
}
} catch (Exception e) {
return "修改角色失败";
}
return "修改角色失败";
}
......
......@@ -131,11 +131,11 @@ public class RoleServiceImpl implements IRoleService {
role1.setName(role.getName());
role1.setDescription(role.getDescription());
roleDao.save(role1);
roleAuthorityDao.deleteAllByRoleId(role.getId());
roleAuthorityDao.deleteAllByRoleId(role1.getId());
List<RoleAuthority> roleAuthorities = new ArrayList<>();
for (Authority authority : role.getAuthorities()) {
RoleAuthority roleAuthority = new RoleAuthority();
roleAuthority.setRoleId(role.getId());
roleAuthority.setRoleId(role1.getId());
roleAuthority.setAuthorityId(authority.getId());
roleAuthorities.add(roleAuthority);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论