银豹创建商品修改,禁用的也改下状态
This commit is contained in:
@@ -41,7 +41,7 @@ func (p *PurchaseHandler) CreateStoreSkus(ctx *jxcontext.Context, storeID int, v
|
||||
if strings.Contains(err.Error(), addErr1) {
|
||||
queryProductByBarcodeResult, err := api.YinBaoAPI.QueryProductByBarcodes([]string{storeSku.YbBarCode})
|
||||
if err != nil && len(queryProductByBarcodeResult) > 0 {
|
||||
if queryProductByBarcodeResult[0].Enable == model.SkuStatusDeleted {
|
||||
if queryProductByBarcodeResult[0].Enable == model.SkuStatusDeleted || queryProductByBarcodeResult[0].Enable == model.SkuStatusDontSale {
|
||||
api.YinBaoAPI.BatchUpdateProductEnable(vendorStoreID, utils.Int64ToStr(queryProductByBarcodeResult[0].UID), model.SkuStatusNormal)
|
||||
storeSku.VendorSkuID = utils.Int64ToStr(queryProductByBarcodeResult[0].UID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user