| | |
| | | select * from jczz_place_rel where is_deleted = 0 |
| | | </select> |
| | | |
| | | <!--查询地址编码信息(社区派出所相关信息)--> |
| | | <select id="getDoorplateAddressEntity" resultType="org.springblade.modules.doorplateAddress.entity.DoorplateAddressEntity"> |
| | | select |
| | | street_name as townStreetName, |
| | | community_name as neiName, |
| | | jda.branch_name, |
| | | jda.local_police_station_name, |
| | | jda.policeman, |
| | | jda.policeman_phone |
| | | from jczz_place_rel jpr |
| | | left join jczz_doorplate_address jda on locate(jpr.community_name,jda.nei_name)>0 |
| | | where is_deleted = 0 |
| | | and place_id = #{place.id} |
| | | limit 1 |
| | | </select> |
| | | |
| | | <!--查询未处理的商超数据--> |
| | | <select id="getMallList" resultType="org.springblade.modules.place.entity.PlaceRelEntity"> |
| | | select |
| | | jpr.* |
| | | from jczz_place_rel jpr |
| | | left join jczz_place jp on jp.id = jpr.place_id and jp.is_deleted = 0 |
| | | where jpr.is_deleted = 0 and jp.grid_code is null |
| | | </select> |
| | | |
| | | </mapper> |