From 0eff558bf0b83bbf2b8d5c2e3d3c73a944ff59bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 31 Dec 2024 14:10:15 +0800 Subject: [PATCH] 1 --- business/jxstore/misc/misc.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index f40e033e8..5d811afa3 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -446,16 +446,16 @@ func Init() { netprinter.RebindAllPrinters(jxcontext.AdminCtx, false, true) }, dailyWorkTimeList) - if beego.BConfig.RunMode != model.ServerTypePet { - ScheduleTimerFunc("doDailyWork4", func() { - curDate := utils.Time2Date(time.Now()) - orderman.FixedOrderManager.AmendMissingOrders(jxcontext.AdminCtx, []int{model.VendorIDJD, model.VendorIDMTWM, model.VendorIDEBAI, model.VendorIDDD}, 0, curDate.Add(-72*time.Hour), curDate, true, true) - //只传toDate默认刷新toDate到5天以前的订单 - orderman.RefreshOrdersWithoutJxStoreID(jxcontext.AdminCtx, "", "", true, true) - //禁用没有绑定的门店 - cms.DisabledStoreWithoutVendor(jxcontext.AdminCtx, true, true) - }, dailyWorkTimeList) - } + //if beego.BConfig.RunMode != model.ServerTypePet { + ScheduleTimerFunc("doDailyWork4", func() { + curDate := utils.Time2Date(time.Now()) + orderman.FixedOrderManager.AmendMissingOrders(jxcontext.AdminCtx, []int{model.VendorIDJD, model.VendorIDMTWM, model.VendorIDEBAI, model.VendorIDDD}, 0, curDate.Add(-72*time.Hour), curDate, true, true) + //只传toDate默认刷新toDate到5天以前的订单 + orderman.RefreshOrdersWithoutJxStoreID(jxcontext.AdminCtx, "", "", true, true) + //禁用没有绑定的门店 + cms.DisabledStoreWithoutVendor(jxcontext.AdminCtx, true, true) + }, dailyWorkTimeList) + //} ScheduleTimerFunc("doDailyWork5", func() { //刷新物料订单状态 localjx.RefreshAllMatterOrderStatus(jxcontext.AdminCtx)