diff --git a/app/services/OrderService.go b/app/services/OrderService.go index d650b0f..d58c56e 100644 --- a/app/services/OrderService.go +++ b/app/services/OrderService.go @@ -120,7 +120,7 @@ func OrderDetailService(order *ordersmodel.OrdersProductsList) (has bool, err er conn.And(builder.Eq{"user_id": order.UserId}) } if order.Id != 0 { - conn = conn.And(builder.Eq{"id": order.Id}) + conn = conn.And(builder.Eq{"a.id": order.Id}) } if order.OrderNo != "" { conn = conn.And(builder.Eq{"order_no": order.OrderNo})