|
@@ -575,8 +575,8 @@ public class TbIndentServiceImpl extends ServiceImpl<TbIndentDao, TbIndent> impl
|
|
|
queryDTO.setDistances(Double.valueOf(one.getValue()));
|
|
queryDTO.setDistances(Double.valueOf(one.getValue()));
|
|
|
indent = baseMapper.findNewIndentByDistances(pages, queryDTO);
|
|
indent = baseMapper.findNewIndentByDistances(pages, queryDTO);
|
|
|
} else {
|
|
} else {
|
|
|
- String city = getCurrentCityByLngAndLat(queryDTO.getRiderLng(), queryDTO.getRiderLat());
|
|
|
|
|
- queryDTO.setCity(city);
|
|
|
|
|
|
|
+// String city = getCurrentCityByLngAndLat(queryDTO.getRiderLng(), queryDTO.getRiderLat());
|
|
|
|
|
+// queryDTO.setCity(city);
|
|
|
|
|
|
|
|
indent = baseMapper.findNewIndentByCity(pages, queryDTO);
|
|
indent = baseMapper.findNewIndentByCity(pages, queryDTO);
|
|
|
}
|
|
}
|
|
@@ -599,8 +599,8 @@ public class TbIndentServiceImpl extends ServiceImpl<TbIndentDao, TbIndent> impl
|
|
|
queryDTO.setDistances(Double.valueOf(one.getValue()));
|
|
queryDTO.setDistances(Double.valueOf(one.getValue()));
|
|
|
indent = baseMapper.findNewIndentByDistancesGroupByShop(pages, queryDTO);
|
|
indent = baseMapper.findNewIndentByDistancesGroupByShop(pages, queryDTO);
|
|
|
} else {
|
|
} else {
|
|
|
- String city = getCurrentCityByLngAndLat(queryDTO.getRiderLng(), queryDTO.getRiderLat());
|
|
|
|
|
- queryDTO.setCity(city);
|
|
|
|
|
|
|
+// String city = getCurrentCityByLngAndLat(queryDTO.getRiderLng(), queryDTO.getRiderLat());
|
|
|
|
|
+// queryDTO.setCity(city);
|
|
|
|
|
|
|
|
indent = baseMapper.findNewIndentByCityGroupByShop(pages, queryDTO);
|
|
indent = baseMapper.findNewIndentByCityGroupByShop(pages, queryDTO);
|
|
|
}
|
|
}
|
|
@@ -656,6 +656,7 @@ public class TbIndentServiceImpl extends ServiceImpl<TbIndentDao, TbIndent> impl
|
|
|
city = addressComponent.getString("city");
|
|
city = addressComponent.getString("city");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
throw new SqxException("获取当前用户位置失败,失败原因:【" + e.getMessage() + "】");
|
|
throw new SqxException("获取当前用户位置失败,失败原因:【" + e.getMessage() + "】");
|
|
|
}
|
|
}
|