Commit d15a5f01 authored by yanzg's avatar yanzg

执行时间

parent 7040bcee
......@@ -340,11 +340,14 @@ public class ExcelConsole<T extends Object> implements DbRow<T> {
String columnName = column.getName();
String value = StringHelper.getFirst(rowHandle.get(t, columnName));
// 列宽度
int columnWidth = getUnit(column.getWidth());
int columnWidth = getUnit(column.getWidth() - 10);
// 中文长度
int chinese = this.chinese.matcher(value).groupCount();
// 实际内容宽度
int chinaWidth = (int) Math.round(value.length() * 1.5);
int wordLength = value.length() + chinese;
int cellWidth = wordLength * 256;
// 当前单元格实际行高
int nowCellHeight = StringHelper.getPage(chinaWidth, columnWidth) * getUnit(this.config.getRowHeight());
int nowCellHeight = StringHelper.getPage(cellWidth, columnWidth) * getUnit(this.config.getRowHeight());
// 当前行行高
height = Math.max(nowCellHeight, height);
......
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