提交 | 用户 | 时间
|
03e8ac
|
1 |
package com.iailab.module.data.channel.opcua.vo; |
J |
2 |
|
|
3 |
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
|
4 |
import com.alibaba.excel.annotation.ExcelProperty; |
|
5 |
import com.iailab.framework.excel.core.annotations.DictFormat; |
|
6 |
import com.iailab.framework.excel.core.annotations.ExcelColumnSelect; |
|
7 |
import com.iailab.framework.excel.core.convert.DictConvert; |
|
8 |
import com.iailab.framework.excel.core.function.ExcelColumnSelectFunction; |
|
9 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
10 |
import lombok.Data; |
|
11 |
import org.springframework.stereotype.Component; |
|
12 |
|
|
13 |
import java.util.List; |
|
14 |
|
|
15 |
/** |
|
16 |
* @author PanZhibao |
|
17 |
* @Description |
|
18 |
* @createTime 2024年08月22日 |
|
19 |
*/ |
|
20 |
@Schema(description = "导出 - Tag信息") |
|
21 |
@Data |
|
22 |
@ExcelIgnoreUnannotated |
|
23 |
@Component |
|
24 |
public class OpcUaTagExportExcelVO implements ExcelColumnSelectFunction { |
|
25 |
|
|
26 |
@Schema(description = "Tag名称") |
|
27 |
@ExcelProperty(value = "Tag名称") |
|
28 |
private String tagName; |
|
29 |
|
|
30 |
@Schema(description = "数据类型") |
|
31 |
@ExcelProperty(value = "数据类型", converter = DictConvert.class) |
|
32 |
@ExcelColumnSelect(dictType = "tag_data_type") |
|
33 |
@DictFormat("tag_data_type") |
|
34 |
private String dataType; |
|
35 |
|
|
36 |
@Schema(description = "地址") |
|
37 |
@ExcelProperty(value = "地址") |
|
38 |
private String address; |
|
39 |
|
|
40 |
@Schema(description = "采集频率") |
|
41 |
@ExcelProperty(value = "采集频率") |
|
42 |
private Integer samplingRate; |
|
43 |
|
|
44 |
@Schema(description = "是否启用") |
|
45 |
@ExcelProperty(value = "是否启用", converter = DictConvert.class) |
|
46 |
@ExcelColumnSelect(dictType = "com_is_int") |
|
47 |
@DictFormat("com_is_int") |
|
48 |
private Integer enabled; |
|
49 |
|
|
50 |
@Override |
|
51 |
public String getName() { |
|
52 |
return null; |
|
53 |
} |
|
54 |
|
|
55 |
@Override |
|
56 |
public List<String> getOptions() { |
|
57 |
return null; |
|
58 |
} |
|
59 |
} |