燕山石化溯源三维电子沙盘-【后端】-服务
13693261870
2023-04-25 ecd0ef5c6a78ac091b3fc2d42035cd0582c93a3f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package com.yssh.entity.vo;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
 
import java.io.Serializable;
 
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.ToString;
 
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.yssh.utils.CalculateUtils;
 
@NoArgsConstructor
@AllArgsConstructor
@ToString
@ApiModel(value="报警/预警展示对象", description="报警/预警展示对象")
public class WarningVo implements Serializable{
 
    private static final long serialVersionUID = 3440478664982471286L;
    @ApiModelProperty(value = "点位名称")
    private String locationName;
    @JsonIgnore
    private String suYuanId;
    @ApiModelProperty(value = "经度")
    private double lon;
    @ApiModelProperty(value = "纬度")
    private double lat;
    @ApiModelProperty(value = "数值")
    private double value;
    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;
    }
    
}