From dbcfd0be915cfd4b1f82f10888cd632464b72cd1 Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 5 Feb 2020 15:24:04 +0800 Subject: [PATCH] =?UTF-8?q?GetStoreListByMobileOrStoreIDs=E6=9F=A5tel1,tel?= =?UTF-8?q?2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/dao_user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/model/dao/dao_user.go b/business/model/dao/dao_user.go index ee380c5a2..f8cc6cc44 100644 --- a/business/model/dao/dao_user.go +++ b/business/model/dao/dao_user.go @@ -142,8 +142,8 @@ func GetStoreListByMobileOrStoreIDs(db *DaoDB, mobile string, shortRoleNameList utils.DefaultTimeValue, } if mobile != "" { - sql += " OR t1.market_man_phone = ? OR t1.operator_phone = ? OR t1.operator_phone2 = ?" - sqlParams = append(sqlParams, mobile, mobile, mobile) + sql += " OR t1.tel1 = ? OR t1.tel2 = ? OR t1.market_man_phone = ? OR t1.operator_phone = ? OR t1.operator_phone2 = ?" + sqlParams = append(sqlParams, mobile, mobile, mobile, mobile, mobile) } if len(shortRoleNameList) > 0 { questionMarks := GenQuestionMarks(len(shortRoleNameList))