Commit 3b6919a2 authored by yanzg's avatar yanzg

接口文档的支持

parent cfcb799d
......@@ -247,9 +247,13 @@ public class ExcelConsole<T extends Object> implements DbRow<T> {
// 合并数据配置
for (int columnPos = 0; columnPos < this.config.getColumns().size(); columnPos++) {
ExportColumn column = this.config.getColumns().get(columnPos);
if (column.getWidth() < 1) {
sheet.autoSizeColumn(columnPos, true);
} else {
sheet.setColumnWidth(columnPos, getUnit(column.getWidth()));
}
}
}
/**
* 开始生成Excel文件
......
......@@ -30,7 +30,7 @@ public class ExportData {
public static final short ROW_HEIGHT = 30;
@ApiModelProperty(notes = "列默认宽度")
public static final short COLUMN_WIDTH = 120;
public static final short COLUMN_WIDTH = 0;
/**
* 服务器保存路径
......
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