Excel支持设置导出类型&更换样式

This commit is contained in:
RuoYi
2019-08-04 09:43:25 +08:00
parent e944409f5e
commit 174ed02058
11 changed files with 134 additions and 56 deletions

View File

@ -29,6 +29,11 @@ public @interface Excel
*/
public String readConverterExp() default "";
/**
* 导出类型0数字 1字符串
*/
public ColumnType cellType() default ColumnType.STRING;
/**
* 导出时在excel中每个列的高度 单位为字符
*/
@ -89,4 +94,20 @@ public @interface Excel
return this.value;
}
}
public enum ColumnType
{
NUMERIC(0), STRING(1);
private final int value;
ColumnType(int value)
{
this.value = value;
}
public int value()
{
return this.value;
}
}
}