1
This commit is contained in:
@@ -1843,7 +1843,7 @@ func GetAddressRiderInfo(db *DaoDB, address string, randNumber int64) (*CourierI
|
||||
LEFT JOIN waybill w ON s.vendor_order_id = w.vendor_order_id AND w.courier_name <>"" AND w.courier_mobile <>""
|
||||
WHERE s.order_created_at >= ? AND s.status = ? AND s.delivery_type = ? AND s.consignee_address LIKE ?
|
||||
LIMIT ?,? `
|
||||
param := []interface{}{time.Now().AddDate(0, -3, 0), model.OrderStatusFinished, model.OrderDeliveryTypePlatform, "%" + fmt.Sprintf("%s", address) + "%", randNumber, 1}
|
||||
param := []interface{}{time.Now().AddDate(-1, 0, 0), model.OrderStatusFinished, model.OrderDeliveryTypePlatform, "%" + fmt.Sprintf("%s", address) + "%", randNumber, 1}
|
||||
|
||||
courier := &CourierInfo{}
|
||||
if err := GetRow(db, courier, sql, param); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user