1
This commit is contained in:
@@ -445,6 +445,8 @@ func Init() {
|
|||||||
cms.SyncStoresCourierInfo(jxcontext.AdminCtx, nil, false, true)
|
cms.SyncStoresCourierInfo(jxcontext.AdminCtx, nil, false, true)
|
||||||
netprinter.RebindAllPrinters(jxcontext.AdminCtx, false, true)
|
netprinter.RebindAllPrinters(jxcontext.AdminCtx, false, true)
|
||||||
}, dailyWorkTimeList)
|
}, dailyWorkTimeList)
|
||||||
|
|
||||||
|
if beego.BConfig.RunMode != model.ServerTypePet {
|
||||||
ScheduleTimerFunc("doDailyWork4", func() {
|
ScheduleTimerFunc("doDailyWork4", func() {
|
||||||
curDate := utils.Time2Date(time.Now())
|
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)
|
orderman.FixedOrderManager.AmendMissingOrders(jxcontext.AdminCtx, []int{model.VendorIDJD, model.VendorIDMTWM, model.VendorIDEBAI, model.VendorIDDD}, 0, curDate.Add(-72*time.Hour), curDate, true, true)
|
||||||
@@ -453,6 +455,7 @@ func Init() {
|
|||||||
//禁用没有绑定的门店
|
//禁用没有绑定的门店
|
||||||
cms.DisabledStoreWithoutVendor(jxcontext.AdminCtx, true, true)
|
cms.DisabledStoreWithoutVendor(jxcontext.AdminCtx, true, true)
|
||||||
}, dailyWorkTimeList)
|
}, dailyWorkTimeList)
|
||||||
|
}
|
||||||
ScheduleTimerFunc("doDailyWork5", func() {
|
ScheduleTimerFunc("doDailyWork5", func() {
|
||||||
//刷新物料订单状态
|
//刷新物料订单状态
|
||||||
localjx.RefreshAllMatterOrderStatus(jxcontext.AdminCtx)
|
localjx.RefreshAllMatterOrderStatus(jxcontext.AdminCtx)
|
||||||
|
|||||||
Reference in New Issue
Block a user