package ${packageName}.domain.vo;

    #foreach ($import in $importList)
    import ${import};
    #end
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.eco.common.excel.annotation.ExcelDictFormat;
import org.eco.common.excel.convert.ExcelDictConvert;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import lombok.NoArgsConstructor;

/**
 * ${functionName}导入视图对象 ${tableName}
 *
 * @author ${author}
 * @date ${datetime}
 */

@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
public class ${ClassName}ImportVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    #foreach ($column in $columns)
        #if($column.isPk=='1')
            #if($table.tree)
                /** $column.columnComment */
                @ExcelProperty(value = "${column.columnComment}")
                private $column.javaType $column.javaField;
            #end
        #end
    #end

    #foreach ($column in $columns)
        #if($column.isPk!='1')
            #if(!$table.isSuperColumn($column.javaField)  || ($column.javaField.equals("parentId"))  || ($column.javaField.equals("orderNum")))
                /** $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(${column.dictType} && ${column.dictType} != '')
                    @ExcelProperty(value = "${comment}", converter = ExcelDictConvert.class)
                    @ExcelDictFormat(dictType = "${column.dictType}")
                    #elseif($parentheseIndex != -1)
                    @ExcelProperty(value = "${comment}", converter = ExcelDictConvert.class)
                    @ExcelDictFormat(readConverterExp = "$column.readConverterExp()")
                    #else
                    @ExcelProperty(value = "${comment}")
                    #end
                private $column.javaType $column.javaField;

                #else
                    @ExcelProperty(value = "${column.columnComment}")
                    private $column.javaType $column.javaField;

                #end
            #end
        #end
    #end

    #if($table.tree)
        /**
         * 显示顺序
         */
        @ExcelProperty(value = "显示顺序")
        private Integer orderNum;
    #end
}
