修正用户新增bug

This commit is contained in:
dataprince 2023-09-12 11:57:24 +08:00
parent de31954c6f
commit 73f8e9f0e9

View File

@ -146,8 +146,8 @@ public class SysUserController extends BaseController {
}
user.setCreateBy(LoginHelper.getUserId());
user.setPassword(BCrypt.hashpw(user.getPassword()));
SysUser sysUser = MapstructUtils.convert(user, SysUser.class);
return toAjax(userService.insertUser(sysUser));
//SysUser sysUser = MapstructUtils.convert(user, SysUser.class);
return toAjax(userService.insertUser(user));
}
/**