|
@@ -1,7 +1,5 @@
|
|
|
package ${package.Entity};
|
|
|
|
|
|
-import cn.afterturn.easypoi.excel.annotation.Excel;
|
|
|
-import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
|
|
|
<#list table.importPackages as pkg>
|
|
|
import ${pkg};
|
|
|
</#list>
|
|
@@ -23,9 +21,7 @@ import lombok.EqualsAndHashCode;
|
|
|
import lombok.NoArgsConstructor;
|
|
|
import lombok.ToString;
|
|
|
import lombok.experimental.Accessors;
|
|
|
-import ${cfg.groupId}.common.constant.DictionaryType;
|
|
|
-import static ${cfg.utilPackage}.utils.DateUtils.DEFAULT_DATE_TIME_FORMAT;
|
|
|
-import ${cfg.utilPackage}.model.EchoVO;
|
|
|
+
|
|
|
</#if>
|
|
|
<#if cfg.filedTypes??>
|
|
|
<#list cfg.filedTypes as fieldType>
|
|
@@ -76,12 +72,12 @@ import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;
|
|
|
<#if superEntityClass?? && superEntityClass=="TreeEntity">
|
|
|
<#assign hasCustomAnno="1"/>
|
|
|
</#if>
|
|
|
-public class ${entity} extends ${superEntityClass}<#if activeRecord><${entity}></#if><#list table.commonFields as field><#if field.keyFlag><<#if hasCustomAnno == "1">${entity}, </#if>${field.propertyType}></#if></#list> implements EchoVO {
|
|
|
+public class ${entity} extends Entity<Long> {
|
|
|
<#elseif activeRecord>
|
|
|
@AllArgsConstructor
|
|
|
-public class ${entity} extends Model<${entity}> implements EchoVO {
|
|
|
+public class ${entity} extends Entity<Long> {
|
|
|
<#else>
|
|
|
-public class ${entity} implements Serializable, EchoVO {
|
|
|
+public class ${entity} extends Entity<Long> {
|
|
|
</#if>
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
@@ -172,7 +168,7 @@ public class ${entity} implements Serializable, EchoVO {
|
|
|
<#-- <#assign myPropertyName="${field.propertyName!?substring(0,field.propertyName?index_of('Id'))}"/>-->
|
|
|
<#-- </#if>-->
|
|
|
</#if>
|
|
|
- @Excel(name = "${fieldComment}"<#if myPropertyType!?contains("Local")>, format = DEFAULT_DATE_TIME_FORMAT, width = 20</#if><#if myPropertyType!?contains("Boolean")>, replace = {"是_true", "否_false", "_null"}</#if><#if isEnumType=="2">, replace = {<#list field.customMap.enumCustom.list?keys as key>"${field.customMap.enumCustom.list[key][0]}_${key?upper_case}", </#list> "_null"}</#if>)
|
|
|
+ @Excel(name = "${fieldComment}"<#if myPropertyType!?contains("Local")>, format = "yyyy-MM-dd", width = 20</#if><#if myPropertyType!?contains("Boolean")>, replace = {"是_true", "否_false", "_null"}</#if><#if isEnumType=="2">, replace = {<#list field.customMap.enumCustom.list?keys as key>"${field.customMap.enumCustom.list[key][0]}_${key?upper_case}", </#list> "_null"}</#if>)
|
|
|
private ${myPropertyType} ${myPropertyName};
|
|
|
</#if>
|
|
|
|