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 35fde0e7
authored
May 20, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化激活位置点批量查询方法
1 parent
90e9cb38
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/main/java/cn/com/glsx/devicemonitor/modules/components/HdaoGpsComponent.java
src/main/java/cn/com/glsx/devicemonitor/modules/components/HdaoGpsComponent.java
View file @
35fde0e
...
@@ -101,9 +101,9 @@ public class HdaoGpsComponent {
...
@@ -101,9 +101,9 @@ public class HdaoGpsComponent {
* @return
* @return
*/
*/
public
DataGpsLocation
getDevicesFirstGpsInfo
(
String
sn
,
String
activeDate
)
{
public
DataGpsLocation
getDevicesFirstGpsInfo
(
String
sn
,
String
activeDate
)
{
DataGpsLocation
gpsLocation
=
n
ew
DataGpsLocation
()
;
DataGpsLocation
gpsLocation
=
n
ull
;
if
(
StringUtils
.
isEmpty
(
sn
)
||
StringUtils
.
isEmpty
(
activeDate
))
{
if
(
StringUtils
.
isEmpty
(
sn
)
||
StringUtils
.
isEmpty
(
activeDate
))
{
return
gpsLocation
;
return
null
;
}
}
try
{
try
{
Date
date
=
DateUtils
.
parseDate
(
activeDate
,
parsePattern
);
Date
date
=
DateUtils
.
parseDate
(
activeDate
,
parsePattern
);
...
@@ -116,6 +116,7 @@ public class HdaoGpsComponent {
...
@@ -116,6 +116,7 @@ public class HdaoGpsComponent {
log
.
info
(
"getDevicesFirstGpsInfo invoker ice getGpsRecords result:"
+
res
.
value
.
oprResult
+
" reqSn:"
+
sn
);
log
.
info
(
"getDevicesFirstGpsInfo invoker ice getGpsRecords result:"
+
res
.
value
.
oprResult
+
" reqSn:"
+
sn
);
if
(
res
.
value
.
records
!=
null
&&
res
.
value
.
records
.
length
>
0
)
{
if
(
res
.
value
.
records
!=
null
&&
res
.
value
.
records
.
length
>
0
)
{
GpsRecord
gps
=
res
.
value
.
records
[
0
];
GpsRecord
gps
=
res
.
value
.
records
[
0
];
gpsLocation
=
new
DataGpsLocation
();
gpsLocation
.
setSn
(
sn
);
gpsLocation
.
setSn
(
sn
);
gpsLocation
.
setDateTime
(
timeStampSec2DateStr
(
String
.
valueOf
(
gps
.
gpsTime
)));
gpsLocation
.
setDateTime
(
timeStampSec2DateStr
(
String
.
valueOf
(
gps
.
gpsTime
)));
gpsLocation
.
setLat
(
String
.
valueOf
(
this
.
latlng
(
gps
.
lat
)));
gpsLocation
.
setLat
(
String
.
valueOf
(
this
.
latlng
(
gps
.
lat
)));
...
...
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