| | |
| | | package com.sandu.ximon.dao.domain; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnore; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonIgnore; |
| | | import com.sandu.ximon.dao.utils.LocalDateStringConverter; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 灯上报数据表 |
| | | * |
| | | * @TableName light_report_data |
| | | */ |
| | | @TableName(value ="light_report_data") |
| | | @TableName(value = "light_report_data") |
| | | @Data |
| | | public class LightReportData implements Serializable { |
| | | /** |
| | | * |
| | | * |
| | | */ |
| | | @TableId(type = IdType.AUTO) |
| | | |
| | | @ExcelProperty("id") |
| | | private Long lightReportDataId; |
| | | |
| | | /** |
| | | * 设备mac |
| | | */ |
| | | private String deviceMac; |
| | | @ExcelProperty("设备mac") |
| | | private String deviceCode; |
| | | |
| | | /** |
| | | * 市电电压 |
| | | */ |
| | | @ExcelProperty("市电电压") |
| | | private Double voltage; |
| | | |
| | | /** |
| | | * 市电电流 |
| | | */ |
| | | @ExcelProperty("市电电流") |
| | | private Double electricCurrent; |
| | | |
| | | /** |
| | | * 设备温度 |
| | | */ |
| | | @ExcelProperty("设备温度") |
| | | private Double deviceTemperature; |
| | | |
| | | /** |
| | | * 功率因素 |
| | | */ |
| | | @ExcelProperty("功率因素") |
| | | private Double powerFactor; |
| | | |
| | | /** |
| | | * 有功功率 |
| | | */ |
| | | @ExcelProperty("有功功率") |
| | | private Double activePower; |
| | | |
| | | /** |
| | | * 无功功率 |
| | | */ |
| | | @ExcelProperty("无功功率") |
| | | private Double reactivePower; |
| | | |
| | | /** |
| | | * 亮度百分比,0-100 |
| | | * 灯1亮度百分比,0-100 |
| | | */ |
| | | @ExcelProperty("灯1亮度百分比,0-100") |
| | | private Integer lightPercent; |
| | | |
| | | /** |
| | | * 灯2亮度百分比 |
| | | */ |
| | | @ExcelProperty("灯2亮度百分比") |
| | | private Integer light2Percent; |
| | | |
| | | /** |
| | | * 最近一次亮灯时间 |
| | | */ |
| | | @ExcelProperty("最近一次亮灯时间") |
| | | private Long recentlyLightSec; |
| | | |
| | | /** |
| | | * 总亮灯时间 |
| | | */ |
| | | @ExcelProperty("总亮灯时间") |
| | | private Long totalLightSec; |
| | | |
| | | /** |
| | | * 最近一次用电量 |
| | | */ |
| | | @ExcelProperty("最近一次用电量") |
| | | private Double recentlyUsingPower; |
| | | |
| | | /** |
| | | * 总用电量 |
| | | */ |
| | | @ExcelProperty("总用电量") |
| | | private Double totalUsingPower; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | private LocalDateTime createTime; |
| | | @ExcelProperty(value = "创建时间", converter = LocalDateStringConverter.class) |
| | | @JsonIgnore |
| | | private LocalDateTime createTime1; |
| | | |
| | | /** |
| | | * |
| | | * |
| | | */ |
| | | private LocalDateTime updateTime; |
| | | @ExcelProperty(value = "更新时间", converter = LocalDateStringConverter.class) |
| | | @JsonIgnore |
| | | private LocalDateTime updateTime1; |
| | | |
| | | /** |
| | | * 用于前段展示 |
| | | */ |
| | | @TableField(exist = false) |
| | | private String updateTime; |
| | | |
| | | /** |
| | | * 用于前段展示 |
| | | */ |
| | | @TableField(exist = false) |
| | | private String createTime; |
| | | |
| | | |
| | | @TableField(exist = false) |
| | | @ExcelIgnore |
| | | private static final long serialVersionUID = 1L; |
| | | } |