From a4e1276f4b08de542ba54600bec533ce0b2ccba3 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 15 六月 2023 12:17:49 +0800 Subject: [PATCH] 预警信息添加溯源ID字段 --- src/main/java/com/yssh/entity/vo/WarningVo.java | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/yssh/entity/vo/WarningVo.java b/src/main/java/com/yssh/entity/vo/WarningVo.java index e6ef99b..77b6e47 100644 --- a/src/main/java/com/yssh/entity/vo/WarningVo.java +++ b/src/main/java/com/yssh/entity/vo/WarningVo.java @@ -5,16 +5,13 @@ import java.io.Serializable; -import lombok.AllArgsConstructor; -import lombok.NoArgsConstructor; import lombok.ToString; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.yssh.utils.CalculateUtils; @ToString @ApiModel(value="鎶ヨ/棰勮灞曠ず瀵硅薄", description="鎶ヨ/棰勮灞曠ず瀵硅薄") -public class WarningVo implements Serializable{ +public class WarningVo implements Serializable { public WarningVo() { } @@ -30,36 +27,48 @@ private static final long serialVersionUID = 3440478664982471286L; @ApiModelProperty(value = "鐐逛綅鍚嶇О") private String locationName; - @JsonIgnore + + //@JsonIgnore private String suYuanId; + @ApiModelProperty(value = "缁忓害") private double lon; + @ApiModelProperty(value = "绾害") private double lat; + @ApiModelProperty(value = "鏁板��") private double value; + @ApiModelProperty(value = "鏃堕棿") private String time; + public String getLocationName() { return locationName; } + public void setLocationName(String locationName) { this.locationName = locationName; } + public void setSuYuanId(String suYuanId) { this.suYuanId = suYuanId; } + public double getLon() { String[] split = suYuanId.split("_"); return CalculateUtils.getLon(Integer.parseInt(split[0]), Integer.parseInt(split[1])); } + public double getLat() { String[] split = suYuanId.split("_"); return CalculateUtils.getLat(Integer.parseInt(split[0]), Integer.parseInt(split[1])); } + public double getValue() { return value; } + public void setValue(double value) { this.value = value; } -- Gitblit v1.9.3