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 ec27f8d3
authored
Aug 31, 2023
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.23.0 添加设备定位和警情查询接口 优化多余参数
1 parent
3e33ca75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
src/main/java/cn/com/glsx/devicemonitor/modules/model/deviceInformation/BsLocationDTO.java
src/main/java/cn/com/glsx/devicemonitor/modules/service/impl/MonitorServiceImpl.java
src/main/java/cn/com/glsx/devicemonitor/modules/model/deviceInformation/BsLocationDTO.java
View file @
ec27f8d
...
@@ -43,7 +43,7 @@ public class BsLocationDTO implements Serializable {
...
@@ -43,7 +43,7 @@ public class BsLocationDTO implements Serializable {
/**
/**
* 信号量
* 信号量
*/
*/
public
String
signal
;
public
Integer
signal
;
/**
/**
* 原始 经度
* 原始 经度
...
...
src/main/java/cn/com/glsx/devicemonitor/modules/service/impl/MonitorServiceImpl.java
View file @
ec27f8d
...
@@ -436,7 +436,11 @@ public class MonitorServiceImpl implements MonitorService {
...
@@ -436,7 +436,11 @@ public class MonitorServiceImpl implements MonitorService {
gpsLocationDTO
.
setReceiveTime
(
gpsLocation
.
getDateTime
());
gpsLocationDTO
.
setReceiveTime
(
gpsLocation
.
getDateTime
());
gpsLocationDTO
.
setLng
(
gpsLocation
.
getLng
());
gpsLocationDTO
.
setLng
(
gpsLocation
.
getLng
());
gpsLocationDTO
.
setLat
(
gpsLocation
.
getLat
());
gpsLocationDTO
.
setLat
(
gpsLocation
.
getLat
());
gpsLocationDTO
.
setAddress
(
gpsLocation
.
getAddress
());
// 转换地址信息
if
(
StringUtils
.
isNotEmpty
(
gpsLocation
.
getLng
())
&&
StringUtils
.
isNotEmpty
(
gpsLocation
.
getLat
()))
{
String
address
=
hdaoGpsComponent
.
mapGeoConvert
(
gpsLocation
.
getLat
(),
gpsLocation
.
getLng
());
gpsLocationDTO
.
setAddress
(
address
);
}
return
gpsLocationDTO
;
return
gpsLocationDTO
;
}
}
...
@@ -450,8 +454,6 @@ public class MonitorServiceImpl implements MonitorService {
...
@@ -450,8 +454,6 @@ public class MonitorServiceImpl implements MonitorService {
bsLocationDTO
.
setMcc
(
baseStationModel
.
getMcc
());
bsLocationDTO
.
setMcc
(
baseStationModel
.
getMcc
());
bsLocationDTO
.
setMnc
(
baseStationModel
.
getMnc
());
bsLocationDTO
.
setMnc
(
baseStationModel
.
getMnc
());
bsLocationDTO
.
setLac
(
baseStationModel
.
getLac
());
bsLocationDTO
.
setLac
(
baseStationModel
.
getLac
());
bsLocationDTO
.
setCellid
(
baseStationModel
.
getLcid
());
// bsLocationDTO.setSignal();
//解析基站数据
//解析基站数据
MobileBaseModel
mbModel
=
null
;
MobileBaseModel
mbModel
=
null
;
...
@@ -459,6 +461,8 @@ public class MonitorServiceImpl implements MonitorService {
...
@@ -459,6 +461,8 @@ public class MonitorServiceImpl implements MonitorService {
for
(
BsInfoModel
bsInfo
:
bsInfoList
)
{
for
(
BsInfoModel
bsInfo
:
bsInfoList
)
{
mbModel
=
hdaoGpsComponent
.
analyzeBsData
(
bsInfo
.
getLac
(),
bsInfo
.
getCellId
(),
0
);
mbModel
=
hdaoGpsComponent
.
analyzeBsData
(
bsInfo
.
getLac
(),
bsInfo
.
getCellId
(),
0
);
if
(
mbModel
!=
null
)
{
if
(
mbModel
!=
null
)
{
bsLocationDTO
.
setCellid
(
bsInfo
.
getCellId
());
bsLocationDTO
.
setSignal
(
bsInfo
.
getSignal
());
break
;
break
;
}
}
}
}
...
@@ -483,8 +487,11 @@ public class MonitorServiceImpl implements MonitorService {
...
@@ -483,8 +487,11 @@ public class MonitorServiceImpl implements MonitorService {
alarmDTO
.
setReceiveTime
(
commonAlarmDto
.
getBeginTime
());
alarmDTO
.
setReceiveTime
(
commonAlarmDto
.
getBeginTime
());
alarmDTO
.
setLng
(
commonAlarmDto
.
getLng
());
alarmDTO
.
setLng
(
commonAlarmDto
.
getLng
());
alarmDTO
.
setLat
(
commonAlarmDto
.
getLat
());
alarmDTO
.
setLat
(
commonAlarmDto
.
getLat
());
String
address
=
hdaoGpsComponent
.
mapGeoConvert
(
commonAlarmDto
.
getLat
(),
commonAlarmDto
.
getLng
());
// 转换地址信息
alarmDTO
.
setAddress
(
address
);
if
(
StringUtils
.
isNotEmpty
(
commonAlarmDto
.
getLng
())
&&
StringUtils
.
isNotEmpty
(
commonAlarmDto
.
getLat
()))
{
String
address
=
hdaoGpsComponent
.
mapGeoConvert
(
commonAlarmDto
.
getLat
(),
commonAlarmDto
.
getLng
());
alarmDTO
.
setAddress
(
address
);
}
return
alarmDTO
;
return
alarmDTO
;
}
}
}
}
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