|
|
|
@@ -103,11 +103,10 @@ public class WordUtil { |
|
|
|
|
|
|
|
int rowIndex = wordDocTableVo.getRowIndex(); |
|
|
|
XWPFTableRow tmpRow = rows.get(rowIndex); |
|
|
|
List<XWPFTableCell> cellList = tmpRow.getTableCells(); |
|
|
|
|
|
|
|
for (List<String> stringList : wordDocTableVo.getParams()) { |
|
|
|
for (int i = 0; i < stringList.size(); i++) { |
|
|
|
cellList.get(i).setText(stringList.get(i)); |
|
|
|
tmpRow.getTableCells().get(i).setText(stringList.get(i)); |
|
|
|
} |
|
|
|
table.addRow(tmpRow,rowIndex); |
|
|
|
rowIndex++; |
|
|
|
|