This commit is contained in:
邹宗楠
2023-03-02 15:10:26 +08:00
parent 4c985c4398
commit 1b6a94f541

View File

@@ -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 {