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,