| | |
| | | resultType="com.panzhihua.common.model.vos.community.rentingHouses.RentingHouseRegisterVO"> |
| | | SELECT t.id, t.title, t.brn, t.construct_area, t.floor, t.orientation, t.decoration, t.label, t.address, t.monthly_rent_money, |
| | | t.`status`, t.detail_status, t.auth_status,t1.url, t2.phone AS tenantTelephone, t.update_at |
| | | <if test="pageRegisterDTO.longitude !=null and pageRegisterDTO.longitude !=''">,(POWER(MOD(ABS(longitude - #{pageRegisterDTO.longitude}),360),2) + POWER(ABS(latitude - #{latitude}),2)) AS distance</if> |
| | | <if test="pageRegisterDTO.longitude !=null and pageRegisterDTO.longitude !=''"> |
| | | ,(POWER(MOD(ABS(longitude - #{pageRegisterDTO.longitude}),360),2) + POWER(ABS(latitude - #{pageRegisterDTO.latitude}),2)) AS distance |
| | | </if> |
| | | FROM renting_hourse_register t left join renting_hourse_file t1 on t.id = t1.ref_id |
| | | LEFT JOIN sys_user t2 ON t.tenant_user_id = t2.user_id |
| | | WHERE t.community_id = #{pageRegisterDTO.communityId} |