统计价格

This commit is contained in:
苏尹岚
2019-12-06 19:13:08 +08:00
parent 071d30efe7
commit 7092b7aa95

View File

@@ -6,6 +6,8 @@ import (
"sync"
"time"
"git.rosy.net.cn/jx-callback/business/jxstore/report"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/jxcallback/orderman"
"git.rosy.net.cn/jx-callback/business/jxstore/act"
@@ -31,6 +33,9 @@ var (
dailyWorkTimeList = []string{
"20:30:00",
}
createStorePriceTimeList = []string{
"23:00:00",
}
refreshPageActTimeList = []string{
"7:00:00",
"8:00:00",
@@ -126,6 +131,9 @@ func Init() {
ScheduleTimerFunc("ChangeStoreSkuSaleStatus", func() {
cms.CurVendorSync.ChangeStoreSkuSaleStatus(jxcontext.AdminCtx, 0, true, true)
}, ChangeStoreSkuSaleStatusList)
ScheduleTimerFunc("BeginSavePriceRefer", func() {
report.BeginSavePriceRefer(jxcontext.AdminCtx, nil, nil)
}, createStorePriceTimeList)
}
ScheduleTimerFunc("AutoSaleStoreSku", func() {
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, false)