From 4a5aae6efc2ffd6a67200ebb4fec9864e34f20bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=AE=E5=8F=AE=E5=92=9A=E5=92=9A?= <3107655287@qq.com> Date: Sat, 22 Jun 2024 12:26:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=A0=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/courses/CoursesServiceImpl.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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); }