From a349a38dbdb92e8cb21f47fe62e4cf1c071f3336 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 05 七月 2023 11:13:20 +0800 Subject: [PATCH] 1 --- src/main/resources/mapping/LocationMapper.xml | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapping/LocationMapper.xml b/src/main/resources/mapping/LocationMapper.xml index b99aa66..e6665d9 100644 --- a/src/main/resources/mapping/LocationMapper.xml +++ b/src/main/resources/mapping/LocationMapper.xml @@ -16,11 +16,17 @@ <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> -- Gitblit v1.9.3