From 5ec09063e67a71695f758139dfc6ec852f675fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 6 Sep 2023 15:22:42 +0800 Subject: [PATCH] 1 --- business/jxstore/misc/misc.go | 2 +- business/model/dao/dao_order.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index 146b53d97..552e2a5da 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -210,7 +210,7 @@ func Init() { // 每分钟轮询一次,推送骑手信息(假的订单) ScheduleTimerFuncByInterval(func() { delivery.UpdateFakeWayBillToTiktok() - }, 10*time.Second, 5*time.Minute) + }, 10*time.Second, 1*time.Minute) // 每五分钟轮询一次推送骑手信息坐标给美团(真的订单) ScheduleTimerFuncByInterval(func() { diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index be68d2a85..758107ef7 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -1521,10 +1521,10 @@ func GetWayBillFakeOrder() (waybills []*model.Waybill, err error) { sql := ` SELECT * FROM waybill - WHERE waybill_vendor_id = ? AND status < ? AND waybill_created_at>= ? AND waybill_created_at< ? + WHERE waybill_vendor_id IN (` + GenQuestionMarks(2) + `) AND status < ? AND waybill_created_at>= ? AND waybill_created_at< ? ` - sqlParams := []interface{}{model.VendorJXFakeWL, model.WaybillStatusFailed, time.Now().Add(-2 * 24 * time.Hour), time.Now()} + sqlParams := []interface{}{model.VendorJXFakeWL, model.VendorIDUnknown, model.WaybillStatusFailed, time.Now().Add(-2 * 24 * time.Hour), time.Now()} err = GetRows(GetDB(), &waybills, sql, sqlParams) return waybills, err }