package cn.gistack.nky.requestpojo;
|
|
import cn.gistack.nky.resultpojo.DataResChildrenPo;
|
import lombok.Data;
|
import org.springblade.core.tool.utils.DateUtil;
|
|
import java.util.Date;
|
|
/**
|
* 判定异常请求参数类
|
*/
|
@Data
|
public class AlarmGetPo {
|
private Integer pageNo;
|
private Integer pageSize;
|
private Integer startNo;
|
private String damId;
|
private String pointId;
|
private String type;
|
private String start;
|
private String end;
|
|
public AlarmGetPo(DataResChildrenPo dataResChildrenPo,String type){
|
this.pageNo = 1;
|
this.pageSize = 1;
|
this.damId = dataResChildrenPo.getRes_cd();
|
this.pointId = dataResChildrenPo.getCd();
|
this.type = type;
|
|
this.start = DateUtil.format(DateUtil.now(),"yyyy-MM-dd HH:mm:ss");
|
long endTime = DateUtil.now().getTime() + 60*60*1000;
|
Date d = new Date();
|
d.setTime(endTime);
|
this.end = DateUtil.format(d,"yyyy-MM-dd HH:mm:ss");
|
|
}
|
}
|