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
fe5471c1
Commit
fe5471c1
authored
Jun 25, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车辆初始化时里程切割坐标结束坐标错误问题修复
parent
e89864e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
ThreadCarMileageTreatment.java
...yeejoin/equipmanage/thread/ThreadCarMileageTreatment.java
+2
-4
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/thread/ThreadCarMileageTreatment.java
View file @
fe5471c1
...
@@ -79,9 +79,7 @@ public class ThreadCarMileageTreatment extends Thread {
...
@@ -79,9 +79,7 @@ public class ThreadCarMileageTreatment extends Thread {
&&
Obj
.
getDoubleValue
(
"FireCar_Latitude"
)
!=
0
)
{
&&
Obj
.
getDoubleValue
(
"FireCar_Latitude"
)
!=
0
)
{
filterList
.
add
(
list
.
get
(
j
));
filterList
.
add
(
list
.
get
(
j
));
// 获取第一个不为空的坐标
// 获取第一个不为空的坐标
if
(
lastObj
==
null
)
{
lastObj
=
Obj
;
lastObj
=
Obj
;
}
}
}
}
}
Log
.
info
(
"----------------------------------------lastobj----------------------"
+
lastObj
.
toJSONString
());
Log
.
info
(
"----------------------------------------lastobj----------------------"
+
lastObj
.
toJSONString
());
...
@@ -116,7 +114,7 @@ public class ThreadCarMileageTreatment extends Thread {
...
@@ -116,7 +114,7 @@ public class ThreadCarMileageTreatment extends Thread {
}
}
last
.
setTravel
(
new
BigDecimal
(
travel
/
1000
).
setScale
(
1
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
());
last
.
setTravel
(
new
BigDecimal
(
travel
/
1000
).
setScale
(
1
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
());
Log
.
info
(
"----------------------------------------last----------------------"
+
lastObj
.
toJSONString
());
Log
.
info
(
"----------------------------------------last----------------------"
+
lastObj
.
toJSONString
());
wlCarMileageServiceImpl
.
updateById
(
last
);
//
wlCarMileageServiceImpl.updateById(last);
}
}
}
}
}
}
...
...
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