1
This commit is contained in:
@@ -336,6 +336,8 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
|||||||
param.SpecPrices = GetSpecPrices(param.Specs, storeSku)
|
param.SpecPrices = GetSpecPrices(param.Specs, storeSku)
|
||||||
// ProductFormatNew
|
// ProductFormatNew
|
||||||
productFormatNew, err := GetProductFormatNew(param.CategoryLeafId, storeDetail.VendorOrgCode)
|
productFormatNew, err := GetProductFormatNew(param.CategoryLeafId, storeDetail.VendorOrgCode)
|
||||||
|
globals.SugarLogger.Debug("创建=============productFormatNew", productFormatNew)
|
||||||
|
globals.SugarLogger.Debug("创建=============productFormatNew err", err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@@ -400,8 +402,8 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
|||||||
param.SpecPrices = GetSpecPrices(param.Specs, storeSku)
|
param.SpecPrices = GetSpecPrices(param.Specs, storeSku)
|
||||||
// ProductFormatNew
|
// ProductFormatNew
|
||||||
productFormatNew, err := GetProductFormatNew(param.CategoryLeafId, storeDetail.VendorOrgCode)
|
productFormatNew, err := GetProductFormatNew(param.CategoryLeafId, storeDetail.VendorOrgCode)
|
||||||
globals.SugarLogger.Debug("=============productFormatNew", productFormatNew)
|
globals.SugarLogger.Debug("更新=============productFormatNew", productFormatNew)
|
||||||
globals.SugarLogger.Debug("=============productFormatNew err", err)
|
globals.SugarLogger.Debug("更新=============productFormatNew err", err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@@ -523,19 +525,19 @@ func (p *PurchaseHandler) UpdateStoreSkusPrice(ctx *jxcontext.Context, vendorOrg
|
|||||||
//data, _ := json.Marshal(skuSize)
|
//data, _ := json.Marshal(skuSize)
|
||||||
//param.SpecPrices = string(data)
|
//param.SpecPrices = string(data)
|
||||||
param := &sku_editPrice_request.SkuEditPriceParam{
|
param := &sku_editPrice_request.SkuEditPriceParam{
|
||||||
Price: v.VendorPrice,
|
Price: v.VendorPrice,
|
||||||
Code: "",
|
Code: "",
|
||||||
SkuId: 0,
|
SkuId: 0,
|
||||||
OutSkuId: int64(v.SkuID),
|
OutSkuId: int64(v.SkuID),
|
||||||
ProductId: utils.Str2Int64(v.VendorSkuID),
|
ProductId: utils.Str2Int64(v.VendorSkuID),
|
||||||
OutProductId: int64(v.SkuID),
|
//OutProductId: int64(v.SkuID),
|
||||||
}
|
}
|
||||||
|
|
||||||
err := api.EditPrice(param)
|
err := api.EditPrice(param)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
failedList = append(failedList, putils.GetErrMsg2FailedSingleList(v, err, storeID, model.VendorChineseNames[model.VendorIDDD], "上架商品异常")...)
|
failedList = append(failedList, putils.GetErrMsg2FailedSingleList(v, err, storeID, model.VendorChineseNames[model.VendorIDDD], "更新价格异常")...)
|
||||||
} else {
|
} else {
|
||||||
failedList = append(failedList, putils.GetErrMsg2FailedSingleList(v, err, storeID, model.VendorChineseNames[model.VendorIDDD], "上架商品正常")...)
|
failedList = append(failedList, putils.GetErrMsg2FailedSingleList(v, err, storeID, model.VendorChineseNames[model.VendorIDDD], "更新价格正常")...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user