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