From 9ceae399710147b80ae80864393400a2dd0a4252 Mon Sep 17 00:00:00 2001 From: "qiyunfanbo126.com" <815699> Date: Thu, 17 Oct 2024 23:03:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=93=81=E7=89=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/OrderService.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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})