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
c1f55c97
Commit
c1f55c97
authored
Jun 29, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车辆统计优化里程
parent
461a96c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
CarServiceImpl.java
.../com/yeejoin/equipmanage/service/impl/CarServiceImpl.java
+4
-3
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 @
c1f55c97
...
@@ -1864,14 +1864,15 @@ public class CarServiceImpl extends ServiceImpl<CarMapper, Car> implements ICarS
...
@@ -1864,14 +1864,15 @@ public class CarServiceImpl extends ServiceImpl<CarMapper, Car> implements ICarS
MileageDto
mileageDto
=
new
MileageDto
();
MileageDto
mileageDto
=
new
MileageDto
();
Double
totalTravel
=
iWlCarMileageService
.
getTotalTravelByIotCodeAndDate
(
date
,
list
.
get
(
i
).
getIotCode
());
Double
totalTravel
=
iWlCarMileageService
.
getTotalTravelByIotCodeAndDate
(
date
,
list
.
get
(
i
).
getIotCode
());
mileageDto
.
setCarNum
(
list
.
get
(
i
).
getCarNum
());
mileageDto
.
setCarNum
(
list
.
get
(
i
).
getCarNum
());
mileageDto
.
setCarCode
(
list
.
get
(
i
).
get
Code
());
mileageDto
.
setCarCode
(
list
.
get
(
i
).
get
Remark
());
mileageDto
.
setIotCode
(
date
+
"::"
+
list
.
get
(
i
).
getIotCode
());
mileageDto
.
setIotCode
(
date
+
"::"
+
list
.
get
(
i
).
getIotCode
());
mileageDto
.
setTotal
(
carMaxTravel
+
"KM"
);
if
(
totalTravel
!=
null
)
{
if
(
totalTravel
!=
null
)
{
mileageDto
.
setTotalTravel
((
totalTravel
/
carMaxTravel
)
*
100
);
mileageDto
.
setTotalTravel
((
totalTravel
/
carMaxTravel
)
*
100
);
}
else
{
}
else
{
mileageDto
.
setTotalTravel
(
0.0
);
totalTravel
=
0.0
;
mileageDto
.
setTotalTravel
(
totalTravel
);
}
}
mileageDto
.
setTotal
(
totalTravel
+
"KM"
);
mileageDtoList
.
add
(
mileageDto
);
mileageDtoList
.
add
(
mileageDto
);
}
}
}
}
...
...
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