优化地图搜索

This commit is contained in:
2025-10-14 19:19:16 +08:00
parent fddb7bc4af
commit 9efcf1496c

View File

@@ -26,7 +26,8 @@
WHERE WHERE
ST_Distance_Sphere ( POINT ( #{request.cLng} , #{request.cLat} ), POINT ( lng, lat ) ) <= #{request.distance} ST_Distance_Sphere ( POINT ( #{request.cLng} , #{request.cLat} ), POINT ( lng, lat ) ) <= #{request.distance}
ORDER BY ORDER BY
distance; distance
limit 10;
</select> </select>