“djh”
2025-11-11 63486c527b01c459110a88930d9cda1ded633aee
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
package com.gkhy.fourierSpecialGasMonitor.entity;
 
import lombok.Data;
 
import javax.persistence.*;
import java.time.LocalDateTime;
 
@Entity
@Table(name = "summary_stats")
@Data
public class SummaryStats {
 
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
 
    private LocalDateTime time;
 
    //温度
    private Double tempMin;
    private Double tempMax;
    private Double tempAvg;
    private Double temp;
 
    //湿度
    private Double  humidityMin;
    private Double  humidityMax;
    private Double  humidityAvg;
    private Double  humidity;
 
    //风速
    private Double windSpeedMin;
    private Double windSpeedMax;
    private Double windSpeedAvg;
    private Double windSpeed;
 
    //风向
    private Integer windDirectionMin;
    private Integer windDirectionMax;
    private Double windDirectionAvg;
    private int windDirection;
 
    //压力
    private Double pressureMin;
    private Double pressureMax;
    private Double pressureAvg;
    private Double pressure;
 
    public SummaryStats(Double tempMin, Double tempMax, Double tempAvg,
                        Double humidityMin, Double humidityMax, Double humidityAvg,
                        Double windSpeedMin, Double windSpeedMax, Double windSpeedAvg,
                        Integer windDirectionMin, Integer windDirectionMax, Double windDirectionAvg,
                        Double pressureMin, Double pressureMax, Double pressureAvg) {
        this.tempMin = tempMin;
        this.tempMax = tempMax;
        this.tempAvg = tempAvg;
        this.humidityMin = humidityMin;
        this.humidityMax = humidityMax;
        this.humidityAvg = humidityAvg;
        this.windSpeedMin = windSpeedMin;
        this.windSpeedMax = windSpeedMax;
        this.windSpeedAvg = windSpeedAvg;
        this.windDirectionMin = windDirectionMin;
        this.windDirectionMax = windDirectionMax;
        this.windDirectionAvg = windDirectionAvg;
        this.pressureMin = pressureMin;
        this.pressureMax = pressureMax;
        this.pressureAvg = pressureAvg;
    }
 
    public SummaryStats() {
 
    }
 
 
    public boolean isEmpty(){
        return tempMin == null&&humidityMin==null&&windSpeedMin==null&&pressureMin==null&& windDirectionMin == null;
    }
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public LocalDateTime getTime() {
        return time;
    }
 
    public void setTime(LocalDateTime time) {
        this.time = time;
    }
 
    public Double getTempMin() {
        return tempMin;
    }
 
    public void setTempMin(Double tempMin) {
        this.tempMin = tempMin;
    }
 
    public Double getTempMax() {
        return tempMax;
    }
 
    public void setTempMax(Double tempMax) {
        this.tempMax = tempMax;
    }
 
    public Double getTempAvg() {
        return tempAvg;
    }
 
    public void setTempAvg(Double tempAvg) {
        this.tempAvg = tempAvg;
    }
 
    public Double getTemp() {
        return temp;
    }
 
    public void setTemp(Double temp) {
        this.temp = temp;
    }
 
    public Double getHumidityMin() {
        return humidityMin;
    }
 
    public void setHumidityMin(Double humidityMin) {
        this.humidityMin = humidityMin;
    }
 
    public Double getHumidityMax() {
        return humidityMax;
    }
 
    public void setHumidityMax(Double humidityMax) {
        this.humidityMax = humidityMax;
    }
 
    public Double getHumidityAvg() {
        return humidityAvg;
    }
 
    public void setHumidityAvg(Double humidityAvg) {
        this.humidityAvg = humidityAvg;
    }
 
    public Double getHumidity() {
        return humidity;
    }
 
    public void setHumidity(Double humidity) {
        this.humidity = humidity;
    }
 
    public Double getWindSpeedMin() {
        return windSpeedMin;
    }
 
    public void setWindSpeedMin(Double windSpeedMin) {
        this.windSpeedMin = windSpeedMin;
    }
 
    public Double getWindSpeedMax() {
        return windSpeedMax;
    }
 
    public void setWindSpeedMax(Double windSpeedMax) {
        this.windSpeedMax = windSpeedMax;
    }
 
    public Double getWindSpeedAvg() {
        return windSpeedAvg;
    }
 
    public void setWindSpeedAvg(Double windSpeedAvg) {
        this.windSpeedAvg = windSpeedAvg;
    }
 
    public Double getWindSpeed() {
        return windSpeed;
    }
 
    public void setWindSpeed(Double windSpeed) {
        this.windSpeed = windSpeed;
    }
 
    public int getWindDirectionMin() {
        return windDirectionMin;
    }
 
    public void setWindDirectionMin(int windDirectionMin) {
        this.windDirectionMin = windDirectionMin;
    }
 
    public int getWindDirectionMax() {
        return windDirectionMax;
    }
 
    public void setWindDirectionMax(int windDirectionMax) {
        this.windDirectionMax = windDirectionMax;
    }
 
    public Double getWindDirectionAvg() {
        return windDirectionAvg;
    }
 
    public void setWindDirectionAvg(Double windDirectionAvg) {
        this.windDirectionAvg = windDirectionAvg;
    }
 
    public int getWindDirection() {
        return windDirection;
    }
 
    public void setWindDirection(int windDirection) {
        this.windDirection = windDirection;
    }
 
    public Double getPressureMin() {
        return pressureMin;
    }
 
    public void setPressureMin(Double pressureMin) {
        this.pressureMin = pressureMin;
    }
 
    public Double getPressureMax() {
        return pressureMax;
    }
 
    public void setPressureMax(Double pressureMax) {
        this.pressureMax = pressureMax;
    }
 
    public Double getPressureAvg() {
        return pressureAvg;
    }
 
    public void setPressureAvg(Double pressureAvg) {
        this.pressureAvg = pressureAvg;
    }
 
    public Double getPressure() {
        return pressure;
    }
 
    public void setPressure(Double pressure) {
        this.pressure = pressure;
    }
}