| | |
| | | |
| | | <!--比对两点间的距离是否在1km 范围内 (和采集的位置对比)--> |
| | | <select id="comparisonPositionNotHouseCode" resultType="java.lang.Boolean"> |
| | | select ( |
| | | select IFNULL(( |
| | | ACOS( |
| | | SIN( |
| | | ( #{place.y} * 3.1415 )/ 180 ) * SIN(( #{place.lat} * 3.1415 )/ 180 ) |
| | | + COS(( #{place.y} * 3.1415 )/ 180 ) * COS(( #{place.lat} * 3.1415 )/ 180 ) * COS(( #{place.x} * 3.1415 )/ 180 |
| | | - ( #{place.lng} * 3.1415 )/ 180 ))* 6370.996 |
| | | ) <= 1 |
| | | ),2) <= 1 |
| | | </select> |
| | | |
| | | |
| | |
| | | and lng != '' |
| | | </select> |
| | | |
| | | <!--查询对应未的场所 house_code_binds 为空,source = 1 的--> |
| | | <select id="selectPlaceNotDoorBindList" resultType="org.springblade.modules.place.entity.PlaceEntity"> |
| | | select * from jczz_place where is_deleted = 0 |
| | | and source = 1 and house_code_binds is null |
| | | </select> |
| | | |
| | | </mapper> |