| | |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="remark" column="remark" /> |
| | | <result property="isDeleted" column="is_deleted" /> |
| | | <result property="aoiCode" column="aoi_code" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPlace"> |
| | |
| | | update_user, |
| | | update_time, |
| | | remark, |
| | | is_deleted |
| | | is_deleted, |
| | | |
| | | from |
| | | jczz_place |
| | | </sql> |
| | |
| | | <!--比对两点间的距离是否在1km 范围内(和地址总表位置对比)--> |
| | | <select id="comparisonPosition" resultType="java.lang.Integer"> |
| | | select count(1) from jczz_doorplate_address where 1=1 |
| | | and ( |
| | | and IFNULL(( |
| | | ACOS( |
| | | SIN( |
| | | ( #{place.y} * 3.1415 )/ 180 ) * SIN(( y * 3.1415 )/ 180 ) |
| | | + COS(( #{place.y} * 3.1415 )/ 180 ) * COS(( y * 3.1415 )/ 180 ) * COS(( #{place.x} * 3.1415 )/ 180 |
| | | - ( x * 3.1415 )/ 180 ))* 6370.996 |
| | | ) <= 1 |
| | | ),2) <= 1 |
| | | and address_code = #{place.houseCode} |
| | | </select> |
| | | |