352a67c5
YunaiV
多模块重构 11:修改代码生成器的实现
|
1
|
package ${basePackage}.module.${table.moduleName}.controller.${sceneEnum.basePackage}.${table.businessName}.vo;
|
533cd1d3
YunaiV
再次调整项目结构
|
2
3
4
5
6
7
8
9
10
11
12
|
import lombok.*;
import java.util.*;
import io.swagger.annotations.*;
import com.alibaba.excel.annotation.ExcelProperty;
#foreach ($column in $columns)
#if ("$!column.dictType" != "")## 有设置数据字典
import ${DictFormatClassName};
import ${DictConvertClassName};
|
533cd1d3
YunaiV
再次调整项目结构
|
13
14
15
16
17
18
19
20
21
22
|
#break
#end
#end
/**
* ${table.classComment} Excel VO
*
* @author ${table.author}
*/
@Data
|
352a67c5
YunaiV
多模块重构 11:修改代码生成器的实现
|
23
|
public class ${sceneEnum.prefixClass}${table.className}ExcelVO {
|
533cd1d3
YunaiV
再次调整项目结构
|
24
25
26
27
28
|
#foreach ($column in $columns)
#if (${column.listOperationResult})##返回字段
#if ("$!column.dictType" != "")##处理枚举值
@ExcelProperty(value = "${column.columnComment}", converter = DictConvert.class)
|
8e6fa3db
YunaiV
项目结构调整 x 19 : 解决多...
|
29
|
@DictFormat("${column.dictType}") // TODO 代码优化:建议设置到对应的 XXXDictTypeConstants 枚举类中
|
533cd1d3
YunaiV
再次调整项目结构
|
30
31
32
33
34
35
36
37
|
#else
@ExcelProperty("${column.columnComment}")
#end
private ${column.javaType} ${column.javaField};
#end
#end
}
|