This commit is contained in:
suyl
2021-08-13 17:22:12 +08:00
parent 07635aa5ba
commit 09e4414d0e
2 changed files with 5 additions and 1 deletions

View File

@@ -1978,7 +1978,7 @@ func RrefreshMtwmVendorAct() (err error) {
) )
//直接做删除,把新的加进来 //直接做删除,把新的加进来
dao.ExecuteSQL(db, `TRUNCATE act_mtwm_vendor`) dao.ExecuteSQL(db, `TRUNCATE act_mtwm_vendor`)
storeMaps, _ := dao.GetStoresMapList(db, []int{model.VendorIDMTWM}, []int{668023}, []int{model.StoreStatusOpened, model.StoreStatusHaveRest, model.StoreStatusClosed}, storeMaps, _ := dao.GetStoresMapList(db, []int{model.VendorIDMTWM}, nil, []int{model.StoreStatusOpened, model.StoreStatusHaveRest, model.StoreStatusClosed},
model.StoreStatusAll, model.StoreIsSyncAll, "", "", "") model.StoreStatusAll, model.StoreIsSyncAll, "", "", "")
task := tasksch.NewParallelTask("刷新美团活动", tasksch.NewParallelConfig().SetIsContinueWhenError(true), jxcontext.AdminCtx, task := tasksch.NewParallelTask("刷新美团活动", tasksch.NewParallelConfig().SetIsContinueWhenError(true), jxcontext.AdminCtx,
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) { func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {

View File

@@ -325,6 +325,10 @@ func Init() {
//刷新门店分组管理 //刷新门店分组管理
cms.RefreshStoreBind(jxcontext.AdminCtx) cms.RefreshStoreBind(jxcontext.AdminCtx)
}, dailyWorkTimeList) }, dailyWorkTimeList)
ScheduleTimerFunc("RrefreshMtwmVendorAct", func() {
//刷新美团平台活动
act.RrefreshMtwmVendorAct()
}, dailyWorkTimeList2)
} }
ScheduleTimerFunc("AutoSaleStoreSku", func() { ScheduleTimerFunc("AutoSaleStoreSku", func() {
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, false) cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, false)