|
@@ -311,13 +311,15 @@ namespace GxPress.Repository.Implement
|
|
|
//用户不存在,自动注册
|
|
|
if (user == null)
|
|
|
{
|
|
|
- user=new User();
|
|
|
+ user = new User();
|
|
|
user.Name = request.Phone;
|
|
|
user.Phone = request.Phone;
|
|
|
user.Id = await InsertAsync(user);
|
|
|
result.UserId = user.Id;
|
|
|
result.DepartmentId = user.DepartmentId;
|
|
|
result.User = _mapper.Map<UserResult>(user);
|
|
|
+ result.IsAddUser = true;
|
|
|
+ result.UserEntity = user;
|
|
|
return result;
|
|
|
}
|
|
|
}
|