提交 308f944e authored 作者: gongwenjie's avatar gongwenjie

考勤

上级 3d2cf179
...@@ -130,7 +130,7 @@ public class RoleServiceImpl implements IRoleService { ...@@ -130,7 +130,7 @@ public class RoleServiceImpl implements IRoleService {
Role role1 = byId.get(); Role role1 = byId.get();
role1.setName(role.getName()); role1.setName(role.getName());
role1.setDescription(role.getDescription()); role1.setDescription(role.getDescription());
roleDao.save(role1);
roleAuthorityDao.deleteAllByRoleId(role.getId()); roleAuthorityDao.deleteAllByRoleId(role.getId());
List<RoleAuthority> roleAuthorities = new ArrayList<>(); List<RoleAuthority> roleAuthorities = new ArrayList<>();
for (Authority authority : role.getAuthorities()) { for (Authority authority : role.getAuthorities()) {
......
...@@ -562,6 +562,7 @@ public class UserServiceImpl implements IUserService { ...@@ -562,6 +562,7 @@ public class UserServiceImpl implements IUserService {
if(optional.isPresent()){ if(optional.isPresent()){
User user = optional.get(); User user = optional.get();
user.setPassword(bCryptPasswordEncoder.encode("qwer1234")); user.setPassword(bCryptPasswordEncoder.encode("qwer1234"));
pasUserDao.save(user);
return true; return true;
} }
return false; return false;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论