This commit is contained in:
suyl
2021-06-17 17:40:18 +08:00
parent 761bd82a96
commit 8229f06272

View File

@@ -218,7 +218,7 @@ func Init() {
ScheduleTimerFuncByInterval(func() { ScheduleTimerFuncByInterval(func() {
curDate := utils.Time2Date(time.Now()) curDate := utils.Time2Date(time.Now())
orderman.FixedOrderManager.AmendMissingOrders(jxcontext.AdminCtx, []int{model.VendorIDJD, model.VendorIDMTWM, model.VendorIDEBAI}, 0, curDate, curDate, true, true) orderman.FixedOrderManager.AmendMissingOrders(jxcontext.AdminCtx, []int{model.VendorIDJD, model.VendorIDMTWM, model.VendorIDEBAI}, 0, curDate, curDate, true, true)
orderman.SaveJdsOrders(jxcontext.AdminCtx, curDate.Add(-10*time.Minute), curDate) orderman.SaveJdsOrders(jxcontext.AdminCtx, time.Now().Add(-30*time.Minute), time.Now())
}, 5*time.Second, 10*time.Minute) }, 5*time.Second, 10*time.Minute)
ScheduleTimerFunc("auto enable remote store", func() { ScheduleTimerFunc("auto enable remote store", func() {