Compare commits
No commits in common. "bcd0a46d87cc5b0d3381f194d6fba7bcb01199a90fb1e1e14c00185ffa127674" and "edf7f3f2881786bd9db3570592458de9c4672c6c3866b948b4cf935b1b08793a" have entirely different histories.
bcd0a46d87
...
edf7f3f288
@ -17,7 +17,9 @@
|
|||||||
|
|
||||||
<!-- 半径查询(带距离排序) -->
|
<!-- 半径查询(带距离排序) -->
|
||||||
<select id="selectRadiusGeometryWithOrder" resultMap="EbikeDtoMap">
|
<select id="selectRadiusGeometryWithOrder" resultMap="EbikeDtoMap">
|
||||||
SELECT ebike_bike_info.bike_code, ebike_bike_info.location,
|
SELECT
|
||||||
|
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