燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-07-19 48b8018a7f869840d7f076c8d83964ba7214ac9b
1
已修改1个文件
19 ■■■■ 文件已修改
src/main/java/com/yssh/entity/Report.java 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/yssh/entity/Report.java
@@ -48,10 +48,13 @@
    @ApiModelProperty(value = "是否一致")
    private int isSame;
    @ApiModelProperty(value = "最大值的ID")
    private String maxId;
    public Report() {
    }
    public Report(String id, String name, double lon, double lat, double val, String time, double speed, String dir, double maxVal, double dis, String maxDir, int isSame) {
    public Report(String id, String name, double lon, double lat, double val, String time, double speed, String dir, double maxVal, double dis, String maxDir, int isSame, String maxId) {
        this.id = id;
        this.name = name;
        this.lon = lon;
@@ -64,6 +67,7 @@
        this.dis = dis;
        this.maxDir = maxDir;
        this.isSame = isSame;
        this.maxId = maxId;
    }
    /**
@@ -89,8 +93,11 @@
        String maxDir = CalculateUtils.getDir(direction2); // CalculateUtils.getDir(angle);
        int isSame = (Math.abs(direction1 - direction2) <= 45 && Math.abs(speed1 - speed2) <= 0.5) ? 1 : 0;
        String[] strs = suMax.getId().split("_");
        String maxId = (Integer.parseInt(strs[0]) / 10) + "_" + (Integer.parseInt(strs[1]) / 10);
        return new Report(wd.getSuYuanId(), wd.getLocationName(), c1.getX(), c1.getY(), wd.getValue(), time,
                speed1, dir, maxVal, dis1, maxDir, isSame);
                speed1, dir, maxVal, dis1, maxDir, isSame, maxId);
    }
    public String getId() {
@@ -196,4 +203,12 @@
    public void setIsSame(int isSame) {
        this.isSame = isSame;
    }
    public String getMaxId() {
        return maxId;
    }
    public void setMaxId(String maxId) {
        this.maxId = maxId;
    }
}