|
@@ -3,6 +3,7 @@ package com.zy.omp.pojo.vo;
|
|
|
import lombok.Data;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
+import java.util.Objects;
|
|
|
|
|
|
/**
|
|
|
* 设备最新详情状态信息
|
|
@@ -72,4 +73,20 @@ public class DeviceDetailVO {
|
|
|
* 数据上传时间
|
|
|
*/
|
|
|
private LocalDateTime uploadTime;
|
|
|
+
|
|
|
+ public Double getLon() {
|
|
|
+ return lon == null || Objects.equals(lon, "") ? null : Double.parseDouble(lon);
|
|
|
+ }
|
|
|
+
|
|
|
+ public Double getLat() {
|
|
|
+ return lat == null || Objects.equals(lat, "") ? null : Double.parseDouble(lat);
|
|
|
+ }
|
|
|
+
|
|
|
+ public Double getLonGcj() {
|
|
|
+ return lonGcj == null || Objects.equals(lonGcj, "") ? null : Double.parseDouble(lonGcj);
|
|
|
+ }
|
|
|
+
|
|
|
+ public Double getLatGcj() {
|
|
|
+ return latGcj == null || Objects.equals(latGcj, "") ? null : Double.parseDouble(latGcj);
|
|
|
+ }
|
|
|
}
|