diff --git a/src/main/java/com/teaching/backend/service/impl/courses/CoursesServiceImpl.java b/src/main/java/com/teaching/backend/service/impl/courses/CoursesServiceImpl.java index 174d3a4..2c77506 100644 --- a/src/main/java/com/teaching/backend/service/impl/courses/CoursesServiceImpl.java +++ b/src/main/java/com/teaching/backend/service/impl/courses/CoursesServiceImpl.java @@ -422,7 +422,6 @@ public class CoursesServiceImpl extends ServiceImpl impl Integer course_classhour = courses.getClasshours(); String course_description = courses.getDescription(); - //查询课程目标 List courseObjectivesTreeVO = objectivesService.queryCourseObjectivesTree(id); //准备数据 @@ -433,8 +432,6 @@ public class CoursesServiceImpl extends ServiceImpl impl ObjectiveContents content = contents.get(i); overall_goal.append(content.getContent()); } - System.out.println(overall_goal); - //分项目标 StringBuilder sub_objectives = new StringBuilder(); //课程目标数 @@ -451,12 +448,6 @@ public class CoursesServiceImpl extends ServiceImpl impl if (i != courseObjectivesTreeVO.get(0).getCourseObjectivesTrees().size() - 1){ sub_objectives.append("\r\n "); } - //价值目标 - if (i == 2){ - for (ObjectiveContents c : content.getContents()) { - value_goals.append(c.getContent()).append("\n"); - } - } } System.out.println("课程目标数:"+course_number); Map params = new HashMap(); @@ -520,7 +511,7 @@ public class CoursesServiceImpl extends ServiceImpl impl ServletOutputStream outputStream = response.getOutputStream(); response.setHeader( "Content-Disposition", "attachment;filename=" + new String(filename.getBytes(),"ISO8859-1")); response.setContentType("application/vnd.openxmlformats-officedocument.wordprocessingml.document"); - xwpfDocument.write(outputStream); + document.write(outputStream); }