Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-devicemonitor
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 fb395c9a
authored
Jun 07, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
返回参数增加赋值
1 parent
6bfe31b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
src/main/java/cn/com/glsx/devicemonitor/modules/components/HdaoGpsComponent.java
src/test/java/cn/com/glsx/devicemonitor/modules/components/HdaoGpsComponentTest.java
src/main/java/cn/com/glsx/devicemonitor/modules/components/HdaoGpsComponent.java
View file @
fb395c9
...
@@ -869,6 +869,8 @@ public class HdaoGpsComponent {
...
@@ -869,6 +869,8 @@ public class HdaoGpsComponent {
gpsLocation
.
setSn
(
sn
);
gpsLocation
.
setSn
(
sn
);
gpsLocation
.
setLat
(
lngLat
[
0
]);
gpsLocation
.
setLat
(
lngLat
[
0
]);
gpsLocation
.
setLng
(
lngLat
[
1
]);
gpsLocation
.
setLng
(
lngLat
[
1
]);
gpsLocation
.
setElat
(
lngLat
[
0
]);
gpsLocation
.
setElng
(
lngLat
[
1
]);
gpsLocation
.
setStoreTime
(
DateUtil
.
formatDateTime
(
date
));
gpsLocation
.
setStoreTime
(
DateUtil
.
formatDateTime
(
date
));
gpsLocation
.
setDateTime
(
DateUtil
.
formatDateTime
(
date
));
gpsLocation
.
setDateTime
(
DateUtil
.
formatDateTime
(
date
));
return
gpsLocation
;
return
gpsLocation
;
...
...
src/test/java/cn/com/glsx/devicemonitor/modules/components/HdaoGpsComponentTest.java
View file @
fb395c9
...
@@ -26,7 +26,7 @@ class HdaoGpsComponentTest {
...
@@ -26,7 +26,7 @@ class HdaoGpsComponentTest {
@Test
@Test
public
void
testGet
(){
public
void
testGet
(){
DataGpsLocation
wifiLocation
=
hdaoGpsComponent
.
getWifiLocation
(
"
75201160807
"
);
DataGpsLocation
wifiLocation
=
hdaoGpsComponent
.
getWifiLocation
(
"
4711124038
"
);
System
.
out
.
println
(
JSON
.
toJSONString
(
wifiLocation
));
System
.
out
.
println
(
JSON
.
toJSONString
(
wifiLocation
));
}
}
...
...
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