|
@ -72,7 +72,12 @@ |
|
|
|
|
|
|
|
|
<select id="queryList" parameterType="map" resultType="com.epmet.dto.IcPropertyManagementDTO"> |
|
|
<select id="queryList" parameterType="map" resultType="com.epmet.dto.IcPropertyManagementDTO"> |
|
|
select m.*,( |
|
|
select m.*,( |
|
|
select count(pr.NEIGHBOR_HOOD_ID) from ic_neighbor_hood_property pr where pr.PROPERTY_ID=m.id and pr.del_flag='0' |
|
|
select count(pr.NEIGHBOR_HOOD_ID) |
|
|
|
|
|
from ic_neighbor_hood_property pr |
|
|
|
|
|
INNER JOIN ic_neighbor_hood h ON ( pr.NEIGHBOR_HOOD_ID = h.ID ) |
|
|
|
|
|
where pr.PROPERTY_ID=m.id |
|
|
|
|
|
and pr.del_flag='0' |
|
|
|
|
|
and h.del_flag='0' |
|
|
)as totalNeighborHood |
|
|
)as totalNeighborHood |
|
|
from ic_property_management m |
|
|
from ic_property_management m |
|
|
where m.del_flag='0' |
|
|
where m.del_flag='0' |
|
|