燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-06-18 07fe1bb1ef9bf716567c3287ecd7c4859b6ccb1d
src/main/java/com/yssh/entity/Report.java
@@ -22,7 +22,7 @@
    private double val;
    @ApiModelProperty(value = "去年数值")
    private double lastVal;
    private Double lastVal;
    @ApiModelProperty(value = "时间")
    private String time;
@@ -48,12 +48,11 @@
    public Report() {
    }
    public Report(String name, double lon, double lat, double val, double lastVal, String time, double speed, String dir, double maxVal, double dis, String maxDir, int isSame) {
    public Report(String name, double lon, double lat, double val, String time, double speed, String dir, double maxVal, double dis, String maxDir, int isSame) {
        this.name = name;
        this.lon = lon;
        this.lat = lat;
        this.val = val;
        this.lastVal = lastVal;
        this.time = time;
        this.speed = speed;
        this.dir = dir;
@@ -85,9 +84,9 @@
        double speed2 = CalculateUtils.getWindSpeed(suMax.getV(), suMax.getU());
        double direction2 = CalculateUtils.getWindDirection(suMax.getV(), suMax.getU());
        String maxDir = CalculateUtils.getDir(angle);
        int isSame = (Math.abs(direction1 - direction2) < 30 && Math.abs(speed1 - speed2) < 0.5) ? 1 : 0;
        int isSame = (Math.abs(direction1 - direction2) <= 45 && Math.abs(speed1 - speed2) <= 0.5) ? 1 : 0;
        return new Report(wd.getLocationName(), c1.getX(), c1.getY(), wd.getValue(), lastVal, time,
        return new Report(wd.getLocationName(), c1.getX(), c1.getY(), wd.getValue(), time,
                speed1, dir, maxVal, dis1, maxDir, isSame);
    }
@@ -123,11 +122,11 @@
        this.val = val;
    }
    public double getLastVal() {
    public Double getLastVal() {
        return lastVal;
    }
    public void setLastVal(double lastVal) {
    public void setLastVal(Double lastVal) {
        this.lastVal = lastVal;
    }