Commit b5912109 authored by yanzg's avatar yanzg

设置单元格的值

parent 49223dfe
...@@ -312,8 +312,15 @@ public class ExcelConsole<T extends Object> implements DbRow<T> { ...@@ -312,8 +312,15 @@ public class ExcelConsole<T extends Object> implements DbRow<T> {
} }
private void writeDefineFormula(List<ExcelDefineRow> rows) { private void writeDefineFormula(List<ExcelDefineRow> rows) {
for (ExcelDefineRow row : rows) {
for (ExcelDefineCell cell : row.getCells()) {
if (StringHelper.isEmpty(cell.getFormula())) {
continue;
}
} }
}
}
/** /**
* 开始生成Excel文件 * 开始生成Excel文件
......
...@@ -63,7 +63,7 @@ public class ExcelDefineCell { ...@@ -63,7 +63,7 @@ public class ExcelDefineCell {
} }
public short getWidthSize() { public short getWidthSize() {
return widthSize; return (short) Math.max(1, widthSize);
} }
public void setWidthSize(short widthSize) { public void setWidthSize(short widthSize) {
...@@ -71,7 +71,7 @@ public class ExcelDefineCell { ...@@ -71,7 +71,7 @@ public class ExcelDefineCell {
} }
public short getHeightSize() { public short getHeightSize() {
return heightSize; return (short) Math.max(1, heightSize);
} }
public void setHeightSize(short heightSize) { public void setHeightSize(short heightSize) {
......
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