把日常跑的拆开看
This commit is contained in:
@@ -279,12 +279,15 @@ func Init() {
|
|||||||
ScheduleTimerFunc("RefreshJdAfsOrderTotalShopMoney", func() {
|
ScheduleTimerFunc("RefreshJdAfsOrderTotalShopMoney", func() {
|
||||||
orderman.RefreshJdAfsOrderTotalShopMoney()
|
orderman.RefreshJdAfsOrderTotalShopMoney()
|
||||||
}, openRemoteStoreTimeList)
|
}, openRemoteStoreTimeList)
|
||||||
ScheduleTimerFunc("doDailyWork", func() {
|
ScheduleTimerFunc("doDailyWork1", func() {
|
||||||
globals.SugarLogger.Debug("doDailyWork")
|
|
||||||
|
|
||||||
//同步商品额外前缀和水印图(打标记)
|
//同步商品额外前缀和水印图(打标记)
|
||||||
cms.SyncSkuExperfixAndWatermark(jxcontext.AdminCtx)
|
cms.SyncSkuExperfixAndWatermark(jxcontext.AdminCtx)
|
||||||
|
}, dailyWorkTimeList)
|
||||||
|
ScheduleTimerFunc("doDailyWork2", func() {
|
||||||
|
//刷新京东会员
|
||||||
|
report.RefreshJDMembers(jxcontext.AdminCtx)
|
||||||
|
}, dailyWorkTimeList)
|
||||||
|
ScheduleTimerFunc("doDailyWork3", func() {
|
||||||
dao.SetStoresMapSyncStatus(dao.GetDB(), nil, nil, model.SyncFlagStoreStatus)
|
dao.SetStoresMapSyncStatus(dao.GetDB(), nil, nil, model.SyncFlagStoreStatus)
|
||||||
cms.CurVendorSync.SyncStore2(jxcontext.AdminCtx, dao.GetDB(), []int{model.VendorIDMTWM, model.VendorIDJD, model.VendorIDEBAI}, nil, true, true)
|
cms.CurVendorSync.SyncStore2(jxcontext.AdminCtx, dao.GetDB(), []int{model.VendorIDMTWM, model.VendorIDJD, model.VendorIDEBAI}, nil, true, true)
|
||||||
|
|
||||||
@@ -292,12 +295,16 @@ func Init() {
|
|||||||
InitEx()
|
InitEx()
|
||||||
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)
|
||||||
|
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}, 0, curDate.Add(-72*time.Hour), curDate, true, true)
|
orderman.FixedOrderManager.AmendMissingOrders(jxcontext.AdminCtx, []int{model.VendorIDJD, model.VendorIDMTWM, model.VendorIDEBAI}, 0, curDate.Add(-72*time.Hour), curDate, true, true)
|
||||||
//只传toDate默认刷新toDate到5天以前的订单
|
//只传toDate默认刷新toDate到5天以前的订单
|
||||||
orderman.RefreshOrdersWithoutJxStoreID(jxcontext.AdminCtx, "", "", true, true)
|
orderman.RefreshOrdersWithoutJxStoreID(jxcontext.AdminCtx, "", "", true, true)
|
||||||
//禁用没有绑定的门店
|
//禁用没有绑定的门店
|
||||||
cms.DisabledStoreWithoutVendor(jxcontext.AdminCtx, true, true)
|
cms.DisabledStoreWithoutVendor(jxcontext.AdminCtx, true, true)
|
||||||
|
}, dailyWorkTimeList)
|
||||||
|
ScheduleTimerFunc("doDailyWork5", func() {
|
||||||
//刷新物料订单状态
|
//刷新物料订单状态
|
||||||
localjx.RefreshAllMatterOrderStatus(jxcontext.AdminCtx)
|
localjx.RefreshAllMatterOrderStatus(jxcontext.AdminCtx)
|
||||||
//同步美团配送与否状态及美团门店是否存在
|
//同步美团配送与否状态及美团门店是否存在
|
||||||
@@ -306,8 +313,6 @@ func Init() {
|
|||||||
RefreshAfsOrderStatusAccess(jxcontext.AdminCtx)
|
RefreshAfsOrderStatusAccess(jxcontext.AdminCtx)
|
||||||
//刷新门店分组管理
|
//刷新门店分组管理
|
||||||
cms.RefreshStoreBind(jxcontext.AdminCtx)
|
cms.RefreshStoreBind(jxcontext.AdminCtx)
|
||||||
//刷新京东会员
|
|
||||||
report.RefreshJDMembers(jxcontext.AdminCtx)
|
|
||||||
}, dailyWorkTimeList)
|
}, dailyWorkTimeList)
|
||||||
}
|
}
|
||||||
ScheduleTimerFunc("AutoSaleStoreSku", func() {
|
ScheduleTimerFunc("AutoSaleStoreSku", func() {
|
||||||
|
|||||||
Reference in New Issue
Block a user