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();
|
||||
BeanUtils.copyProperties(userDto, sysUser);
|
||||
sysUser.setDelFlag(CommonConstants.STATUS_NORMAL);
|
||||
sysUser.setCreateBy(userDto.getUsername());
|
||||
sysUser.setPassword(ENCODER.encode(userDto.getPassword()));
|
||||
baseMapper.insert(sysUser);
|
||||
// 保存用户岗位信息
|
||||
|
Loading…
Reference in New Issue
Block a user