|  |  |  | 
|---|
|  |  |  | import com.alibaba.excel.annotation.ExcelIgnore; | 
|---|
|  |  |  | import com.alibaba.excel.annotation.ExcelProperty; | 
|---|
|  |  |  | import com.alibaba.excel.annotation.write.style.ColumnWidth; | 
|---|
|  |  |  | import com.alibaba.excel.annotation.write.style.ContentRowHeight; | 
|---|
|  |  |  | import com.alibaba.excel.annotation.write.style.HeadRowHeight; | 
|---|
|  |  |  | import com.dy.common.po.BaseEntity; | 
|---|
|  |  |  | import com.fasterxml.jackson.annotation.JsonFormat; | 
|---|
|  |  |  | import com.fasterxml.jackson.annotation.JsonPropertyOrder; | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.media.Schema; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  | import org.springframework.format.annotation.DateTimeFormat; | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | @Schema(title = "取水口视图对象") | 
|---|
|  |  |  | @JsonPropertyOrder({ "intakeId", "intakeName", "divideId", "divideName", "blockId", "blockName", "isBind", "address", "lng", "lat", "operator", "operateDt", "remarks", "controllerId", "rtuAddr", "protocol", "findDt", "isOnLine", "bindNumber"}) | 
|---|
|  |  |  | @HeadRowHeight(30) | 
|---|
|  |  |  | @ContentRowHeight(20) | 
|---|
|  |  |  | public class VoIntake implements BaseEntity { | 
|---|
|  |  |  | private static final long serialVersionUID = 202312261049001L; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "取水口ID") | 
|---|
|  |  |  | @ExcelProperty("取水口ID") | 
|---|
|  |  |  | @ColumnWidth(10) | 
|---|
|  |  |  | @ExcelIgnore | 
|---|
|  |  |  | private String intakeId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "取水口名称") | 
|---|
|  |  |  | @ExcelProperty("取水口名称") | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "取水口编号"}) | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | private String intakeName; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "分水房ID") | 
|---|
|  |  |  | @ExcelProperty("分水房ID") | 
|---|
|  |  |  | @ColumnWidth(10) | 
|---|
|  |  |  | @ExcelIgnore | 
|---|
|  |  |  | private String divideId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "所属分水房") | 
|---|
|  |  |  | @ExcelProperty("所属分水房") | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "所属分水房"}) | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | private String divideName; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "片区ID") | 
|---|
|  |  |  | @ExcelProperty("片区ID") | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | @ExcelIgnore | 
|---|
|  |  |  | private String blockId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "所属片区") | 
|---|
|  |  |  | @ExcelProperty("所属片区") | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "所属片区"}) | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | private String blockName; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "绑定设备") | 
|---|
|  |  |  | @ExcelProperty("绑定设备") | 
|---|
|  |  |  | @ColumnWidth(6) | 
|---|
|  |  |  | @Schema(title = "是否绑定设备") | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "是否绑定设备"}) | 
|---|
|  |  |  | @ColumnWidth(10) | 
|---|
|  |  |  | private String isBind; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "地址") | 
|---|
|  |  |  | @ExcelProperty("地址") | 
|---|
|  |  |  | @ColumnWidth(25) | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "地址"}) | 
|---|
|  |  |  | @ColumnWidth(30) | 
|---|
|  |  |  | private String address; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "经度") | 
|---|
|  |  |  | @ExcelProperty("经度") | 
|---|
|  |  |  | @ColumnWidth(25) | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "经度"}) | 
|---|
|  |  |  | @ColumnWidth(20) | 
|---|
|  |  |  | private String lng; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "纬度") | 
|---|
|  |  |  | @ExcelProperty("纬度") | 
|---|
|  |  |  | @ColumnWidth(25) | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "纬度"}) | 
|---|
|  |  |  | @ColumnWidth(20) | 
|---|
|  |  |  | private String lat; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "操作人") | 
|---|
|  |  |  | @ExcelProperty("操作人") | 
|---|
|  |  |  | @ExcelIgnore | 
|---|
|  |  |  | @ColumnWidth(25) | 
|---|
|  |  |  | private String operator; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | private Date operateDt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "备注") | 
|---|
|  |  |  | @ExcelProperty("备注") | 
|---|
|  |  |  | @ColumnWidth(250) | 
|---|
|  |  |  | @ExcelIgnore | 
|---|
|  |  |  | private String remarks; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "控制器ID") | 
|---|
|  |  |  | @ExcelProperty("控制器ID") | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | @ExcelIgnore | 
|---|
|  |  |  | private String controllerId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "控制器地址") | 
|---|
|  |  |  | @ExcelProperty("控制器地址") | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "控制器地址"}) | 
|---|
|  |  |  | @ColumnWidth(15) | 
|---|
|  |  |  | private String rtuAddr; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "通讯协议") | 
|---|
|  |  |  | @ExcelIgnore | 
|---|
|  |  |  | private String protocol; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 
|---|
|  |  |  | @Schema(title = "发现日期时间") | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "发现时间"}) | 
|---|
|  |  |  | @ColumnWidth(20) | 
|---|
|  |  |  | private Date findDt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "绑定次数") | 
|---|
|  |  |  | @ExcelProperty(value = {"${title}", "绑定次数"}) | 
|---|
|  |  |  | @ColumnWidth(10) | 
|---|
|  |  |  | private Integer bindNumber; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|