提交 0729cbdb authored 作者: gongwenjie's avatar gongwenjie

合并分支 'gwj' 到 'master'

代码修改 查看合并请求 !57
流水线 #78 已取消 于阶段
...@@ -412,7 +412,7 @@ public class UserServiceImpl implements IUserService { ...@@ -412,7 +412,7 @@ public class UserServiceImpl implements IUserService {
List<RoleAuthority> roleAuthoritieList = new ArrayList<>(); List<RoleAuthority> roleAuthoritieList = new ArrayList<>();
List<Authority> authorities = authorityDao.findAllByNameIn(auname); List<Authority> authorities = authorityDao.findAllByNameIn(auname);
List<RoleAuthority> roleAuthorities = roleAuthorityDao.findAllByRoleId(role.getId()); List<RoleAuthority> roleAuthorities = roleAuthorityDao.findAllByRoleId(role.getId());
if(roleAuthorities==null&&roleAuthorities.size()==0){ if(roleAuthorities==null||roleAuthorities.size()==0){
for (Authority authority : authorities) { for (Authority authority : authorities) {
roleAuthoritieList.add(new RoleAuthority(null,role.getId(),authority.getId())); roleAuthoritieList.add(new RoleAuthority(null,role.getId(),authority.getId()));
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论