Commit e73dbd47 authored by RuoYi's avatar RuoYi

Excel注解支持导出对象的子列表方法

parent e0cd5381
......@@ -88,6 +88,11 @@ public @interface Excel
*/
public String[] combo() default {};
/**
* 是否需要纵向合并单元格,应对需求:含有list集合单元格)
*/
public boolean needMerge() default false;
/**
* 是否导出数据,应对需求:有时我们需要导出一份模板,这是标题需要但内容需要用户手工填写.
*/
......@@ -104,7 +109,7 @@ public @interface Excel
public boolean isStatistics() default false;
/**
* 导出类型(0数字 1字符串)
* 导出类型(0数字 1字符串 2图片
*/
public ColumnType cellType() default ColumnType.STRING;
......@@ -143,22 +148,6 @@ public @interface Excel
*/
public String[] args() default {};
public enum Align
{
AUTO(0), LEFT(1), CENTER(2), RIGHT(3);
private final int value;
Align(int value)
{
this.value = value;
}
public int value()
{
return this.value;
}
}
/**
* 字段类型(0:导出导入;1:仅导出;2:仅导入)
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment