修复代码生成模板问题
This commit is contained in:
parent
59436efb7b
commit
541a5083f0
|
@ -4,6 +4,8 @@ import lombok.Data;
|
||||||
import com.alibaba.excel.annotation.ExcelIgnore;
|
import com.alibaba.excel.annotation.ExcelIgnore;
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import com.fhs.core.trans.vo.TransPojo;
|
import com.fhs.core.trans.vo.TransPojo;
|
||||||
|
import com.fhs.core.trans.anno.Trans;
|
||||||
|
import com.fhs.core.trans.constant.TransType;
|
||||||
<#list importList as i>
|
<#list importList as i>
|
||||||
import ${i!};
|
import ${i!};
|
||||||
</#list>
|
</#list>
|
||||||
|
@ -16,9 +18,16 @@ import ${i!};
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class ${ClassName}ExcelVO implements TransPojo {
|
public class ${ClassName}ExcelVO implements TransPojo {
|
||||||
|
<#list gridList as field>
|
||||||
|
<#if field.attrName == 'id'>
|
||||||
|
<#assign isPrimaryKey = 'true'>
|
||||||
|
</#if>
|
||||||
|
</#list>
|
||||||
|
<#if !isPrimaryKey??>
|
||||||
@ExcelIgnore
|
@ExcelIgnore
|
||||||
private ${primaryType} ${primaryName};
|
private ${primaryType} ${primaryName};
|
||||||
|
|
||||||
|
</#if>
|
||||||
<#list gridList as field>
|
<#list gridList as field>
|
||||||
<#if field.fieldComment!?length gt 0>
|
<#if field.fieldComment!?length gt 0>
|
||||||
@ExcelProperty("${field.fieldComment}")
|
@ExcelProperty("${field.fieldComment}")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user