diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index e8efed825..13913f3c6 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -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 {