From 60d5940f3e734ecf95defaf9763de2aa3eae4def Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 16 Aug 2019 17:49:52 +0800 Subject: [PATCH] =?UTF-8?q?-=20GetStores=E6=97=B6keyword=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E8=AF=81=E7=85=A7=E7=9B=B8=E5=85=B3=E7=9A=84=E4=BF=A1=E6=81=AF?= 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 edf11d8fe..b0a5c0d1b 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -240,8 +240,8 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa if keyword != "" { keywordLike := "%" + keyword + "%" sqlWhere += ` AND (t1.name LIKE ? OR t1.tel1 LIKE ? OR t1.tel2 LIKE ? OR t1.operator_phone LIKE ? OR t1.market_man_phone LIKE ? - OR t1.last_operator LIKE ? OR city.name LIKE ? OR t1.address LIKE ? OR t1.printer_sn LIKE ?` - sqlWhereParams = append(sqlWhereParams, keywordLike, keywordLike, keywordLike, keywordLike, keywordLike, keywordLike, keywordLike, keywordLike, keywordLike) + OR t1.last_operator LIKE ? OR city.name LIKE ? OR t1.address LIKE ? OR t1.printer_sn LIKE ? OR t1.licence_code LIKE ? OR t1.id_code LIKE ?` + sqlWhereParams = append(sqlWhereParams, keywordLike, keywordLike, keywordLike, keywordLike, keywordLike, keywordLike, keywordLike, keywordLike, keywordLike, keywordLike, keywordLike) if keywordInt64, err2 := strconv.ParseInt(keyword, 10, 64); err2 == nil { if !globals.EnableWXAuth2 && jxutils.IsLegalMobileNumber(keywordInt64) {