|
@ -30,15 +30,19 @@ public class EnvDataService {
|
30
|
30
|
}
|
31
|
31
|
|
32
|
32
|
public void setLastData(List<EnvData> lastData) {
|
33
|
|
if (lastData.size() == 0) {
|
34
|
|
return;
|
35
|
|
}
|
36
|
|
if (this.lastData.get().size() == 0) {
|
37
|
|
this.lastData.set(lastData);
|
38
|
|
} else {
|
39
|
|
if (this.lastData.get().get(0).getCreateTime().compareTo(lastData.get(0).getCreateTime()) < 0) {
|
|
33
|
try {
|
|
34
|
if (lastData.size() == 0) {
|
|
35
|
return;
|
|
36
|
}
|
|
37
|
if (this.lastData.get().size() == 0) {
|
40
|
38
|
this.lastData.set(lastData);
|
|
39
|
} else {
|
|
40
|
if (this.lastData.get().get(0).getCreateTime().compareTo(lastData.get(0).getCreateTime()) < 0) {
|
|
41
|
this.lastData.set(lastData);
|
|
42
|
}
|
41
|
43
|
}
|
|
44
|
} catch (Exception ignored) {
|
|
45
|
|
42
|
46
|
}
|
43
|
47
|
}
|
44
|
48
|
|