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
b8b97276
Commit
b8b97276
authored
Dec 08, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.处理车辆轨迹划分存在数据转换异常问题。
parent
51a2e513
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
JxiopCarIotListerServiceImpl.java
...quipmanage/service/impl/JxiopCarIotListerServiceImpl.java
+3
-3
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/JxiopCarIotListerServiceImpl.java
View file @
b8b97276
...
@@ -205,7 +205,7 @@ public class JxiopCarIotListerServiceImpl {
...
@@ -205,7 +205,7 @@ public class JxiopCarIotListerServiceImpl {
int
direction
=
jsonObject
.
getIntValue
(
"direction"
);
int
direction
=
jsonObject
.
getIntValue
(
"direction"
);
String
waringDate
=
jsonObject
.
getString
(
"createdTime"
);
String
waringDate
=
jsonObject
.
getString
(
"createdTime"
);
Double
speed
=
jsonObject
.
getDoubleValue
(
"fireCar_Speed"
)
>
0
?
jsonObject
.
getDoubleValue
(
"fireCar_Speed"
)
:
jsonObject
.
getDoubleValue
(
"FireCar_Speed"
);
Double
speed
=
jsonObject
.
getDoubleValue
(
"fireCar_Speed"
)
>
0
?
jsonObject
.
getDoubleValue
(
"fireCar_Speed"
)
:
jsonObject
.
getDoubleValue
(
"FireCar_Speed"
);
Double
maxSpeed
=
defaultMaxSpeed
;
Double
maxSpeed
=
70.0
;
// 地图推送消息
// 地图推送消息
Car
car
=
iCarService
.
getOne
(
new
LambdaQueryWrapper
<
Car
>().
eq
(
Car:
:
getIotCode
,
iotCode
));
Car
car
=
iCarService
.
getOne
(
new
LambdaQueryWrapper
<
Car
>().
eq
(
Car:
:
getIotCode
,
iotCode
));
if
(
car
!=
null
&&
startLongitude
!=
0
&&
startLatitude
!=
0
)
{
if
(
car
!=
null
&&
startLongitude
!=
0
&&
startLatitude
!=
0
)
{
...
@@ -226,8 +226,8 @@ public class JxiopCarIotListerServiceImpl {
...
@@ -226,8 +226,8 @@ public class JxiopCarIotListerServiceImpl {
maxSpeed
=
car
.
getMaxSpeed
();
maxSpeed
=
car
.
getMaxSpeed
();
}
}
iCarService
.
updateById
(
car
);
iCarService
.
updateById
(
car
);
logger
.
info
(
"车牌号::"
+
car
.
getCarNum
()
+
"最大车速:"
+
car
.
getMaxSpeed
()
+
"当前车速::"
+
speed
);
logger
.
info
(
"车牌号::"
+
car
.
getCarNum
()
+
"最大车速:"
+
maxSpeed
+
"当前车速::"
+
speed
);
if
(
speed
>
maxSpeed
)
{
if
(
(
speed
-
maxSpeed
)>
0
)
{
List
<
CarSpeedWarningRecord
>
list
=
wlCarSpeedWaringRecordMapper
.
selectList
(
new
QueryWrapper
<
CarSpeedWarningRecord
>().
eq
(
"car_num"
,
car
.
getCarNum
()).
between
(
"waring_date"
,
DateUtil
.
offsetMinute
(
new
Date
(),
10
),
new
Date
()));
List
<
CarSpeedWarningRecord
>
list
=
wlCarSpeedWaringRecordMapper
.
selectList
(
new
QueryWrapper
<
CarSpeedWarningRecord
>().
eq
(
"car_num"
,
car
.
getCarNum
()).
between
(
"waring_date"
,
DateUtil
.
offsetMinute
(
new
Date
(),
10
),
new
Date
()));
if
(!(
list
.
size
()
>
0
))
{
if
(!(
list
.
size
()
>
0
))
{
CarSpeedWarningRecord
carSpeedWarningRecord
=
new
CarSpeedWarningRecord
();
CarSpeedWarningRecord
carSpeedWarningRecord
=
new
CarSpeedWarningRecord
();
...
...
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