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;
88import com.alibaba.excel.annotation.ExcelProperty;
99
1010import top.continew.admin.common.model.resp.BaseDetailResp;
11+ import top.continew.starter.file.excel.converter.ExcelBaseEnumConverter;
1112<#if imports?? >
1213 <#list imports as className >
1314import ${className} ;
@@ -41,7 +42,11 @@ public class ${className} extends BaseDetailResp {
4142 * ${fieldConfig.comment}
4243 */
4344 @Schema(description = "${fieldConfig.comment} ")
45+ <#if fieldConfig.fieldType?ends_with("Enum") >
46+ @ExcelProperty(value = "${fieldConfig.comment} ", converter = ExcelBaseEnumConverter.class)
47+ <#else >
4448 @ExcelProperty(value = "${fieldConfig.comment} ")
49+ </#if >
4550 private ${fieldConfig.fieldType} ${fieldConfig.fieldName} ;
4651 </#list >
4752</#if >
You can’t perform that action at this time.
0 commit comments