From 09fc959fff70b2246ee4074336bf2f785ed16042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 28 Apr 2020 09:00:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=B6=E8=B1=B9=E5=90=8C=E6=AD=A5=E4=BA=AC?= =?UTF-8?q?=E8=A5=BF=E6=9B=B4=E6=96=B0=EF=BC=8C=E9=93=B6=E8=B1=B9=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E5=92=8C=E4=BA=AC=E8=A5=BF=E4=B8=8A=E4=B8=8B=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sync.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index e9b479bab..ec7f925a5 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -1021,7 +1021,9 @@ func syncStoreSkusFromYb(ctx *jxcontext.Context, storeID, vendorID int, vendorSt return retVal, fmt.Errorf("未查询到门店商品,yb_id [%v]", v.SkuList[0].VendorSkuID) } if v.SkuList[0].Stock < 1 { - skuBindInfo.IsSale = model.DISABLED + skuBindInfo.IsSale = model.StoreSkuBindStatusDontSale + } else { + skuBindInfo.IsSale = model.StoreSkuBindStatusNormal } skuBindInfo.NameID = storeSkus[0].NameID retVal = []*StoreSkuBindInfo{skuBindInfo}