经纬度查门店返回null测试

This commit is contained in:
苏尹岚
2020-03-30 08:54:56 +08:00
parent e022ce74c2
commit 3c119c57d6

View File

@@ -2408,10 +2408,12 @@ func GetStoreListByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDi
jxutils.StandardCoordinate2Int(10000),
jxutils.StandardCoordinate2Int(0),
jxutils.StandardCoordinate2Int(10000),
model.YES,
}
dao.GetRows(dao.GetDB(), &storeList2, sql, sqlParams2...)
fmt.Println(sql)
fmt.Println(sqlParams2)
fmt.Println(storeList2)
if len(storeList2) > 1 {
storeList2 = storeList2[:1]
}