Commit ec27f8d3 by 杨林龙

1.23.0 添加设备定位和警情查询接口 优化多余参数

1 parent 3e33ca75
...@@ -43,7 +43,7 @@ public class BsLocationDTO implements Serializable { ...@@ -43,7 +43,7 @@ public class BsLocationDTO implements Serializable {
/** /**
* 信号量 * 信号量
*/ */
public String signal; public Integer signal;
/** /**
* 原始 经度 * 原始 经度
......
...@@ -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;
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!