1
This commit is contained in:
@@ -1382,10 +1382,11 @@ func GetOrdersForJxPay(db *DaoDB, finishTimeBegin, finishTimeEnd time.Time) (goo
|
||||
}
|
||||
|
||||
func GetWaybills(db *DaoDB, vendorOrderID string) (waybills []*model.Waybill, err error) {
|
||||
sql := `SELECT *
|
||||
sql := ` SELECT *
|
||||
FROM waybill
|
||||
WHERE vendor_order_id = ?
|
||||
WHERE vendor_order_id = ? ORDER BY waybill_created_at asc
|
||||
`
|
||||
|
||||
sqlParams := []interface{}{vendorOrderID}
|
||||
err = GetRows(db, &waybills, sql, sqlParams)
|
||||
return waybills, err
|
||||
|
||||
Reference in New Issue
Block a user