银豹同步到京西,初版

This commit is contained in:
苏尹岚
2020-04-28 09:11:35 +08:00
parent 09fc959fff
commit 3243ac42e1
4 changed files with 9 additions and 2 deletions

View File

@@ -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

View File

@@ -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)