This commit is contained in:
苏尹岚
2021-04-12 09:32:53 +08:00
parent fdf8022695
commit 5368642312
2 changed files with 6 additions and 1 deletions

View File

@@ -188,6 +188,11 @@ func Init() {
report.RefreshStoreManageState(jxcontext.AdminCtx)
}, 5*time.Second, 20*time.Minute)
ScheduleTimerFuncByInterval(func() {
curDate := utils.Time2Date(time.Now())
orderman.FixedOrderManager.AmendMissingOrders(jxcontext.AdminCtx, []int{model.VendorIDJD, model.VendorIDMTWM, model.VendorIDEBAI}, 0, curDate, curDate, true, true)
}, 5*time.Second, 10*time.Minute)
ScheduleTimerFunc("auto enable remote store", func() {
cms.EnableHaveRestStores(jxcontext.AdminCtx, false, true)
// cms.OpenRemoteStoreByJxStatus(jxcontext.AdminCtx, nil, nil, false, false, true)