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
146b3b19
Commit
146b3b19
authored
Nov 08, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.车辆异常轨迹车辆数据错误问题处理。
parent
6cc0bb26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
CarServiceImpl.java
.../com/yeejoin/equipmanage/service/impl/CarServiceImpl.java
+4
-4
WlCarMileageServiceImpl.java
...oin/equipmanage/service/impl/WlCarMileageServiceImpl.java
+2
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/CarServiceImpl.java
View file @
146b3b19
...
@@ -1707,9 +1707,9 @@ public class CarServiceImpl extends ServiceImpl<CarMapper, Car> implements ICarS
...
@@ -1707,9 +1707,9 @@ public class CarServiceImpl extends ServiceImpl<CarMapper, Car> implements ICarS
Page
<
CarExceptionDto
>
page
=
new
Page
<>();
Page
<
CarExceptionDto
>
page
=
new
Page
<>();
List
<
CarExceptionDto
>
carExceptionDtos
=
new
ArrayList
<>();
List
<
CarExceptionDto
>
carExceptionDtos
=
new
ArrayList
<>();
LocalDate
localDate
=
LocalDate
.
now
(
ZoneId
.
of
(
"+8"
));
LocalDate
localDate
=
LocalDate
.
now
(
ZoneId
.
of
(
"+8"
));
String
startDate
=
localDate
.
plusDays
(-
1
)
.
toString
();
String
endDate
=
localDate
.
toString
();
String
end
Date
=
localDate
.
plusDays
((
0
-
type
)).
toString
();
String
start
Date
=
localDate
.
plusDays
((
0
-
type
)).
toString
();
List
<
Car
>
list
=
this
.
list
()
;
List
<
Car
>
list
=
carMapper
.
selectList
(
new
QueryWrapper
<>())
;
if
(
StringUtils
.
isNotEmpty
(
keyWord
))
{
if
(
StringUtils
.
isNotEmpty
(
keyWord
))
{
list
=
list
.
stream
().
filter
(
car
->
car
.
getBizOrgName
().
contains
(
keyWord
)).
collect
(
Collectors
.
toList
());
list
=
list
.
stream
().
filter
(
car
->
car
.
getBizOrgName
().
contains
(
keyWord
)).
collect
(
Collectors
.
toList
());
}
}
...
@@ -1718,7 +1718,7 @@ public class CarServiceImpl extends ServiceImpl<CarMapper, Car> implements ICarS
...
@@ -1718,7 +1718,7 @@ public class CarServiceImpl extends ServiceImpl<CarMapper, Car> implements ICarS
CarExceptionDto
carExceptionDto
=
new
CarExceptionDto
();
CarExceptionDto
carExceptionDto
=
new
CarExceptionDto
();
Car
car
=
list
.
get
(
i
);
Car
car
=
list
.
get
(
i
);
Double
totalTravel
=
iWlCarMileageService
.
getTotalTravelByIotCodeAndDateProd
(
startDate
,
endDate
,
list
.
get
(
i
).
getIotCode
());
Double
totalTravel
=
iWlCarMileageService
.
getTotalTravelByIotCodeAndDateProd
(
startDate
,
endDate
,
list
.
get
(
i
).
getIotCode
());
if
(
!(
totalTravel
!=
null
&&
totalTravel
>
0.0
)
)
{
if
(
totalTravel
<=
0.0
)
{
carExceptionDto
.
setCarId
(
String
.
valueOf
(
car
.
getId
()));
carExceptionDto
.
setCarId
(
String
.
valueOf
(
car
.
getId
()));
carExceptionDto
.
setCarNumber
(
car
.
getCarNum
());
carExceptionDto
.
setCarNumber
(
car
.
getCarNum
());
carExceptionDto
.
setBelongStation
(
car
.
getBizOrgName
());
carExceptionDto
.
setBelongStation
(
car
.
getBizOrgName
());
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/WlCarMileageServiceImpl.java
View file @
146b3b19
...
@@ -512,8 +512,8 @@ public class WlCarMileageServiceImpl extends ServiceImpl<WlCarMileageMapper, WlC
...
@@ -512,8 +512,8 @@ public class WlCarMileageServiceImpl extends ServiceImpl<WlCarMileageMapper, WlC
wrapper
.
ge
(
WlCarMileage:
:
getTravel
,
0.5
);
wrapper
.
ge
(
WlCarMileage:
:
getTravel
,
0.5
);
wrapper
.
isNotNull
(
WlCarMileage:
:
getEndTime
);
wrapper
.
isNotNull
(
WlCarMileage:
:
getEndTime
);
wrapper
.
isNotNull
(
WlCarMileage:
:
getStartTime
);
wrapper
.
isNotNull
(
WlCarMileage:
:
getStartTime
);
wrapper
.
ge
(
WlCarMileage:
:
get
EndTime
,
end
Date
);
wrapper
.
ge
(
WlCarMileage:
:
get
Date
,
start
Date
);
wrapper
.
le
(
WlCarMileage:
:
get
StartTime
,
start
Date
);
wrapper
.
le
(
WlCarMileage:
:
get
Date
,
end
Date
);
List
<
WlCarMileage
>
list
=
iWlCarMileageService
.
list
(
wrapper
);
List
<
WlCarMileage
>
list
=
iWlCarMileageService
.
list
(
wrapper
);
for
(
WlCarMileage
wl
:
list
)
{
for
(
WlCarMileage
wl
:
list
)
{
//判断当前车辆全程是否异常,如果时速小于阈值 则对数据进行返回 否则不予返回
//判断当前车辆全程是否异常,如果时速小于阈值 则对数据进行返回 否则不予返回
...
...
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