燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2024-12-02 453e3471e94b91169beec1e258a06a132d927011
src/main/java/com/yssh/entity/SuYuan2d.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,69 @@
package com.yssh.entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.yssh.utils.CalculateUtils;
import lombok.ToString;
@ToString
@ApiModel(value="溯源2d对象", description="溯源2d对象")
public class SuYuan2d implements Serializable {
   private static final long serialVersionUID = -4652224366972823014L;
   @ApiModelProperty(value = "主键")
   private String id;
   @JsonIgnore
   private Integer x;
   @JsonIgnore
   private Integer y;
   @ApiModelProperty(value = "经度")
   private double lon;
   @ApiModelProperty(value = "纬度")
   private double lat;
   @ApiModelProperty(value = "数值")
   private double value;
   public String getId() {
      return id;
   }
   public void setId(String id) {
      this.id = id;
   }
   public Integer getX() {
      return x;
   }
   public void setX(Integer x) {
      this.x = x;
   }
   public Integer getY() {
      return y;
   }
   public void setY(Integer y) {
      this.y = y;
   }
   public double getLon() {
      return CalculateUtils.getLon(x, y);
   }
   public double getLat() {
      return CalculateUtils.getLat(x, y);
   }
   public double getValue() {
      return value;
   }
   public void setValue(double value) {
      this.value = value;
   }
   public void setLon(double lon) {
      this.lon = lon;
   }
   public void setLat(double lat) {
      this.lat = lat;
   }
}