File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
continew-plugin/continew-plugin-generator/src/main/resources/templates/backend Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
8
8
import com.alibaba.excel.annotation.ExcelProperty;
9
9
10
10
import top.continew.admin.common.model.resp.BaseDetailResp;
11
+ import top.continew.starter.file.excel.converter.ExcelBaseEnumConverter;
11
12
<#if imports?? >
12
13
<#list imports as className >
13
14
import ${className} ;
@@ -41,7 +42,11 @@ public class ${className} extends BaseDetailResp {
41
42
* ${fieldConfig.comment}
42
43
*/
43
44
@Schema(description = "${fieldConfig.comment} ")
45
+ <#if fieldConfig.fieldType?ends_with("Enum") >
46
+ @ExcelProperty(value = "${fieldConfig.comment} ", converter = ExcelBaseEnumConverter.class)
47
+ <#else >
44
48
@ExcelProperty(value = "${fieldConfig.comment} ")
49
+ </#if >
45
50
private ${fieldConfig.fieldType} ${fieldConfig.fieldName} ;
46
51
</#list >
47
52
</#if >
You can’t perform that action at this time.
0 commit comments