| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package cn.com.goldenwater.dcproj.annotation;
- import java.lang.annotation.ElementType;
- import java.lang.annotation.Retention;
- import java.lang.annotation.RetentionPolicy;
- import java.lang.annotation.Target;
- @Target(ElementType.FIELD)
- @Retention(RetentionPolicy.RUNTIME)
- public @interface ExcelImport {
- /*
- 表头名称
- */
- public String titleName();
- /*
- 排序
- */
- public int order() default 999;
- /*
- 导入时从前端截取长度(仅字符串可用)
- */
- public int subString() default -1;
- /*
- 导入时校验非空
- */
- public boolean notNull() default false;
- /*
- 设置导出列宽
- poi中单位为字符宽度的1/256
- 已自动乘256
- */
- public int width() default 10;
- /*
- 是导入字段
- */
- public boolean isImport() default true;
- /*
- 是导出字段
- */
- public boolean isExport() default true;
- }
|