From 8498ef2d20126954d5b90c540adad2ff080a972d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 8 Jul 2020 17:55:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E5=95=86=E5=9F=8E=E4=B8=8D?= =?UTF-8?q?=E5=90=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/tempop/tempop.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 7a90bb0df..015d85a79 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1668,7 +1668,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { vendorMap[v.SkuList[0].SkuID] = v } for _, v := range storeSkuList { - if vendorMap[v.SkuID] == nil { + if vendorMap[v.SkuID] == nil && v.Status == model.StoreSkuBindStatusNormal { addList = append(addList, v.SkuID) } else { if int64(v.JdsPrice) != vendorMap[v.SkuID].SkuList[0].VendorPrice { @@ -1698,9 +1698,9 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { deleteList = append(deleteList, k) } } - fmt.Println("addList", addList) - fmt.Println("updateList", updateList) - fmt.Println("deleteList", deleteList) + fmt.Println("addList2", addList) + fmt.Println("updateList2", updateList) + fmt.Println("deleteList2", deleteList) return err }