From 89a88e27b38edd4fbc624d18836d513a8bb07e91 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, 10 Jun 2020 09:28:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=88=E5=B1=8F=E8=94=BDmain=20=E4=BA=AC?= =?UTF-8?q?=E4=B8=9C=E5=95=86=E5=9F=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/tempop/tempop.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 3cee051d1..b026e7bfd 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1624,13 +1624,13 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { result2, _ := api.JdShopAPI.FindSkuById(vv.SkuID) _, _, _, specUnit, _, specQuality := jxutils.SplitSkuName(result2.SaleAttrs[0].AttrValueAlias[0]) if specQuality < 100 && specUnit != "kg" && specUnit != "L" { - var storeSku []*model.StoreSkuBind + var storeSku *model.StoreSkuBind sql := ` SELECT * FROM store_sku_bind WHERE store_id = 102919 AND jds_id = ? ` sqlParams := []interface{}{vv.SkuID} err = dao.GetRow(dao.GetDB(), &storeSku, sql, sqlParams) - if len(storeSku) == 0 { + if storeSku == nil { rr = append(rr, vv.SkuID) } } @@ -1638,7 +1638,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { } } } - fmt.Println("testrr", rr) + fmt.Println("testrr1", rr) return err }