同步到银豹修改
This commit is contained in:
@@ -525,6 +525,14 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
|||||||
v.Price = price
|
v.Price = price
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if len(updateList) > 0 {
|
||||||
|
rList1, _ := changeList2Yb(updateList, nil)
|
||||||
|
updateList = updateList[:]
|
||||||
|
updateList = rList1
|
||||||
|
for _, v := range updateList {
|
||||||
|
v.YbBarCode = storeDetail.YbStorePrefix + v.YbNameSuffix
|
||||||
|
}
|
||||||
|
}
|
||||||
if len(priceList) > 0 {
|
if len(priceList) > 0 {
|
||||||
_, rList2 := changeList2Yb(nil, priceList)
|
_, rList2 := changeList2Yb(nil, priceList)
|
||||||
priceList = priceList[:]
|
priceList = priceList[:]
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ func (p *PurchaseHandler) UpdateStoreSkus(ctx *jxcontext.Context, storeID int, v
|
|||||||
saveProductParam := &yinbaoapi.SaveProductParam{
|
saveProductParam := &yinbaoapi.SaveProductParam{
|
||||||
CategoryUid: v.VendorCatID,
|
CategoryUid: v.VendorCatID,
|
||||||
}
|
}
|
||||||
|
checkYbSku(v)
|
||||||
updateYbSku(vendorStoreID, v.YbBarCode, saveProductParam)
|
updateYbSku(vendorStoreID, v.YbBarCode, saveProductParam)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDYB], "修改商品")
|
failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDYB], "修改商品")
|
||||||
|
|||||||
Reference in New Issue
Block a user