银豹同步到京西,初版
This commit is contained in:
@@ -2337,6 +2337,11 @@ func AddSkuNameByUpc(ctx *jxcontext.Context, upc string, store *dao.StoreDetail,
|
|||||||
skuNameExt.Img = model.NOSkuNameImg
|
skuNameExt.Img = model.NOSkuNameImg
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if skuNameExt.Name == "" {
|
||||||
|
skuNameExt.Name = v.SkuList[0].SkuName
|
||||||
|
} else {
|
||||||
|
skuNameExt.Name = v.Name
|
||||||
|
}
|
||||||
skuNameExt.Name = v.Name
|
skuNameExt.Name = v.Name
|
||||||
skuNameExt.Unit = getNetUpcInfo.Unit
|
skuNameExt.Unit = getNetUpcInfo.Unit
|
||||||
skuNameExt.Skus[0].SpecQuality = getNetUpcInfo.SpecQuality
|
skuNameExt.Skus[0].SpecQuality = getNetUpcInfo.SpecQuality
|
||||||
|
|||||||
@@ -951,7 +951,7 @@ func syncStoreSkusFromYb(ctx *jxcontext.Context, storeID, vendorID int, vendorSt
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// fmt.Println("addList", utils.Format4Output(addList, false))
|
// 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))
|
// fmt.Println("deleteList", utils.Format4Output(deleteList, false))
|
||||||
taskSeqFunc := func(task *tasksch.SeqTask, step int, params ...interface{}) (result interface{}, err error) {
|
taskSeqFunc := func(task *tasksch.SeqTask, step int, params ...interface{}) (result interface{}, err error) {
|
||||||
store, _ := dao.GetStoreDetail(db, storeID, vendorID)
|
store, _ := dao.GetStoreDetail(db, storeID, vendorID)
|
||||||
|
|||||||
@@ -360,6 +360,8 @@ func doDailyWork() {
|
|||||||
cms.DisabledStoreWithoutVendor(jxcontext.AdminCtx, true, true)
|
cms.DisabledStoreWithoutVendor(jxcontext.AdminCtx, true, true)
|
||||||
//刷新物料订单状态
|
//刷新物料订单状态
|
||||||
localjx.RefreshAllMatterOrderStatus(jxcontext.AdminCtx)
|
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) {
|
func RefreshRealMobile(ctx *jxcontext.Context, vendorID int, fromTime, toTime time.Time, isAsync, isContinueWhenError bool) (hint string, err error) {
|
||||||
|
|||||||
@@ -377,7 +377,7 @@ enableEbaiStoreWrite = false
|
|||||||
enableElmStoreWrite = false
|
enableElmStoreWrite = false
|
||||||
enableMtwmStoreWrite = false
|
enableMtwmStoreWrite = false
|
||||||
enableWscStoreWrite = false
|
enableWscStoreWrite = false
|
||||||
enableYbStoreWrite = true
|
enableYbStoreWrite = false
|
||||||
|
|
||||||
jdOrgCode = "320406"
|
jdOrgCode = "320406"
|
||||||
jdToken = "77e703b7-7997-441b-a12a-2e522efb117a"
|
jdToken = "77e703b7-7997-441b-a12a-2e522efb117a"
|
||||||
|
|||||||
Reference in New Issue
Block a user