template.Excel.vm Maven / Gradle / Ivy
The newest version!
package ${package}.modules.${moduleName}.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
#if(${hasBigDecimal})
import java.math.BigDecimal;
#end
import java.util.Date;
/**
* ${comments}
*
* @author ${author} ${email}
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class ${className}Excel {
#foreach ($column in $columns)
#if($column.columnName != 'id' && $column.columnName != 'creator' && $column.columnName != 'create_id' && $column.columnName != 'create_date' && $column.columnName != 'create_time' && $column.columnName != 'updater' && $column.columnName != 'update_id' && $column.columnName != 'update_date' && $column.columnName != 'update_time' && $column.columnName != 'del_flag' && $column.columnName != 'deleted')
@Excel(name = "$!column.comments")
private $column.attrType $column.attrname;
#end
#end
}