|
|
@ -233,18 +233,18 @@ |
|
|
|
<select id="queryHouseInfo" parameterType="map" resultType="com.epmet.dto.result.HouseInfoDTO"> |
|
|
|
SELECT |
|
|
|
ih.ID as homeId, |
|
|
|
n.ADDRESS as neighborAddress, |
|
|
|
IFNULL(n.ADDRESS,'') as neighborAddress, |
|
|
|
ih.NEIGHBOR_HOOD_ID as neighborHoodId, |
|
|
|
n.NEIGHBOR_HOOD_NAME as neighborHoodName, |
|
|
|
IFNULL(n.NEIGHBOR_HOOD_NAME,'') as neighborHoodName, |
|
|
|
ih.BUILDING_ID as buildingId, |
|
|
|
ib.BUILDING_NAME as buildingName, |
|
|
|
IFNULL(ib.BUILDING_NAME,'') as buildingName, |
|
|
|
ih.BUILDING_UNIT_ID as buildingUnitId, |
|
|
|
u.UNIT_NAME as unitName, |
|
|
|
ih.DOOR_NAME as doorName, |
|
|
|
IFNULL(u.UNIT_NAME,'') as unitName, |
|
|
|
IFNULL(ih.DOOR_NAME,'') as doorName, |
|
|
|
ih.house_type, |
|
|
|
ih.HOUSE_NAME, |
|
|
|
ib.LONGITUDE as buildingLongitude, |
|
|
|
ib.LATITUDE as buildingLatitude |
|
|
|
IFNULL(ih.HOUSE_NAME,'') as HOUSE_NAME, |
|
|
|
IFNULL(ib.LONGITUDE,'') as buildingLongitude, |
|
|
|
IFNULL(ib.LATITUDE,'') as buildingLatitude |
|
|
|
FROM |
|
|
|
ic_house ih |
|
|
|
left JOIN ic_neighbor_hood n ON ( ih.NEIGHBOR_HOOD_ID = n.id ) |
|
|
|