From 86def54ea6766cfc50545fc89f6f6df3d971e85c 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, 24 Dec 2019 11:55:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=85=E9=94=80=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store_sku.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 440256172..4cef4929f 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -2190,7 +2190,7 @@ func GetTopSkusByCityCode(ctx *jxcontext.Context, cityCode, storeID int) (skuNam var skuNameList []*model.SkuName //未关注,不可售的商品nameID列表 sql := ` - SELECT DISTINCT b.name_id + SELECT DISTINCT b.name_id id FROM store_sku_bind a JOIN sku b ON a.sku_id = b.id AND b.deleted_at = ? WHERE a.deleted_at = ? @@ -2203,7 +2203,7 @@ func GetTopSkusByCityCode(ctx *jxcontext.Context, cityCode, storeID int) (skuNam AND a.store_id = ? AND a.status = ?) UNION - SELECT DISTINCT a.name_id + SELECT DISTINCT a.name_id id FROM sku a LEFT JOIN (SELECT DISTINCT b.name_id FROM store_sku_bind a @@ -2239,7 +2239,7 @@ func GetTopSkusByCityCode(ctx *jxcontext.Context, cityCode, storeID int) (skuNam } } } else { - skuNameAndPlaceList = append(skuNameAndPlaceList,skuNameAndPlace...) + skuNameAndPlaceList = append(skuNameAndPlaceList, skuNameAndPlace...) } i := 1 for _, v := range skuNameAndPlaceList {