package ${packageName}.model.entity;

#foreach ($import in $importList)
import ${import};
#end
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
#if(($table.crud || $table.sub) && $table.audit == 1)
import com.bryx.core.common.base.entity.BaseAudit;
#elseif($table.tree)
import com.ruoyi.common.core.domain.TreeEntity;
#end
import lombok.Data;
/**
 * ${functionName}对象 ${tableName}
 * 
 * @author ${author}
 */
#if(($table.crud || $table.sub) && $table.audit == 1)
#set($Entity="BaseAudit")
#elseif($table.tree)
#set($Entity="TreeEntity")
#end
@Data
public class ${ClassName}#if($Entity) extends ${Entity}#end {
    private static final long serialVersionUID = 1L;

#foreach ($column in $columns)
#if(!$table.isSuperColumn($column.javaField))
    /** $column.columnComment */
#if($column.list)
#set($parentheseIndex=$column.columnComment.indexOf("（"))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
#if($parentheseIndex != -1)
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
#elseif($column.isDate())
    @JsonFormat(pattern = "${column.dateFormat}")
    @Excel(name = "${comment}", width = 30, dateFormat = "${column.dateFormat}")
#else
    @Excel(name = "${comment}")
#end
#end
    private $column.javaType $column.javaField;

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

#end
}
