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 1773c765
authored
Dec 25, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化获取报警时间定位点的方案
1 parent
dbf46796
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
src/main/java/cn/com/glsx/admin/modules/service/OfflineService.java
src/test/java/cn/com/glsx/admin/modules/service/OfflineServiceTest.java
src/main/java/cn/com/glsx/admin/modules/service/OfflineService.java
View file @
1773c76
...
@@ -59,9 +59,9 @@ public class OfflineService {
...
@@ -59,9 +59,9 @@ public class OfflineService {
GpsBsData
gpsBsDataForBs
=
remoteGpsBsService
.
getLocationOfAlarmTime
(
offlineExport
.
getSn
(),
offlineExport
.
getLastBsTime
());
GpsBsData
gpsBsDataForBs
=
remoteGpsBsService
.
getLocationOfAlarmTime
(
offlineExport
.
getSn
(),
offlineExport
.
getLastBsTime
());
GpsLocation
bsLocation
=
gpsBsDataForBs
.
getBsLocation
();
GpsLocation
bsLocation
=
gpsBsDataForBs
.
getBsLocation
();
if
(
ObjectUtil
.
isNotNull
(
bsLocation
))
{
if
(
ObjectUtil
.
isNotNull
(
bsLocation
))
{
offlineExport
.
set
Gp
sAlarmLng
(
bsLocation
.
getLng
());
offlineExport
.
set
B
sAlarmLng
(
bsLocation
.
getLng
());
offlineExport
.
set
Gp
sAlarmLat
(
bsLocation
.
getLat
());
offlineExport
.
set
B
sAlarmLat
(
bsLocation
.
getLat
());
offlineExport
.
set
Gp
sAlarmAddress
(
bsLocation
.
getAddress
());
offlineExport
.
set
B
sAlarmAddress
(
bsLocation
.
getAddress
());
}
}
offlineExport
.
setSourceStr
(
TypeConverseEunm
.
SourceEnum
.
getStrBySourceType
(
offlineExport
.
getSource
()));
offlineExport
.
setSourceStr
(
TypeConverseEunm
.
SourceEnum
.
getStrBySourceType
(
offlineExport
.
getSource
()));
offlineExport
.
setDeviceTypeStr
(
TypeConverseEunm
.
DeviceTypeEnum
.
getStrByDeviceType
(
offlineExport
.
getDeviceType
()));
offlineExport
.
setDeviceTypeStr
(
TypeConverseEunm
.
DeviceTypeEnum
.
getStrByDeviceType
(
offlineExport
.
getDeviceType
()));
...
...
src/test/java/cn/com/glsx/admin/modules/service/OfflineServiceTest.java
View file @
1773c76
...
@@ -25,6 +25,7 @@ public class OfflineServiceTest {
...
@@ -25,6 +25,7 @@ public class OfflineServiceTest {
OfflineSearch
offlineSearch
=
new
OfflineSearch
();
OfflineSearch
offlineSearch
=
new
OfflineSearch
();
offlineSearch
.
setPageNumber
(
1
);
offlineSearch
.
setPageNumber
(
1
);
offlineSearch
.
setPageSize
(
10
);
offlineSearch
.
setPageSize
(
10
);
offlineSearch
.
setKeywords
(
"1700151515"
);
List
<
OfflineExport
>
offlineList
=
offlineService
.
findOfflineList
(
offlineSearch
);
List
<
OfflineExport
>
offlineList
=
offlineService
.
findOfflineList
(
offlineSearch
);
System
.
out
.
println
(
"offlineList = "
+
JSON
.
toJSONString
(
offlineList
));
System
.
out
.
println
(
"offlineList = "
+
JSON
.
toJSONString
(
offlineList
));
}
}
...
...
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