Skip to content

Commit 5771f6d

Browse files
committed
Solves error on order detail. Related to dotnet-architecture#4
1 parent b60ac95 commit 5771f6d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Services/Ordering/Ordering.API/Application/Queries/OrderQueries.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ public async Task<dynamic> GetOrder(int id)
2828
var result = await connection.QueryAsync<dynamic>(
2929
@"select o.[Id] as ordernumber,o.OrderDate as date, os.Name as status,
3030
oi.ProductName as productname, oi.Units as units, oi.UnitPrice as unitprice, oi.PictureUrl as pictureurl,
31-
o.Street as street, o.City as city, o.Country as country, o.State as state, o.ZipCode as zipcode
31+
a.Street as street, a.City as city, a.Country as country, a.State as state, a.ZipCode as zipcode
3232
FROM ordering.Orders o
33+
INNER JOIN ordering.Address a ON o.AddressId = a.Id
3334
LEFT JOIN ordering.Orderitems oi ON o.Id = oi.orderid
3435
LEFT JOIN ordering.orderstatus os on o.OrderStatusId = os.Id
3536
WHERE o.Id=@id"

0 commit comments

Comments
 (0)