| | |
| | | package org.springblade.common.entity; |
| | | |
| | | 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 lombok.Data; |
| | | import org.springblade.common.converter.AnimalHeatTypeConverter; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | |
| | | @ContentRowHeight(18) |
| | | public class AnimalHeatExcel { |
| | | |
| | | @ColumnWidth(15) |
| | | @ColumnWidth(12) |
| | | @ExcelProperty("体温检测编号") |
| | | private Integer id;// bigint(20) NOT NULL COMMENT '主键', |
| | | |
| | |
| | | @ExcelProperty("设备IP") |
| | | private String ip;// varchar(63) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '设备IP地址', |
| | | |
| | | @ColumnWidth(50) |
| | | @ColumnWidth(60) |
| | | @ExcelProperty("图片URL") |
| | | private String picture;// varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '图片url路径', |
| | | |
| | | // @TableField("picture_red") |
| | | // private String pictureRed;// varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '红外图片url路径', |
| | | /** |
| | | * 忽略,不显示到excel |
| | | */ |
| | | @ExcelIgnore |
| | | private String pictureRed;// varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '红外图片url路径', |
| | | |
| | | @ColumnWidth(15) |
| | | @ExcelProperty("体温") |
| | |
| | | @ExcelProperty("创建时间") |
| | | private Date createTime;// datetime DEFAULT NULL COMMENT '创建时间', |
| | | |
| | | @ColumnWidth(25) |
| | | @ExcelProperty("状态 1:异常 0:正常") |
| | | @ColumnWidth(10) |
| | | @ExcelProperty(value = "状态",converter = AnimalHeatTypeConverter.class) |
| | | private Integer status;//状态 1为异常 0为正常 ,以37.3度为标准,大于37.3度为高温 |
| | | } |