Commit 6d0e91b0 authored by chenzhao's avatar chenzhao

修改代码

parent 2e469a06
......@@ -47,6 +47,7 @@ import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.text.Collator;
import java.text.ParseException;
import java.util.*;
import java.util.stream.Collectors;
......@@ -207,6 +208,11 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
e.setValue(String.format("%.2f",f));
});
Collator instance = Collator.getInstance(Locale.CHINA);
Collections.sort(influxDBList,(e1,e2)->{
return instance.compare(e1.getSystemType(),e2.getSystemType());
});
List<IndexDto> collect = influxDBList.stream()
.skip((long) (current - 1) * size)
.limit(size)
......
......@@ -54,6 +54,9 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<classifier>exec</classifier>
</configuration>
</plugin>
</plugins>
</build>
......
......@@ -48,6 +48,9 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<classifier>exec</classifier>
</configuration>
</plugin>
</plugins>
</build>
......
......@@ -201,6 +201,9 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
e.setValue(String.format("%.2f",f));
});
Collections.sort(influxDBList,(e1,e2)->{
return instance.compare(e1.getSystemType(),e2.getSystemType());
});
List<IndexDto> collect = influxDBList.stream()
.skip((long) (current - 1) * size)
.limit(size)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment