Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
6d0e91b0
Commit
6d0e91b0
authored
Aug 28, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
2e469a06
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
0 deletions
+15
-0
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+6
-0
pom.xml
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/pom.xml
+3
-0
pom.xml
...t-system-jxiop/amos-boot-module-jxiop-monitor-biz/pom.xml
+3
-0
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+3
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
6d0e91b0
...
...
@@ -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
)
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/pom.xml
View file @
6d0e91b0
...
...
@@ -54,6 +54,9 @@
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<classifier>
exec
</classifier>
</configuration>
</plugin>
</plugins>
</build>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/pom.xml
View file @
6d0e91b0
...
...
@@ -48,6 +48,9 @@
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<classifier>
exec
</classifier>
</configuration>
</plugin>
</plugins>
</build>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
6d0e91b0
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment