Commit 4de2ddd6 authored by 王晓倩's avatar 王晓倩

报警详情添加经纬度和管道坐标

parent 560ac275
...@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat; ...@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import com.zehong.common.core.domain.BaseEntity; import com.zehong.common.core.domain.BaseEntity;
import com.zehong.system.domain.TDeviceReportData; import com.zehong.system.domain.TDeviceReportData;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -32,6 +33,15 @@ public class DeviceAlarmVo extends BaseEntity ...@@ -32,6 +33,15 @@ public class DeviceAlarmVo extends BaseEntity
/** 设备编号 */ /** 设备编号 */
private String deviceCode; private String deviceCode;
/** 经度 */
private BigDecimal longitude;
/** 纬度 */
private BigDecimal latitude;
/** 坐标 */
private String coordinates;
/** 物联网编号 */ /** 物联网编号 */
private String iotNo; private String iotNo;
...@@ -102,6 +112,30 @@ public class DeviceAlarmVo extends BaseEntity ...@@ -102,6 +112,30 @@ public class DeviceAlarmVo extends BaseEntity
this.deviceCode = deviceCode; this.deviceCode = deviceCode;
} }
public BigDecimal getLongitude() {
return longitude;
}
public void setLongitude(BigDecimal longitude) {
this.longitude = longitude;
}
public BigDecimal getLatitude() {
return latitude;
}
public void setLatitude(BigDecimal latitude) {
this.latitude = latitude;
}
public String getCoordinates() {
return coordinates;
}
public void setCoordinates(String coordinates) {
this.coordinates = coordinates;
}
public String getIotNo() { public String getIotNo() {
return iotNo; return iotNo;
} }
......
...@@ -78,11 +78,14 @@ public class TDeviceAlarmServiceImpl implements ITDeviceAlarmService ...@@ -78,11 +78,14 @@ public class TDeviceAlarmServiceImpl implements ITDeviceAlarmService
TPipe pipe = tPipeMapper.selectTPipeById(tDeviceAlarm.getDeviceId()); TPipe pipe = tPipeMapper.selectTPipeById(tDeviceAlarm.getDeviceId());
deviceAlarmVo.setDeviceCode(pipe.getPipeCode()); deviceAlarmVo.setDeviceCode(pipe.getPipeCode());
deviceAlarmVo.setDeviceName(pipe.getPipeName()); deviceAlarmVo.setDeviceName(pipe.getPipeName());
deviceAlarmVo.setCoordinates(pipe.getCoordinates());
} else { } else {
TDeviceInfo deviceInfo = tDeviceInfoMapper.selectTDeviceInfoById(tDeviceAlarm.getDeviceId()); TDeviceInfo deviceInfo = tDeviceInfoMapper.selectTDeviceInfoById(tDeviceAlarm.getDeviceId());
deviceAlarmVo.setDeviceCode(deviceInfo.getDeviceCode()); deviceAlarmVo.setDeviceCode(deviceInfo.getDeviceCode());
deviceAlarmVo.setDeviceName(deviceInfo.getDeviceName()); deviceAlarmVo.setDeviceName(deviceInfo.getDeviceName());
deviceAlarmVo.setIotNo(deviceInfo.getIotNo()); deviceAlarmVo.setIotNo(deviceInfo.getIotNo());
deviceAlarmVo.setLongitude(deviceInfo.getLongitude());
deviceAlarmVo.setLatitude(deviceInfo.getLatitude());
// 查询当前设备开始报警时间前后一小时的数据 // 查询当前设备开始报警时间前后一小时的数据
TDeviceReportData tDeviceReportData = new TDeviceReportData(); TDeviceReportData tDeviceReportData = new TDeviceReportData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment