李昊 4 年之前
父節點
當前提交
f41fde6cbf
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      GxPress/Repository/GxPress.Repository.Implement/UserRepository.cs

+ 4 - 0
GxPress/Repository/GxPress.Repository.Implement/UserRepository.cs

@@ -314,6 +314,10 @@ namespace GxPress.Repository.Implement
                         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);
+                        return result;
                     }
                 }
                 else