Compare commits
2 Commits
edf7f3f288
...
bcd0a46d87
| Author | SHA256 | Date | |
|---|---|---|---|
| bcd0a46d87 | |||
| 822c7c39e0 |
@ -17,9 +17,7 @@
|
|||||||
|
|
||||||
<!-- 半径查询(带距离排序) -->
|
<!-- 半径查询(带距离排序) -->
|
||||||
<select id="selectRadiusGeometryWithOrder" resultMap="EbikeDtoMap">
|
<select id="selectRadiusGeometryWithOrder" resultMap="EbikeDtoMap">
|
||||||
SELECT
|
SELECT ebike_bike_info.bike_code, ebike_bike_info.location,
|
||||||
ebike_bike_info.bike_code,
|
|
||||||
ebike_bike_info.location,
|
|
||||||
ST_Distance(
|
ST_Distance(
|
||||||
ST_SetSRID(ST_MakePoint(ST_X(location::geometry), ST_Y(location::geometry)), 4326)::geography,
|
ST_SetSRID(ST_MakePoint(ST_X(location::geometry), ST_Y(location::geometry)), 4326)::geography,
|
||||||
ST_SetSRID(ST_MakePoint(#{centerPoint.x}, #{centerPoint.y}), 4326)::geography
|
ST_SetSRID(ST_MakePoint(#{centerPoint.x}, #{centerPoint.y}), 4326)::geography
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user