This commit is contained in:
邹宗楠
2023-09-26 15:13:54 +08:00
parent 314ca986fd
commit 065a3fce69
2 changed files with 5 additions and 4 deletions

View File

@@ -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)
}

View File

@@ -201,7 +201,7 @@ func Init() {
orderman.UpdateTaoSettleInfo()
}, []string{
"06:30:00",
"15:07:00",
"15:18:00",
})
// 每分钟轮询一次,推送骑手信息(假的订单)