ExcelVO.java.vm 711 B

123456789101112131415161718192021222324252627282930313233
  1. package ${basePackage}.module.${modulePackage}.domain.vo;
  2. import cn.afterturn.easypoi.excel.annotation.Excel;
  3. import lombok.Data;
  4. #foreach ($dtoImport in $dtoImports)
  5. $dtoImport
  6. #end
  7. /**
  8. * [ ${tableDesc} ]
  9. *
  10. * @author ${author}
  11. * @version 1.0
  12. * @company ${company}
  13. * @copyright (c) ${company}Inc. All rights reserved.
  14. * @date ${date}
  15. * @since JDK1.8
  16. */
  17. @Data
  18. public class ${moduleClass}ExcelVO {
  19. #foreach ($column in $columnList)
  20. #if($column.fieldType == 'Date')
  21. @Excel(name = "${column.columnDesc}", format = "yyyy-MM-dd HH:mm:ss")
  22. private $column.fieldType $column.fieldName;
  23. #else
  24. @Excel(name = "${column.columnDesc}")
  25. private $column.fieldType $column.fieldName;
  26. #end
  27. #end
  28. }