2021与蓝度共同重构项目,服务端
liuhaonan
2022-10-21 0a30812acaa26ebe654340f7e749a6801b63b194
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
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")
@Data
public class LightReportData implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
 
    @ExcelProperty("id")
    private Long lightReportDataId;
 
    /**
     * 设备mac
     */
    @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;
 
    /**
     * 灯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;
 
    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间", converter = LocalDateStringConverter.class)
    @JsonIgnore
    private LocalDateTime createTime1;
 
    /**
     *
     */
    @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;
}