|
|
|
@@ -105,11 +105,13 @@ public class WordUtil { |
|
|
|
XWPFTableRow tmpRow = rows.get(rowIndex); |
|
|
|
|
|
|
|
for (List<String> stringList : wordDocTableVo.getParams()) { |
|
|
|
for (int i = 0; i < stringList.size(); i++) { |
|
|
|
tmpRow.getTableCells().get(i).setText(stringList.get(i)); |
|
|
|
} |
|
|
|
table.addRow(tmpRow,rowIndex); |
|
|
|
rowIndex++; |
|
|
|
//替换新行内容 |
|
|
|
XWPFTableRow tableRow = rows.get(rowIndex); |
|
|
|
for (int i = 0; i < stringList.size(); i++) { |
|
|
|
tableRow.getTableCells().get(i).setText(stringList.get(i)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|