mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-22 20:54:25 +08:00
!388 fix 用户注入 create_by 字段为空 NPE
Merge pull request !388 from Mac666/N/A
This commit is contained in:
commit
6a9fc60e2b
@ -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