|
|
|
@ -422,10 +422,13 @@ public class CoursesServiceImpl extends ServiceImpl<CoursesMapper, Courses> impl |
|
|
|
|
// XWPFParagraph newPara = newRow.getCell(0).getParagraphArray(0);
|
|
|
|
|
// XWPFRun newRun = newPara.createRun();
|
|
|
|
|
//序号
|
|
|
|
|
|
|
|
|
|
// newRow.getCell(0).getParagraphArray(0).getRuns().get(0).setText((i + 2) + "");
|
|
|
|
|
newRow.getCell(0).setText(Integer.valueOf(i+2).toString()); |
|
|
|
|
// newRow.getCell(0).getTableCell()
|
|
|
|
|
newRow.getCell(0).getParagraphArray(0).setIndentationLeft(0); |
|
|
|
|
newRow.getCell(0).getParagraphArray(0).setIndentationHanging(0); |
|
|
|
|
newRow.getCell(0).setText(Integer.valueOf(i+2).toString()); |
|
|
|
|
newRow.getCell(0).setVerticalAlignment(XWPFTableCell.XWPFVertAlign.TOP); |
|
|
|
|
// newRow.getCell(0).setVerticalAlignment(XWPFTableCell.XWPFVertAlign.TOP);
|
|
|
|
|
// newRow.getCell(0).setText(Integer.valueOf(i+2).toString().replaceAll("[\\s\\u00A0]+","").trim());
|
|
|
|
|
|
|
|
|
|
// newRun.setText((i + 2) + "");
|
|
|
|
@ -453,6 +456,9 @@ public class CoursesServiceImpl extends ServiceImpl<CoursesMapper, Courses> impl |
|
|
|
|
// }
|
|
|
|
|
// System.out.println("表格行数:"+rows.size());
|
|
|
|
|
//文件名=课程名+课程标准
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String filename= courses.getName()+"课程标准.docx"; |
|
|
|
|
//设置文件的打开方式和mime类型
|
|
|
|
|
ServletOutputStream outputStream = response.getOutputStream(); |
|
|
|
|