diff --git a/app/models/orders/orders.go b/app/models/orders/orders.go index 82f5aca..4f72030 100644 --- a/app/models/orders/orders.go +++ b/app/models/orders/orders.go @@ -118,7 +118,7 @@ func (m *ordersModel) Search( args = append(args, merchant_id) } if product_id != 0 { - sql += " and merchant_id = ?" + sql += " and product_id = ?" args = append(args, product_id) } if out_trade_no != "" {