Compare commits

...

2 Commits

Author SHA256 Message Date
bcd0a46d87 Merge remote-tracking branch 'origin/main' 2025-12-26 09:18:40 +08:00
822c7c39e0 sql修复 2025-12-26 09:18:31 +08:00

View File

@ -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