Commit 5ea7d103 authored by yanzg's avatar yanzg

设置单元格的值

parent b5912109
...@@ -290,6 +290,7 @@ public class ExcelConsole<T extends Object> implements DbRow<T> { ...@@ -290,6 +290,7 @@ public class ExcelConsole<T extends Object> implements DbRow<T> {
private void writeDefineRow(List<ExcelDefineRow> rows) { private void writeDefineRow(List<ExcelDefineRow> rows) {
// 创建行 // 创建行
for (ExcelDefineRow row : rows) { for (ExcelDefineRow row : rows) {
row.rowIndex = rowIndex;
Row sheetRow = sheet.createRow(rowIndex); Row sheetRow = sheet.createRow(rowIndex);
sheetRow.setHeight(getUnit(row.getHeight())); sheetRow.setHeight(getUnit(row.getHeight()));
for (ExcelDefineCell cell : row.getCells()) { for (ExcelDefineCell cell : row.getCells()) {
...@@ -317,7 +318,7 @@ public class ExcelConsole<T extends Object> implements DbRow<T> { ...@@ -317,7 +318,7 @@ public class ExcelConsole<T extends Object> implements DbRow<T> {
if (StringHelper.isEmpty(cell.getFormula())) { if (StringHelper.isEmpty(cell.getFormula())) {
continue; continue;
} }
} }
} }
} }
......
...@@ -11,6 +11,10 @@ import java.util.List; ...@@ -11,6 +11,10 @@ import java.util.List;
* @author 颜佐光 * @author 颜佐光
*/ */
public class ExcelDefineRow { public class ExcelDefineRow {
/**
* 行号
*/
int rowIndex;
/** /**
* 高度 * 高度
*/ */
......
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