guoshilong
2023-08-03 db086bd2610a12f2cd189a9fb8e02b60a4dc6830
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package cn.gistack.nky.requestpojo;
 
import cn.gistack.nky.resultpojo.DataResChildrenPo;
import lombok.Data;
 
/**
 * 测点数据
 */
@Data
public class BDDataPo {
    /**
     * 大坝id
     */
    private String damId;
 
    /**
     * 测点id
     */
    private String pointId;
 
    /**
     * 监测量类型
     */
    private String type;
 
    /**
     * 测点名称
     */
    private String pointName;
 
    /**
     * 大坝名称
     */
    private String damName;
 
    /**
     * 类型名称
     */
    private String typeName;
 
    /**
     * 测点值
     */
    private Double value;
 
    /**
     * 采集时间
     */
    private String time;
 
    /**
     * 是否正常数据 0、初次进入;1、正常;2、检验异常
     */
    private Integer status;
 
    /**
     * 是否粗差1、是;2、否
     */
    private Integer isError;
 
 
    public BDDataPo(DataResChildrenPo po,String type){
        this.damId = po.getRes_cd();
        this.pointId = po.getCd();
        this.type = type;
 
        if (type.equals( "1")){
            //渗压
            this.value = po.getSw_val();
        }else if (type.equals("2")){
            //渗流
        }else if (type.equals("3")){
            //x
            this.value = po.getDe();
        }else if (type.equals("4")){
            //y
            this.value = po.getDn();
        }else if (type.equals("5")){
            //z
            this.value = po.getDu();
        }
        this.time = po.getTm();
        this.damName = po.getRes_nm();
    }
}