From 5c033903bf9eb75a8ccf8a9594b832894a95bde7 Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 5 Feb 2020 13:42:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E5=BA=97=E6=9F=A5=E8=AF=A2=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E5=AD=97=E6=94=AF=E6=8C=81linkStoreID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 086ebc5e6..28067a1eb 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -326,8 +326,8 @@ func getStoresSql(ctx *jxcontext.Context, keyword string, params map[string]inte prefix := autils.NewRole("", 0).GetFullName() sqlWhereParams = append(sqlWhereParams, keyword+"%", autils.NewStoreBossRole(-1).GetFullName(), prefix, prefix, prefix) // 必须要前缀,不然不能用过些会很慢 } - sqlWhere += " OR t1.id = ? OR t1.city_code = ? OR t1.district_code = ?" - sqlWhereParams = append(sqlWhereParams, keywordInt64, keywordInt64, keywordInt64) + sqlWhere += " OR t1.id = ? OR t1.city_code = ? OR t1.district_code = ? OR t1.link_store_id = ?" + sqlWhereParams = append(sqlWhereParams, keywordInt64, keywordInt64, keywordInt64, keywordInt64) if jxutils.GuessVendorIDFromVendorStoreID(keywordInt64) != model.VendorIDUnknown { sqlWhere += ` OR (SELECT COUNT(*) FROM store_map tsm WHERE t1.id = tsm.store_id AND tsm.deleted_at = ? AND tsm.vendor_store_id = ?) > 0