guoshilong
2023-08-02 818113e9a0cf7c20d836291e2a151f7346aad8a7
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
package cn.gistack.nky.requestpojo;
 
import cn.gistack.nky.resultpojo.DataResChildrenPo;
import lombok.Data;
 
import java.util.ArrayList;
import java.util.List;
 
/**
 * @PROJECT_NAME: skjcmanager
 * @DESCRIPTION: hst预测请求参数
 * @USER: aix
 * @DATE: 2023/7/31 11:04
 */
@Data
public class HstPredictReqPo {
 
    private String damId;
 
    private String pointId;
 
    private String type;
 
    private List<PredictWatersPo> predictWaters;
 
    public HstPredictReqPo(String damId, String pointId, String type, List<PredictWatersPo> predictWaters) {
        this.damId = damId;
        this.pointId = pointId;
        this.type = type;
        this.predictWaters = predictWaters;
    }
 
    public HstPredictReqPo(DataResChildrenPo dataResChildrenPo,String type){
        this.damId = dataResChildrenPo.getRes_cd();
        this.pointId = dataResChildrenPo.getCd();
        this.type = type;
 
        PredictWatersPo predictWatersPo = new PredictWatersPo(dataResChildrenPo.getTm(),dataResChildrenPo.getSw_val());
        List<PredictWatersPo> list = new ArrayList<>();
        list.add(predictWatersPo);
 
        this.predictWaters = list;
    }
}