This commit is contained in:
邹宗楠
2023-05-04 17:36:46 +08:00
parent 20ca1073b9
commit 85b2870a5e
2 changed files with 3 additions and 3 deletions

View File

@@ -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的映射关系

View File

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