Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
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
王浩
zh-baseversion-project
Commits
2bad61bb
Commit
2bad61bb
authored
Oct 28, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 大屏端 用户点位 关联 气瓶数据展示 调整。
parent
1cd2e15f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
pom.xml
zh-baseversion-common/pom.xml
+6
-0
TDetectorUserServiceImpl.java
.../zehong/system/service/impl/TDetectorUserServiceImpl.java
+6
-0
No files found.
zh-baseversion-common/pom.xml
View file @
2bad61bb
...
@@ -176,6 +176,12 @@
...
@@ -176,6 +176,12 @@
<artifactId>
easypoi-annotation
</artifactId>
<artifactId>
easypoi-annotation
</artifactId>
<version>
4.2.0
</version>
<version>
4.2.0
</version>
</dependency>
</dependency>
<dependency>
<groupId>
cn.hutool
</groupId>
<artifactId>
hutool-all
</artifactId>
<version>
5.8.25
</version>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
\ No newline at end of file
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TDetectorUserServiceImpl.java
View file @
2bad61bb
...
@@ -8,6 +8,7 @@ import java.text.SimpleDateFormat;
...
@@ -8,6 +8,7 @@ import java.text.SimpleDateFormat;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
cn.hutool.core.date.DateUtil
;
import
com.zehong.common.core.domain.model.LoginUser
;
import
com.zehong.common.core.domain.model.LoginUser
;
import
com.zehong.common.core.page.PageDomain
;
import
com.zehong.common.core.page.PageDomain
;
import
com.zehong.common.core.page.TableDataInfo
;
import
com.zehong.common.core.page.TableDataInfo
;
...
@@ -207,6 +208,8 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
...
@@ -207,6 +208,8 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
List
<
Map
<
String
,
Object
>>
backToMessage
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
backToMessage
=
new
ArrayList
<>();
StringBuilder
sb
=
new
StringBuilder
();
StringBuilder
sb
=
new
StringBuilder
();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
if
(
lpgAirChargeFiles
.
size
()
>
0
)
{
if
(
lpgAirChargeFiles
.
size
()
>
0
)
{
...
@@ -256,6 +259,9 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
...
@@ -256,6 +259,9 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
}
}
// backToMessage.sort(Comparator.comparing((Map<String, Object> mapitem) -> (Date) mapitem.get("time")).reversed());
backToMessage
.
sort
((
a
,
b
)
->
DateUtil
.
parse
(
a
.
get
(
"time"
).
toString
()).
getTime
()
-
DateUtil
.
parse
(
b
.
get
(
"time"
).
toString
()).
getTime
()
>=
0
?
-
1
:
1
);
lpgGasBottleFilesBackToVo
.
setBackToMessage
(
backToMessage
);
lpgGasBottleFilesBackToVo
.
setBackToMessage
(
backToMessage
);
return
lpgGasBottleFilesBackToVo
;
return
lpgGasBottleFilesBackToVo
;
}
}
...
...
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