- 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 {
|
if params["orderID"] != nil {
|
||||||
sqlWhere = " WHERE t1.vendor_order_id = ?"
|
sqlWhere = " WHERE (t1.vendor_order_id = ? OR t1.vendor_order_id2 = ?)"
|
||||||
sqlParams = []interface{}{
|
sqlParams = []interface{}{
|
||||||
params["orderID"].(string),
|
params["orderID"],
|
||||||
|
params["orderID"],
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fromDate, err2 := utils.TryStr2Time(fromDateStr)
|
fromDate, err2 := utils.TryStr2Time(fromDateStr)
|
||||||
|
|||||||
Reference in New Issue
Block a user