Commit d706cc3fb3af0e94bd91d3731715f6b9ce05e78d
1 parent
185ea9e8
修复导入用户后编辑报错
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/user/AdminUserServiceImpl.java
| ... | ... | @@ -416,7 +416,7 @@ public class AdminUserServiceImpl implements AdminUserService { |
| 416 | 416 | AdminUserDO existUser = userMapper.selectByUsername(importUser.getUsername()); |
| 417 | 417 | if (existUser == null) { |
| 418 | 418 | userMapper.insert(UserConvert.INSTANCE.convert(importUser) |
| 419 | - .setPassword(encodePassword(userInitPassword))); // 设置默认密码 | |
| 419 | + .setPassword(encodePassword(userInitPassword)).setPostIds(new HashSet<>())); // 设置默认密码及空岗位编号数组 | |
| 420 | 420 | respVO.getCreateUsernames().add(importUser.getUsername()); |
| 421 | 421 | return; |
| 422 | 422 | } | ... | ... |