- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.dayou.mapper.HouseGuarantyAreaMapper">
- <select id="getByLngLat" resultType="com.dayou.entity.HouseGuarantyArea">
- SELECT * FROM house_guaranty_area
- WHERE ( lng <=( #{lng}+0.01 ) and lng >=( #{lng}-0.01 ))
- AND ( lat >=( #{lat}-0.01 ) and lat <=( #{lat}+0.01 ))
- and delete_status=0
- order by id desc limit 1
- </select>
- </mapper>
|