From eed9923b1f2d2fe2674416f4946413b3cd4541a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 7 Aug 2020 11:42:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store_sku.go | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 71d52f92f..900496529 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -1164,19 +1164,14 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs if inSkuBind != nil { if inSkuBind.Stock != nil { skuBind.Stock = *inSkuBind.Stock - fmt.Println("skuBind.Stock", *inSkuBind.Stock) } else { - fmt.Println("test1") - goto setStock + if tmpStatus == model.StoreSkuBindStatusNormal { + skuBind.Stock = model.MaxStoreSkuStockQty + } else { + skuBind.Stock = 0 + } } } else { - fmt.Println("test2") - goto setStock - } - setStock: - { - fmt.Println("test3") - //关注设置默认库存 if tmpStatus == model.StoreSkuBindStatusNormal { skuBind.Stock = model.MaxStoreSkuStockQty } else {