增加品牌

This commit is contained in:
qiyunfanbo126.com 2024-10-17 23:03:53 +08:00
parent 9d55e97406
commit 7120d29130
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ func OrderDetailService(order *ordersmodel.OrdersProductsList) (has bool, err er
conn.And(builder.Eq{"user_id": order.UserId}) conn.And(builder.Eq{"user_id": order.UserId})
} }
if order.Id != 0 { if order.Id != 0 {
conn = conn.And(builder.Eq{"id": order.Id}) conn = conn.And(builder.Eq{"a.id": order.Id})
} }
if order.OrderNo != "" { if order.OrderNo != "" {
conn = conn.And(builder.Eq{"order_no": order.OrderNo}) conn = conn.And(builder.Eq{"order_no": order.OrderNo})