1
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -201,7 +201,7 @@ func Init() {
|
||||
orderman.UpdateTaoSettleInfo()
|
||||
}, []string{
|
||||
"06:30:00",
|
||||
"15:07:00",
|
||||
"15:18:00",
|
||||
})
|
||||
|
||||
// 每分钟轮询一次,推送骑手信息(假的订单)
|
||||
|
||||
Reference in New Issue
Block a user