package ${packageName}.dto${childPackageName};

#foreach ($import in $importList)
import ${import};
#end
import com.alibaba.excel.annotation.ExcelProperty;
import com.ximai.common.annotation.Excel;
import com.ximai.common.utils.excel.converter.LocalDateTimeConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
#if($table.crud || $table.sub)
import com.ximai.common.core.domain.BaseEntity;
#elseif($table.tree)
import com.ximai.common.core.domain.TreeEntity;
#end

/**
 * ${functionName}对象 ${tableName}
 *
 * @author ${author}
 * @date ${datetime}
 */
@ApiModel("${functionName}")
@Data
public class ${ClassName}ExcelExport {
    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)
    @ApiModelProperty("${comment}")
    @ExcelProperty(${comment}")
#elseif($column.javaType == 'Date')
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("${comment}")
    @ExcelProperty(value="${comment}", converter = LocalDateTimeConverter.class)
#else
    @ApiModelProperty("${comment}")
    @ExcelProperty("${comment}")
#end
#end
#if($column.javaField == $pkColumn.javaField)
    @TableId
#end
    private $column.javaType $column.javaField;

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

#end


}
