mirror of
https://gitee.com/log4j/pig.git
synced 2025-01-03 23:42:22 +08:00
fix 用户注入 create_by 字段为空 NPE
Signed-off-by: Mac666 <support@mail.pigx.vip>
This commit is contained in:
parent
bd10793118
commit
27f24eb116
@ -96,6 +96,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|||||||
SysUser sysUser = new SysUser();
|
SysUser sysUser = new SysUser();
|
||||||
BeanUtils.copyProperties(userDto, sysUser);
|
BeanUtils.copyProperties(userDto, sysUser);
|
||||||
sysUser.setDelFlag(CommonConstants.STATUS_NORMAL);
|
sysUser.setDelFlag(CommonConstants.STATUS_NORMAL);
|
||||||
|
sysUser.setCreateBy(userDto.getUsername());
|
||||||
sysUser.setPassword(ENCODER.encode(userDto.getPassword()));
|
sysUser.setPassword(ENCODER.encode(userDto.getPassword()));
|
||||||
baseMapper.insert(sysUser);
|
baseMapper.insert(sysUser);
|
||||||
// 保存用户岗位信息
|
// 保存用户岗位信息
|
||||||
|
Loading…
Reference in New Issue
Block a user