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 2531e707
authored
Dec 25, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化获取报警时间定位点的方案
1 parent
8e3c0d89
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletions
src/main/java/cn/com/glsx/admin/modules/model/export/JudgmentExport.java
src/main/java/cn/com/glsx/admin/modules/service/JudgmentService.java
src/main/java/cn/com/glsx/admin/modules/service/OfflineService.java
src/main/java/cn/com/glsx/admin/modules/model/export/JudgmentExport.java
View file @
2531e70
...
...
@@ -76,6 +76,11 @@ public class JudgmentExport {
private
Integer
source
;
/**
* 设备类型 1有线 0无线 字符串
*/
private
String
sourceStr
;
/**
* 经度
**/
private
String
alarmLng
;
...
...
src/main/java/cn/com/glsx/admin/modules/service/JudgmentService.java
View file @
2531e70
...
...
@@ -64,6 +64,7 @@ public class JudgmentService {
if
(
stuJudgeAlarm
.
getSn
().
equals
(
judgmentExportTemp
.
getSn
()))
{
JudgmentExport
judgmentExport
=
new
JudgmentExport
();
BeanUtils
.
copyProperties
(
judgmentExportTemp
,
judgmentExport
);
judgmentExport
.
setSourceStr
(
TypeConverseEunm
.
SourceEnum
.
getStrBySourceType
(
judgmentExport
.
getSource
()));
judgmentExport
.
setAlarmType
(
stuJudgeAlarm
.
getAlarmType
());
judgmentExport
.
setAlarmTypeStr
(
TypeConverseEunm
.
AlarmTypeEnum
.
getStrByAlarmType
(
stuJudgeAlarm
.
getAlarmType
()));
judgmentExport
.
setAlarmStatus
(
stuJudgeAlarm
.
getAlarmStatus
());
...
...
@@ -104,6 +105,7 @@ public class JudgmentService {
if
(
stuJudgeAlarm
.
getSn
().
equals
(
judgmentExportTemp
.
getSn
()))
{
JudgmentExport
judgmentExport
=
new
JudgmentExport
();
BeanUtils
.
copyProperties
(
judgmentExportTemp
,
judgmentExport
);
judgmentExport
.
setSourceStr
(
TypeConverseEunm
.
SourceEnum
.
getStrBySourceType
(
judgmentExport
.
getSource
()));
judgmentExport
.
setAlarmType
(
stuJudgeAlarm
.
getAlarmType
());
judgmentExport
.
setAlarmTypeStr
(
TypeConverseEunm
.
AlarmTypeEnum
.
getStrByAlarmType
(
stuJudgeAlarm
.
getAlarmType
()));
judgmentExport
.
setAlarmStatus
(
stuJudgeAlarm
.
getAlarmStatus
());
...
...
src/main/java/cn/com/glsx/admin/modules/service/OfflineService.java
View file @
2531e70
...
...
@@ -47,7 +47,6 @@ public class OfflineService {
List
<
OfflineExport
>
offlineList
=
vehicleMapper
.
findOfflineList
(
offlineSearch
);
if
(
CollectionUtil
.
isNotEmpty
(
offlineList
))
{
offlineList
.
forEach
(
offlineExport
->
{
offlineExport
.
setDeviceTypeStr
(
TypeConverseEunm
.
DeviceTypeEnum
.
getStrByDeviceType
(
offlineExport
.
getDeviceType
()));
// 封装最后GPS数据和地址数据
GpsBsData
gpsBsDataForGps
=
remoteGpsBsService
.
getLocationOfAlarmTime
(
offlineExport
.
getSn
(),
offlineExport
.
getLastGpsTime
());
GpsLocation
gpsLocation
=
gpsBsDataForGps
.
getGpsLocation
();
...
...
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