From 166fcc8b6bb227b58608cb7cc99d496541c8e900 Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 30 Jul 2019 15:37:41 +0800 Subject: [PATCH] =?UTF-8?q?-=20GetStoreListByMobile=E5=8E=BB=E9=99=A4?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=9A=84=E9=97=A8=E5=BA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/dao_user.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/business/model/dao/dao_user.go b/business/model/dao/dao_user.go index 0338e5406..73e10f91f 100644 --- a/business/model/dao/dao_user.go +++ b/business/model/dao/dao_user.go @@ -133,12 +133,14 @@ func GetStoreListByMobile(db *DaoDB, mobile string) (storeList []*model.Store, e LEFT JOIN weixins t3 ON t3.parentid = t2.id WHERE (t2.tel = ? OR t3.tel = ?) ) t1 + WHERE t1.deleted_at = ? ORDER BY t1.name` sqlParams := []interface{}{ mobile, mobile, mobile, mobile, + utils.DefaultTimeValue, } err = GetRows(db, &storeList, sql, sqlParams...) }