From 4be7d863a161b64f8592a789d699e807545e7dc6 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期五, 15 十一月 2024 16:46:12 +0800 Subject: [PATCH] 计划数据 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/vo/PointImportExcelVO.java | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/vo/PointImportExcelVO.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/vo/PointImportExcelVO.java index ee99bb8..7cf3b6d 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/vo/PointImportExcelVO.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/vo/PointImportExcelVO.java @@ -1,6 +1,9 @@ package com.iailab.module.data.point.vo; import com.alibaba.excel.annotation.ExcelProperty; +import com.iailab.framework.excel.core.annotations.DictFormat; +import com.iailab.framework.excel.core.annotations.ExcelColumnSelect; +import com.iailab.framework.excel.core.convert.DictConvert; import io.swagger.v3.oas.annotations.media.Schema; import lombok.AllArgsConstructor; import lombok.Builder; @@ -26,10 +29,14 @@ @ExcelProperty("测点名称") private String pointName; - @ExcelProperty("测点类型") + @ExcelProperty(value = "测点类型", converter = DictConvert.class) + @ExcelColumnSelect(dictType = "data_point_type") + @DictFormat("data_point_type") private String pointType; - @ExcelProperty("数据类型") + @ExcelProperty(value = "数据类型", converter = DictConvert.class) + @ExcelColumnSelect(dictType = "point_data_type") + @DictFormat("point_data_type") private String dataType; @ExcelProperty("存储类型") @@ -57,7 +64,9 @@ @ExcelProperty("备注") private String remark; - @ExcelProperty("数据源类型") + @ExcelProperty(value = "数据源类型", converter = DictConvert.class) + @ExcelColumnSelect(dictType = "data_source_type") + @DictFormat("data_source_type") private String sourceType; @ExcelProperty("数据源名称") @@ -69,7 +78,9 @@ @ExcelProperty("平滑尺度") private Integer dimension; - @ExcelProperty("值类型") + @ExcelProperty(value = "值类型", converter = DictConvert.class) + @ExcelColumnSelect(dictType = "measure_value_type") + @DictFormat("measure_value_type") private String valueType; @ExcelProperty("计算公式") -- Gitblit v1.9.3