Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f7923d06
authored
Apr 17, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
计算单位
1 parent
c55e019a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
src/main/java/cn/com/glsx/admin/modules/service/JourneyService.java
src/main/java/cn/com/glsx/admin/modules/service/JourneyService.java
View file @
f7923d0
...
...
@@ -187,10 +187,6 @@ public class JourneyService {
long
t2
=
System
.
currentTimeMillis
();
log
.
info
(
"查询设备信息耗时{}"
,
t2
-
t1
);
// 查询并封装设备对应的里程日期和里程数
long
t3
=
System
.
currentTimeMillis
();
log
.
info
(
"组装日里程map耗时{}"
,
t3
-
t2
);
Map
<
String
,
List
<
JourneyDailyExport
>>
map
=
journeyDailyExportList
.
stream
()
.
collect
(
Collectors
.
groupingBy
(
JourneyDailyExport:
:
getSn
));
for
(
Map
.
Entry
<
String
,
List
<
JourneyDailyExport
>>
journeyEntry
:
map
.
entrySet
())
{
...
...
@@ -208,11 +204,12 @@ public class JourneyService {
oneData
.
add
(
"0.0公里"
);
continue
;
}
oneData
.
add
(
dateDataMap
.
get
(
dateTime
)
+
"公里"
);
oneData
.
add
(
dateDataMap
.
get
(
dateTime
)
/
1000
+
"公里"
);
}
allDataList
.
add
(
oneData
);
}
long
t3
=
System
.
currentTimeMillis
();
log
.
info
(
"组装数据耗时{}"
,
t3
-
t2
);
return
allDataList
;
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment