Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4c8e7f26
authored
May 07, 2025
by
王欣伟
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加百度经纬度信息返回
1 parent
f7cb3408
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
src/main/java/cn/com/glsx/admin/modules/converter/VehicleMonitorConvert.java
src/main/java/cn/com/glsx/admin/modules/converter/VehicleMonitorConvert.java
View file @
4c8e7f2
...
@@ -56,6 +56,7 @@ public class VehicleMonitorConvert {
...
@@ -56,6 +56,7 @@ public class VehicleMonitorConvert {
.
ifPresent
(
stayPointListVO:
:
setDuration
);
.
ifPresent
(
stayPointListVO:
:
setDuration
);
stayPointListVO
.
setLocationType
(
"GPS"
);
stayPointListVO
.
setLocationType
(
"GPS"
);
// 谷歌经纬度
Optional
.
ofNullable
(
stayPointRecordDTO
)
Optional
.
ofNullable
(
stayPointRecordDTO
)
.
map
(
StayPointRecordDTO:
:
getStayGps
)
.
map
(
StayPointRecordDTO:
:
getStayGps
)
.
map
(
GpsLocation:
:
getElat
)
.
map
(
GpsLocation:
:
getElat
)
...
@@ -64,6 +65,16 @@ public class VehicleMonitorConvert {
...
@@ -64,6 +65,16 @@ public class VehicleMonitorConvert {
.
map
(
StayPointRecordDTO:
:
getStayGps
)
.
map
(
StayPointRecordDTO:
:
getStayGps
)
.
map
(
GpsLocation:
:
getElng
)
.
map
(
GpsLocation:
:
getElng
)
.
ifPresent
(
stayPointListVO:
:
setElng
);
.
ifPresent
(
stayPointListVO:
:
setElng
);
// 百度经纬度
Optional
.
ofNullable
(
stayPointRecordDTO
)
.
map
(
StayPointRecordDTO:
:
getStayGps
)
.
map
(
GpsLocation:
:
getBlat
)
.
ifPresent
(
stayPointListVO:
:
setBlat
);
Optional
.
ofNullable
(
stayPointRecordDTO
)
.
map
(
StayPointRecordDTO:
:
getStayGps
)
.
map
(
GpsLocation:
:
getBlng
)
.
ifPresent
(
stayPointListVO:
:
setBlng
);
stayPointListVO
.
setAddress
(
address
);
stayPointListVO
.
setAddress
(
address
);
return
stayPointListVO
;
return
stayPointListVO
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment