This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-ntc/src/main/java/com/nis/util/excel/ExcelField.java

64 lines
1.5 KiB
Java
Raw Normal View History

2017-12-29 16:18:40 +08:00
/**
* Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.nis.util.excel;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Excel注解定义
* @author ThinkGem
* @version 2013-03-10
*/
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcelField {
/**
* 导出字段名默认调用当前字段的get方法如指定导出字段为对象请填写对象名.对象属性area.nameoffice.name
*/
String value() default "";
/**
* 导出字段标题需要添加批注请用**分隔标题**批注仅对导出模板有效
*/
String title();
/**
* 导出字段注释仅对导出模板有效
*/
String comment() default "";
2017-12-29 16:18:40 +08:00
/**
* 字段类型0导出导入1仅导出2仅导入
*/
int type() default 0;
/**
* 导出字段对齐方式0自动1靠左2居中3靠右
*/
int align() default 0;
/**
* 导出字段字段排序升序
*/
int sort() default 0;
/**
* 如果是字典类型请设置字典的type值
*/
String dictType() default "";
/**
* 反射类型
*/
Class<?> fieldType() default Class.class;
/**
* 字段归属组根据分组导出导入
*/
int[] groups() default {};
}