提交 3b8e139f 编写于 作者: 郝先瑞

fix(SysUserServiceImpl.java): 用户保存方法数据库 password 值为null

Closes #I54T9F
上级 f36f88d5
......@@ -79,9 +79,9 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
public boolean saveUser(UserForm userForm) {
SysUser user = new SysUser();
user.setPassword(passwordEncoder.encode(SystemConstants.DEFAULT_USER_PASSWORD)); // 初始化默认密码
BeanUtil.copyProperties(userForm, user);
user.setPassword(passwordEncoder.encode(SystemConstants.DEFAULT_USER_PASSWORD)); // 初始化默认密码
boolean result = this.save(user);
if (result) {
Long userId = user.getId();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册