diff --git a/business/jxstore/cms/sku.go b/business/jxstore/cms/sku.go index f1138a105..51c759bb0 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -2337,6 +2337,11 @@ func AddSkuNameByUpc(ctx *jxcontext.Context, upc string, store *dao.StoreDetail, skuNameExt.Img = model.NOSkuNameImg } } + if skuNameExt.Name == "" { + skuNameExt.Name = v.SkuList[0].SkuName + } else { + skuNameExt.Name = v.Name + } skuNameExt.Name = v.Name skuNameExt.Unit = getNetUpcInfo.Unit skuNameExt.Skus[0].SpecQuality = getNetUpcInfo.SpecQuality diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index ec7f925a5..5cd26821a 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -951,7 +951,7 @@ func syncStoreSkusFromYb(ctx *jxcontext.Context, storeID, vendorID int, vendorSt } } // fmt.Println("addList", utils.Format4Output(addList, false)) - fmt.Println("updateList", utils.Format4Output(updateList, false)) + // fmt.Println("updateList", utils.Format4Output(updateList, false)) // fmt.Println("deleteList", utils.Format4Output(deleteList, false)) taskSeqFunc := func(task *tasksch.SeqTask, step int, params ...interface{}) (result interface{}, err error) { store, _ := dao.GetStoreDetail(db, storeID, vendorID) diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index 166c150cf..582f971d1 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -360,6 +360,8 @@ func doDailyWork() { cms.DisabledStoreWithoutVendor(jxcontext.AdminCtx, true, true) //刷新物料订单状态 localjx.RefreshAllMatterOrderStatus(jxcontext.AdminCtx) + //同步银豹到京西 + cms.CurVendorSync.SyncStoreSkusFromYb(jxcontext.AdminCtx, nil, true, true) } func RefreshRealMobile(ctx *jxcontext.Context, vendorID int, fromTime, toTime time.Time, isAsync, isContinueWhenError bool) (hint string, err error) { diff --git a/conf/app.conf b/conf/app.conf index 7225e3543..5ac44b17a 100644 --- a/conf/app.conf +++ b/conf/app.conf @@ -377,7 +377,7 @@ enableEbaiStoreWrite = false enableElmStoreWrite = false enableMtwmStoreWrite = false enableWscStoreWrite = false -enableYbStoreWrite = true +enableYbStoreWrite = false jdOrgCode = "320406" jdToken = "77e703b7-7997-441b-a12a-2e522efb117a"