diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index a268d5a6b..f48170ef0 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -2703,10 +2703,10 @@ func UpdateTaoSettleInfo() { db := dao.GetDB() var count = 0 - timeStart := time.Now().Add(-24 * 26 * time.Hour) + timeStart := time.Now().Add(-24 * 14 * time.Hour) startTime := time.Date(timeStart.Year(), timeStart.Month(), timeStart.Day(), 0, 0, 0, 0, timeStart.Location()) - timeEnd := time.Now().Add(-24 * 14 * time.Hour) + timeEnd := time.Now().Add(-24 * 2 * time.Hour) endTime := time.Date(timeEnd.Year(), timeEnd.Month(), timeEnd.Day()-1, 23, 59, 59, 0, timeStart.Location()) storeMaps, err := dao.GetTaoOrderVendor(db, startTime, endTime) @@ -2715,6 +2715,7 @@ func UpdateTaoSettleInfo() { } for k, v := range storeMaps { + globals.SugarLogger.Debugf("门店id : %s", k) count++ settleInfo, err := tao.GetOrderTotalShopMoney(v, k, startTime, endTime) if err != nil { @@ -2752,5 +2753,5 @@ func UpdateTaoSettleInfo() { } } } - globals.SugarLogger.Debug("========count := %d", count) + globals.SugarLogger.Debugf("========count := %d", count) } diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index 889b70fc2..efb389a0c 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -201,7 +201,7 @@ func Init() { orderman.UpdateTaoSettleInfo() }, []string{ "06:30:00", - "15:07:00", + "15:18:00", }) // 每分钟轮询一次,推送骑手信息(假的订单)