net
2025-02-14 06d3d15a5a08637041cc601101c063b11b07a346
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
package com.zhitan.history.domain.dto;
 
 
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
 
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
 
/**
 * 历史监测数据请求 DTO
 *
 * @Author: Zhujw
 * @Date: 2023/3/7
 */
public class HistoricalDataDTO {
 
    /**
     * 点位id
     */
    @NotBlank(message = "未找到点位信息")
    private String indexId;
 
    /**
     * 时间类型
     */
    @NotBlank(message = "未找到时间类型")
    private String timeType;
 
    /**
     * 查询时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "未找到时间信息")
    private Date dataTime;
 
    public String getIndexId() {
        return indexId;
    }
 
    public void setIndexId(String indexId) {
        this.indexId = indexId;
    }
 
    public String getTimeType() {
        return timeType;
    }
 
    public void setTimeType(String timeType) {
        this.timeType = timeType;
    }
 
    public Date getDataTime() {
        return dataTime;
    }
 
    public void setDataTime(Date dataTime) {
        this.dataTime = dataTime;
    }
 
}