返回默认门店根据坐标测试
This commit is contained in:
@@ -2388,7 +2388,8 @@ func GetStoreListByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDi
|
|||||||
|
|
||||||
// 为了审核用
|
// 为了审核用
|
||||||
if len(storeList2) == 0 {
|
if len(storeList2) == 0 {
|
||||||
sqlParams = []interface{}{
|
sqlParams2 := []interface{}{
|
||||||
|
model.VendorIDJX, utils.DefaultTimeValue, model.StoreStatusDisabled,
|
||||||
utils.DefaultTimeValue,
|
utils.DefaultTimeValue,
|
||||||
model.StoreStatusDisabled,
|
model.StoreStatusDisabled,
|
||||||
jxutils.StandardCoordinate2Int(0),
|
jxutils.StandardCoordinate2Int(0),
|
||||||
@@ -2396,7 +2397,7 @@ func GetStoreListByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDi
|
|||||||
jxutils.StandardCoordinate2Int(0),
|
jxutils.StandardCoordinate2Int(0),
|
||||||
jxutils.StandardCoordinate2Int(10000),
|
jxutils.StandardCoordinate2Int(10000),
|
||||||
}
|
}
|
||||||
dao.GetRows(dao.GetDB(), &storeList2, sql, sqlParams...)
|
dao.GetRows(dao.GetDB(), &storeList2, sql, sqlParams2...)
|
||||||
if len(storeList2) > 1 {
|
if len(storeList2) > 1 {
|
||||||
storeList2 = storeList2[:1]
|
storeList2 = storeList2[:1]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user