- search vendor_order_id2 when orderID is specified in GetOrders
This commit is contained in:
@@ -256,9 +256,10 @@ func (c *OrderManager) GetOrders(ctx *jxcontext.Context, fromDateStr, toDateStr
|
||||
}
|
||||
}
|
||||
if params["orderID"] != nil {
|
||||
sqlWhere = " WHERE t1.vendor_order_id = ?"
|
||||
sqlWhere = " WHERE (t1.vendor_order_id = ? OR t1.vendor_order_id2 = ?)"
|
||||
sqlParams = []interface{}{
|
||||
params["orderID"].(string),
|
||||
params["orderID"],
|
||||
params["orderID"],
|
||||
}
|
||||
} else {
|
||||
fromDate, err2 := utils.TryStr2Time(fromDateStr)
|
||||
|
||||
Reference in New Issue
Block a user