燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-07-05 a349a38dbdb92e8cb21f47fe62e4cf1c071f3336
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>