src/main/resources/mapper/LocationMapper.xml
@@ -16,9 +16,9 @@ <select id="selectByXY" resultMap="locationResult"> <include refid="locationSql"></include> <where> lon between (#{x} - 0.00009) and (#{x} + 0.00009) lon between (#{x} - 0.0009) and (#{x} + 0.0009) and lat between (#{y} - 0.00009) and (#{y} + 0.00009) lat between (#{y} - 0.0009) and (#{y} + 0.0009) </where> </select>