From 08a132acec001b0084d801cf0f766036f31cec7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 30 Mar 2020 08:49:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=8F=E7=BA=AC=E5=BA=A6=E6=9F=A5=E9=97=A8?= =?UTF-8?q?=E5=BA=97=E8=BF=94=E5=9B=9Enull=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index ce4ea83e4..114a02025 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -2386,6 +2386,8 @@ func GetStoreListByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDi } var storeList1 []*Store4User + fmt.Println(sql) + fmt.Println(sqlParams) if err = dao.GetRows(dao.GetDB(), &storeList1, sql, sqlParams...); err == nil { var storeList2 []*Store4User for _, v := range storeList1 { @@ -2408,6 +2410,7 @@ func GetStoreListByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDi jxutils.StandardCoordinate2Int(10000), } dao.GetRows(dao.GetDB(), &storeList2, sql, sqlParams2...) + fmt.Println(utils.Format4Output(storeList2, false)) if len(storeList2) > 1 { storeList2 = storeList2[:1] }