From 8f0e1ecb2f0fef31be3393c21e150d55c865ff72 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, 25 Mar 2021 17:25:17 +0800 Subject: [PATCH] aa --- business/jxstore/cms/store_sku.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 00bac9c94..332ddd53e 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -303,6 +303,7 @@ func GetStoresSkusForStore(ctx *jxcontext.Context, storeID int, isFocus, isAct b } sql += ` LEFT JOIN sku_category d ON d.id = a.category_id AND d.deleted_at = ? + LEFT JOIN sku_name_place_bind f ON a.id = f.name_id AND e.city_code = f.place_code ` sqlParams = append(sqlParams, utils.DefaultTimeValue) if categoryID != 0 { @@ -339,7 +340,9 @@ func GetStoresSkusForStore(ctx *jxcontext.Context, storeID int, isFocus, isAct b ) } sql += ` - WHERE a.deleted_at = ? AND a.status = ? + WHERE a.deleted_at = ? + AND a.status = ? + AND (a.is_global = 1 OR f.id IS NOT NULL) ` sqlParams = append(sqlParams, utils.DefaultTimeValue, model.SkuStatusNormal,