diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index 1ce45fbc0..33c0fa3fa 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -222,9 +222,9 @@ func Init() { // 每天更新美团门当的结算信息和配送费等等 ScheduleTimerFunc("LoadingStoreOrderSettleAmount", func() { - // delivery.LoadingStoreOrderSettleAmount(0, 0, nil) + delivery.LoadingStoreOrderSettleAmount(0, 0, nil) }, []string{ - "04:50:00", + "19:50:00", }) // 定时任务更新昨天的都要商品和本地商品id的映射关系 diff --git a/business/partner/delivery/rider.go b/business/partner/delivery/rider.go index 78591e901..01a479019 100644 --- a/business/partner/delivery/rider.go +++ b/business/partner/delivery/rider.go @@ -410,7 +410,7 @@ func LoadingStoreOrderSettleAmount(startTime, endTime int64, jxStoreId []int) er var ( db = dao.GetDB() now = time.Now() - from = time.Date(now.Year(), now.Month(), now.Day()-2, 0, 0, 0, 0, time.Local).Unix() + from = time.Date(now.Year(), now.Month(), now.Day()-4, 0, 0, 0, 0, time.Local).Unix() to = time.Date(now.Year(), now.Month(), now.Day()-1, 23, 59, 59, 59, time.Local).Unix() )