| | |
| | | <select id="selectByXY" resultMap="locationResult"> |
| | | <include refid="locationSql"></include> |
| | | <where> |
| | | lon between (#{x} - 0.000027) and (#{x} + 0.000027) |
| | | lon between (#{x} - 0.000045) and (#{x} + 0.000045) |
| | | and |
| | | lat between (#{y} - 0.000027) and (#{y} + 0.000027) |
| | | lat between (#{y} - 0.000045) and (#{y} + 0.000045) |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectVocAddrs" resultMap="locationResult"> |
| | | select id, x "lon", y "lat", addr "name" |
| | | from voc_addr |
| | | where length(addr) > 0; |
| | | </select> |
| | | |
| | | <select id="query" resultMap="locationResult"> |
| | | <include refid="locationSql"></include> |