This commit is contained in:
邹宗楠
2024-12-31 17:57:30 +08:00
parent 0eff558bf0
commit 446e9b3088
4 changed files with 28 additions and 8 deletions

View File

@@ -534,6 +534,10 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
skus, err = dao.GetStoreSkus(db, vendorID, storeID, skuIDs)
}
if storeID == 20002 {
globals.SugarLogger.Debugf("-----sku := %s", utils.Format4Output(skus, false))
}
if err != nil || len(skus) == 0 {
return err
}

View File

@@ -280,13 +280,6 @@ func Init() {
orderman.UpdateJdsOrdersStatus(jxcontext.AdminCtx, time.Now().AddDate(0, 0, -1), time.Now())
}, 5*time.Second, 5*time.Minute)
if beego.BConfig.RunMode == model.ServerTypeFruits /*|| beego.BConfig.RunMode == model.ServerTypePet*/ {
ScheduleTimerFuncByInterval(func() {
fromData := utils.Time2Date(time.Now())
toData := time.Now()
orderman.FixedOrderManager.AmendMissingOrders(jxcontext.AdminCtx, []int{model.VendorIDJD, model.VendorIDMTWM, model.VendorIDEBAI, model.VendorIDDD}, 0, fromData, toData, true, true)
}, 5*time.Second, 5*time.Minute)
}
// 抖音更新门店商品 ,接口收费暂不使用
//if beego.BConfig.RunMode != "jxgy" {
// ScheduleTimerFunc("RefreshSyncSkuList", func() {
@@ -456,6 +449,14 @@ func Init() {
cms.DisabledStoreWithoutVendor(jxcontext.AdminCtx, true, true)
}, dailyWorkTimeList)
//}
if beego.BConfig.RunMode == model.ServerTypeFruits /*|| beego.BConfig.RunMode == model.ServerTypePet*/ {
ScheduleTimerFuncByInterval(func() {
fromData := utils.Time2Date(time.Now())
toData := time.Now()
orderman.FixedOrderManager.AmendMissingOrders(jxcontext.AdminCtx, []int{model.VendorIDJD, model.VendorIDMTWM, model.VendorIDEBAI, model.VendorIDDD}, 0, fromData, toData, true, true)
}, 5*time.Second, 5*time.Minute)
}
ScheduleTimerFunc("doDailyWork5", func() {
//刷新物料订单状态
localjx.RefreshAllMatterOrderStatus(jxcontext.AdminCtx)