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;
|
}
|
}
|