341a62651db07e033976051d097d97067379499a.svn-base 924 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package cn.com.goldenwater.dcproj.annotation;
  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. @Target(ElementType.FIELD)
  7. @Retention(RetentionPolicy.RUNTIME)
  8. public @interface ExcelImport {
  9. /*
  10. 表头名称
  11. */
  12. public String titleName();
  13. /*
  14. 排序
  15. */
  16. public int order() default 999;
  17. /*
  18. 导入时从前端截取长度(仅字符串可用)
  19. */
  20. public int subString() default -1;
  21. /*
  22. 导入时校验非空
  23. */
  24. public boolean notNull() default false;
  25. /*
  26. 设置导出列宽
  27. poi中单位为字符宽度的1/256
  28. 已自动乘256
  29. */
  30. public int width() default 10;
  31. /*
  32. 是导入字段
  33. */
  34. public boolean isImport() default true;
  35. /*
  36. 是导出字段
  37. */
  38. public boolean isExport() default true;
  39. }