|
@ -39,6 +39,26 @@ |
|
|
when id = #{l.neighborHoodId} then #{l.remark} |
|
|
when id = #{l.neighborHoodId} then #{l.remark} |
|
|
</foreach> |
|
|
</foreach> |
|
|
</trim> |
|
|
</trim> |
|
|
|
|
|
<trim prefix="AREA =(case" suffix="end),"> |
|
|
|
|
|
<foreach collection="list" item="l"> |
|
|
|
|
|
when id = #{l.neighborHoodId} then #{l.area} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
</trim> |
|
|
|
|
|
<trim prefix="BUILD_YEAR =(case" suffix="end),"> |
|
|
|
|
|
<foreach collection="list" item="l"> |
|
|
|
|
|
when id = #{l.neighborHoodId} then #{l.buildYear} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
</trim> |
|
|
|
|
|
<trim prefix="VILIAGE_TYPE =(case" suffix="end),"> |
|
|
|
|
|
<foreach collection="list" item="l"> |
|
|
|
|
|
when id = #{l.neighborHoodId} then #{l.viliageType} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
</trim> |
|
|
|
|
|
<trim prefix="OPEN_TYPE =(case" suffix="end),"> |
|
|
|
|
|
<foreach collection="list" item="l"> |
|
|
|
|
|
when id = #{l.neighborHoodId} then #{l.openType} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
</trim> |
|
|
UPDATED_TIME = NOW() |
|
|
UPDATED_TIME = NOW() |
|
|
</trim> |
|
|
</trim> |
|
|
WHERE DEL_FLAG = '0' |
|
|
WHERE DEL_FLAG = '0' |
|
@ -169,6 +189,10 @@ |
|
|
</select> |
|
|
</select> |
|
|
<select id="searchAllNeighborhood" resultType="com.epmet.excel.IcNeighborHoodExcel"> |
|
|
<select id="searchAllNeighborhood" resultType="com.epmet.excel.IcNeighborHoodExcel"> |
|
|
select |
|
|
select |
|
|
|
|
|
a.AREA as area, |
|
|
|
|
|
a.BUILD_YEAR as buildYear, |
|
|
|
|
|
if(a.VILIAGE_TYPE =1 ,'住宅小区',if(a.VILIAGE_TYPE = 2,'自然村','')) as viliageTypeName, |
|
|
|
|
|
if(a.OPEN_TYPE =1 ,'封闭式',if(a.OPEN_TYPE = 2,'开放式','')) as openTypeName, |
|
|
a.NEIGHBOR_HOOD_NAME as neighborHoodName, |
|
|
a.NEIGHBOR_HOOD_NAME as neighborHoodName, |
|
|
a.ADDRESS as address, |
|
|
a.ADDRESS as address, |
|
|
a.REMARK as remark, |
|
|
a.REMARK as remark, |
|
|