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
4ef1c69b
Commit
4ef1c69b
authored
Sep 14, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结束里程的结束时间取开始处理的时间。
parent
c1177dde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ThreadCar.java
...c/main/java/com/yeejoin/equipmanage/thread/ThreadCar.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/thread/ThreadCar.java
View file @
4ef1c69b
...
@@ -95,7 +95,7 @@ ThreadCar extends Thread {
...
@@ -95,7 +95,7 @@ ThreadCar extends Thread {
logger
.
info
(
"---过滤后last信息为null时的数据::"
+
JSONObject
.
toJSONString
(
last
));
logger
.
info
(
"---过滤后last信息为null时的数据::"
+
JSONObject
.
toJSONString
(
last
));
}
}
//里程结束时间设置为最后一次的上报时间
//里程结束时间设置为最后一次的上报时间
Date
endTime
=
new
Date
(
last
.
getStartTime
().
getTime
()
/
1000
*
1000
);
Date
endTime
=
new
Date
(
startTime
/
1000
*
1000
);
//实时库中的时间虽然坐标与记录的一致,但是更新时间可能最新,故可能会有记录的结束时间早于开始时间
//实时库中的时间虽然坐标与记录的一致,但是更新时间可能最新,故可能会有记录的结束时间早于开始时间
long
takeTime
=
(
endTime
.
getTime
()
/
1000
*
1000
)
-
(
last
.
getStartTime
().
getTime
()
/
1000
*
1000
);
long
takeTime
=
(
endTime
.
getTime
()
/
1000
*
1000
)
-
(
last
.
getStartTime
().
getTime
()
/
1000
*
1000
);
if
(
takeTime
<
0
)
{
if
(
takeTime
<
0
)
{
...
...
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