master
叮叮咚咚 5 months ago
parent 16bf21acfa
commit 4a5aae6efc
  1. 11
      src/main/java/com/teaching/backend/service/impl/courses/CoursesServiceImpl.java

@ -422,7 +422,6 @@ public class CoursesServiceImpl extends ServiceImpl<CoursesMapper, Courses> impl
Integer course_classhour = courses.getClasshours();
String course_description = courses.getDescription();
//查询课程目标
List<CourseObjectivesTreeVO> courseObjectivesTreeVO = objectivesService.queryCourseObjectivesTree(id);
//准备数据
@ -433,8 +432,6 @@ public class CoursesServiceImpl extends ServiceImpl<CoursesMapper, Courses> 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<CoursesMapper, Courses> 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<String,Object> params = new HashMap<String,Object>();
@ -520,7 +511,7 @@ public class CoursesServiceImpl extends ServiceImpl<CoursesMapper, Courses> 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);
}

Loading…
Cancel
Save