Browse Source

小区导出

master
lichao 2 years ago
parent
commit
eaee037d03
  1. 13
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/excel/IcNeighborHoodExcel.java
  2. BIN
      epmet-module/gov-org/gov-org-server/src/main/resources/excel/neighbor_export.xlsx
  3. BIN
      epmet-module/gov-org/gov-org-server/src/main/resources/excel/neighbor_export_0510.xlsx
  4. 4
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcNeighborHoodDao.xml

13
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/excel/IcNeighborHoodExcel.java

@ -18,6 +18,7 @@
package com.epmet.excel; package com.epmet.excel;
import cn.afterturn.easypoi.excel.annotation.Excel; import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.excel.annotation.ExcelProperty;
import com.epmet.util.ExcelVerifyInfo; import com.epmet.util.ExcelVerifyInfo;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data; import lombok.Data;
@ -108,6 +109,18 @@ public class IcNeighborHoodExcel extends ExcelVerifyInfo implements Serializable
@Length(max=50,message = "不能超过50个字") @Length(max=50,message = "不能超过50个字")
private String neighborHoodName; private String neighborHoodName;
@Excel(name = "小区/自然村类型")
private String viliageTypeName;
@Excel(name = "面积")
private String area;
@Excel(name = "开放类型")
private String openTypeName;
@Excel(name = "建筑年代")
private String buildYear;
@Excel(name = "关联物业") @Excel(name = "关联物业")
private String propertyName; private String propertyName;

BIN
epmet-module/gov-org/gov-org-server/src/main/resources/excel/neighbor_export.xlsx

Binary file not shown.

BIN
epmet-module/gov-org/gov-org-server/src/main/resources/excel/neighbor_export_0510.xlsx

Binary file not shown.

4
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcNeighborHoodDao.xml

@ -189,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,

Loading…
Cancel
Save