aix
2024-07-24 2cba01a6b6f67cfa97d0c4e0cc589302fab817ba
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
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");
 
    }
}