修正用户新增bug
This commit is contained in:
parent
de31954c6f
commit
73f8e9f0e9
@ -146,8 +146,8 @@ public class SysUserController extends BaseController {
|
|||||||
}
|
}
|
||||||
user.setCreateBy(LoginHelper.getUserId());
|
user.setCreateBy(LoginHelper.getUserId());
|
||||||
user.setPassword(BCrypt.hashpw(user.getPassword()));
|
user.setPassword(BCrypt.hashpw(user.getPassword()));
|
||||||
SysUser sysUser = MapstructUtils.convert(user, SysUser.class);
|
//SysUser sysUser = MapstructUtils.convert(user, SysUser.class);
|
||||||
return toAjax(userService.insertUser(sysUser));
|
return toAjax(userService.insertUser(user));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user