From 79ec7ec9327d77918cc16039c3a2940fa0a344fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 13 Feb 2020 16:33:48 +0800 Subject: [PATCH] bug --- business/jxstore/cms/store_sku.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index ea5c4158e..0e9ba8287 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -3623,6 +3623,9 @@ func RefreshJxPriceByVendor(ctx *jxcontext.Context, jdStoreSkus []*JdStoreSkus, pricePercentagePack []*model.PricePercentageItem ) skus, _ := dao.GetSkus(db, []int{v.JdSkuID}, nil, nil, nil) + if len(skus) == 0 { + continue + } store, _ := dao.GetStoreDetail(db, v.JdStoreID, vendorID) err = jxutils.Strings2Objs(store.PricePercentagePackStr, &pricePercentagePack) jxPrice := jxutils.CaculateJxPriceByPricePack(pricePercentagePack, 0, v.Price)