ExcelExport.java 702 B

12345678910111213141516171819202122232425262728
  1. package com.tld.excel;
  2. import java.lang.annotation.ElementType;
  3. import java.lang.annotation.Retention;
  4. import java.lang.annotation.RetentionPolicy;
  5. import java.lang.annotation.Target;
  6. /**
  7. * @author sunnyzyq
  8. * @date 2021/12/17
  9. */
  10. @Target(ElementType.FIELD)
  11. @Retention(RetentionPolicy.RUNTIME)
  12. public @interface ExcelExport {
  13. /** 字段名称 */
  14. String value();
  15. /** 导出排序先后: 数字越小越靠前(默认按Java类字段顺序导出) */
  16. int sort() default 0;
  17. /** 导出映射,格式如:0-未知;1-男;2-女 */
  18. String kv() default "";
  19. /** 导出模板示例值(有值的话,直接取该值,不做映射) */
  20. String example() default "";
  21. }