提交 | 用户 | 时间
|
a6de49
|
1 |
package com.iailab.module.data.point.dto; |
H |
2 |
|
6b1383
|
3 |
import com.fasterxml.jackson.annotation.JsonFormat; |
a6de49
|
4 |
import com.iailab.framework.common.validation.group.AddGroup; |
H |
5 |
import com.iailab.framework.common.validation.group.UpdateGroup; |
|
6 |
import com.iailab.framework.excel.core.annotations.DictFormat; |
|
7 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
8 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
9 |
import lombok.Data; |
|
10 |
|
|
11 |
import javax.validation.constraints.NotNull; |
|
12 |
import javax.validation.constraints.Null; |
|
13 |
import java.io.Serializable; |
|
14 |
import java.math.BigDecimal; |
|
15 |
import java.util.Date; |
|
16 |
import java.util.List; |
|
17 |
|
|
18 |
/** |
|
19 |
* @author PanZhibao |
|
20 |
* @Description |
|
21 |
* @createTime 2024年05月11日 |
|
22 |
*/ |
|
23 |
@Data |
|
24 |
@Tag(name = "测点") |
|
25 |
public class DaPointDTO implements Serializable { |
|
26 |
private static final long serialVersionUID = 1L; |
|
27 |
|
|
28 |
@Schema(description = "id") |
|
29 |
@Null(message="{id.null}", groups = AddGroup.class) |
|
30 |
@NotNull(message="{id.require}", groups = UpdateGroup.class) |
|
31 |
private String id; |
|
32 |
|
|
33 |
@Schema(description = "测点编码", required = true) |
|
34 |
private String pointNo; |
|
35 |
|
|
36 |
@Schema(description = "测点名称", required = true) |
|
37 |
private String pointName; |
|
38 |
|
|
39 |
@Schema(description = "测点类型", required = true) |
|
40 |
private String pointType; |
|
41 |
|
|
42 |
@DictFormat("point_type") |
|
43 |
private String pointTypeName; |
|
44 |
|
|
45 |
@Schema(description = "数据类型", required = true) |
|
46 |
private String dataType; |
|
47 |
|
|
48 |
@DictFormat("data_type") |
|
49 |
private String dataTypeName; |
|
50 |
|
|
51 |
@Schema(description = "存储类型", required = true) |
|
52 |
private String storeType; |
|
53 |
|
|
54 |
@Schema(description = "测量单位", required = true) |
|
55 |
private String unit; |
|
56 |
|
|
57 |
@Schema(description = "单位转换", required = true) |
|
58 |
private BigDecimal unittransfactor; |
|
59 |
|
|
60 |
@Schema(description = "默认值", required = true) |
|
61 |
private BigDecimal defaultValue; |
|
62 |
|
|
63 |
@Schema(description = "最大值") |
|
64 |
private BigDecimal maxValue; |
|
65 |
|
|
66 |
@Schema(description = "最小值") |
|
67 |
private BigDecimal minValue; |
|
68 |
|
|
69 |
@Schema(description = "采集频率", required = true) |
|
70 |
private String minfreqid; |
|
71 |
|
|
72 |
@Schema(description = "备注") |
|
73 |
private String remark; |
|
74 |
|
|
75 |
@Schema(description = "是否启用", required = true) |
|
76 |
private Integer isEnable; |
|
77 |
|
|
78 |
@Schema(description = "创建人") |
|
79 |
private Long creator; |
|
80 |
|
|
81 |
@Schema(description = "创建时间") |
|
82 |
private Date createTime; |
|
83 |
|
|
84 |
@Schema(description = "修改人") |
|
85 |
private Long updater; |
|
86 |
|
|
87 |
@Schema(description = "修改时间") |
|
88 |
private Date updateTime; |
|
89 |
|
|
90 |
@Schema(description = "数据源类型") |
|
91 |
private String sourceType; |
|
92 |
|
|
93 |
@Schema(description = "数据源名称") |
|
94 |
private String sourceName; |
|
95 |
|
|
96 |
@Schema(description = "数据源ID") |
|
97 |
private String sourceId; |
|
98 |
|
|
99 |
@Schema(description = "测点Tag", required = true) |
|
100 |
private String tagNo; |
|
101 |
|
01d6f8
|
102 |
@Schema(description = "平滑尺度") |
52487d
|
103 |
private Integer dimension; |
L |
104 |
|
01d6f8
|
105 |
@Schema(description = "值类型") |
潘 |
106 |
private String valueType; |
|
107 |
|
a6de49
|
108 |
@Schema(description = "计算公式", required = true) |
H |
109 |
private String expression; |
|
110 |
|
56dba6
|
111 |
@Schema(description = "瞬时测点") |
潘 |
112 |
private String momentPoint; |
|
113 |
|
|
114 |
@Schema(description = "累计长度") |
|
115 |
private Integer length; |
|
116 |
|
|
117 |
@Schema(description = "除数") |
|
118 |
private Integer divisor; |
|
119 |
|
a6de49
|
120 |
@Schema(description = "数据源选项") |
H |
121 |
private List<String> sourceOption; |
|
122 |
|
|
123 |
@Schema(description = "计算点") |
|
124 |
private DaMathPointDTO mathPoint; |
|
125 |
|
|
126 |
@Schema(description = "测量点") |
|
127 |
private DaMeasurePointDTO measurePoint; |
0ed8ac
|
128 |
|
潘 |
129 |
@Schema(description = "累计点") |
|
130 |
private DaCumulatePointDTO cumulatePoint; |
6b1383
|
131 |
|
潘 |
132 |
@Schema(description = "采集值") |
|
133 |
private String collectValue; |
|
134 |
|
|
135 |
@Schema(description = "采集质量") |
|
136 |
private String collectQuality; |
|
137 |
|
|
138 |
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|
139 |
@Schema(description = "采集时间") |
|
140 |
private Date collectTime; |
|
141 |
|
a6de49
|
142 |
} |