提交 | 用户 | 时间
|
139c6a
|
1 |
package com.iailab.module.data.point.vo; |
D |
2 |
|
|
3 |
import com.alibaba.excel.annotation.ExcelProperty; |
f21253
|
4 |
import com.iailab.framework.excel.core.annotations.DictFormat; |
J |
5 |
import com.iailab.framework.excel.core.annotations.ExcelColumnSelect; |
|
6 |
import com.iailab.framework.excel.core.convert.DictConvert; |
139c6a
|
7 |
import io.swagger.v3.oas.annotations.media.Schema; |
D |
8 |
import lombok.AllArgsConstructor; |
|
9 |
import lombok.Builder; |
|
10 |
import lombok.Data; |
|
11 |
import lombok.NoArgsConstructor; |
|
12 |
import lombok.experimental.Accessors; |
|
13 |
|
|
14 |
import java.math.BigDecimal; |
|
15 |
|
|
16 |
/** |
|
17 |
* 用户 Excel 导入 VO |
|
18 |
*/ |
|
19 |
@Data |
|
20 |
@Builder |
|
21 |
@AllArgsConstructor |
|
22 |
@NoArgsConstructor |
|
23 |
@Accessors(chain = false) // 设置 chain = false,避免用户导入有问题 |
|
24 |
public class PointImportExcelVO { |
|
25 |
|
01d6f8
|
26 |
@ExcelProperty("测点编码") |
潘 |
27 |
private String pointNo; |
|
28 |
|
139c6a
|
29 |
@ExcelProperty("测点名称") |
D |
30 |
private String pointName; |
|
31 |
|
f21253
|
32 |
@ExcelProperty(value = "测点类型", converter = DictConvert.class) |
J |
33 |
@ExcelColumnSelect(dictType = "data_point_type") |
|
34 |
@DictFormat("data_point_type") |
139c6a
|
35 |
private String pointType; |
D |
36 |
|
f21253
|
37 |
@ExcelProperty(value = "数据类型", converter = DictConvert.class) |
J |
38 |
@ExcelColumnSelect(dictType = "point_data_type") |
|
39 |
@DictFormat("point_data_type") |
139c6a
|
40 |
private String dataType; |
D |
41 |
|
|
42 |
@ExcelProperty("存储类型") |
|
43 |
private String storeType; |
|
44 |
|
|
45 |
@ExcelProperty("测量单位") |
|
46 |
private String unit; |
|
47 |
|
|
48 |
@ExcelProperty("单位转换") |
|
49 |
private BigDecimal unittransfactor; |
|
50 |
|
|
51 |
@ExcelProperty("默认值") |
|
52 |
private BigDecimal defaultValue; |
|
53 |
|
|
54 |
@ExcelProperty("最大值") |
|
55 |
private BigDecimal maxValue; |
|
56 |
|
|
57 |
@ExcelProperty("最小值") |
|
58 |
private BigDecimal minValue; |
|
59 |
|
|
60 |
@ExcelProperty("采集频率") |
|
61 |
private String minfreqid; |
|
62 |
|
01d6f8
|
63 |
@Schema(description = "备注") |
139c6a
|
64 |
@ExcelProperty("备注") |
D |
65 |
private String remark; |
|
66 |
|
f21253
|
67 |
@ExcelProperty(value = "数据源类型", converter = DictConvert.class) |
J |
68 |
@ExcelColumnSelect(dictType = "data_source_type") |
|
69 |
@DictFormat("data_source_type") |
139c6a
|
70 |
private String sourceType; |
D |
71 |
|
01d6f8
|
72 |
@ExcelProperty("数据源名称") |
潘 |
73 |
private String sourceName; |
139c6a
|
74 |
|
D |
75 |
@ExcelProperty("测点Tag") |
|
76 |
private String tagNo; |
|
77 |
|
01d6f8
|
78 |
@ExcelProperty("平滑尺度") |
潘 |
79 |
private Integer dimension; |
|
80 |
|
f21253
|
81 |
@ExcelProperty(value = "值类型", converter = DictConvert.class) |
J |
82 |
@ExcelColumnSelect(dictType = "measure_value_type") |
|
83 |
@DictFormat("measure_value_type") |
01d6f8
|
84 |
private String valueType; |
潘 |
85 |
|
|
86 |
@ExcelProperty("计算公式") |
|
87 |
private String expression; |
|
88 |
|
eb1c5f
|
89 |
@ExcelProperty("瞬时测点") |
潘 |
90 |
private String momentPoint; |
|
91 |
|
|
92 |
@ExcelProperty("累计长度") |
|
93 |
private Integer length; |
|
94 |
|
|
95 |
@ExcelProperty("除数") |
|
96 |
private Integer divisor; |
|
97 |
|
139c6a
|
98 |
} |