package ${packageName}.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
#foreach ($import in $importList)
import ${import};
#end
#if($table.crud || $table.sub)
import com.ruoyi.common.web.domain.BaseEntity;
#elseif($table.tree)
import com.ruoyi.common.web.domain.TreeEntity;
#end
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * ${functionName} 对象
 * @author ${author}
 */
#if($table.crud || $table.sub)
#set($Entity="BaseEntity")
#elseif($table.tree)
#set($Entity="TreeEntity")
#end
@EqualsAndHashCode(callSuper = true)
@Data
@Table(value = "$tableName")
public class ${ClassName} extends ${Entity} {
    private static final long serialVersionUID = 1L;

#foreach ($column in $columns)
#if(!$table.isSuperColumn($column.javaField))
    /** $column.columnComment */
    @Excel(name = "$column.columnComment")
#if($column.pk)
    @Id
#end
    private $column.javaType $column.javaField;

#end
#end
#if($table.sub)
    /** $table.subTable.functionName信息 */
    private List<${subClassName}> ${subclassName}List;

#end
}
