package ${package}.modules.${moduleName}.entity<#if subModuleName??>.${subModuleName}; import lombok.Data; import lombok.EqualsAndHashCode; import com.baomidou.mybatisplus.annotation.*; <#list imports as i> import ${i!}; <#if baseClassEntity??> import ${baseClassEntity.packageName}; /** * ${tableComment} * * @author ${author} ${email} * @since ${version} ${date} */ @Data @EqualsAndHashCode(callSuper=false) @TableName("${tableName}") public class ${ClassName}Entity<#if baseClassEntity??> extends ${baseClassEntity.code} { private static final long serialVersionUID = 1L; <#list columnList as column> <#if baseClassEntity?? && baseClassEntity.fields?split(",")?seq_contains(column.columnName)> <#else> <#if column.comment!?length gt 0> /** * ${column.comment} */ <#if "creator,create_date,dept_id,tenant_code"?split(",")?seq_contains(column.columnName)> @TableField(fill = FieldFill.INSERT) <#if "updater,update_date"?split(",")?seq_contains(column.columnName)> @TableField(fill = FieldFill.INSERT_UPDATE) <#if column.pk> @TableId private ${column.attrType} ${column.attrName}; }