|
|
|
@ -325,7 +325,7 @@ public class CoursesServiceImpl extends ServiceImpl<CoursesMapper, Courses> impl |
|
|
|
|
//准备导出数据
|
|
|
|
|
//查询课程通过课程id查--课程简介
|
|
|
|
|
Courses courses = this.getById(id); |
|
|
|
|
System.out.println("课程:"+courses); |
|
|
|
|
// System.out.println("课程:"+courses);
|
|
|
|
|
//准备数据
|
|
|
|
|
String course_name = courses.getName(); |
|
|
|
|
String course_code = courses.getCode(); |
|
|
|
@ -337,12 +337,12 @@ public class CoursesServiceImpl extends ServiceImpl<CoursesMapper, Courses> impl |
|
|
|
|
|
|
|
|
|
//查询课程目标
|
|
|
|
|
List<CourseObjectivesTreeVO> courseObjectivesTreeVO = objectivesService.queryCourseObjectivesTree(id); |
|
|
|
|
System.out.println("课程目标:"+courseObjectivesTreeVO); |
|
|
|
|
// System.out.println("课程目标:"+courseObjectivesTreeVO);
|
|
|
|
|
//准备数据
|
|
|
|
|
//总目标
|
|
|
|
|
StringBuilder overall_goal = new StringBuilder(); |
|
|
|
|
for (ObjectiveContents content : courseObjectivesTreeVO.get(0).getContents()) { |
|
|
|
|
overall_goal.append("\r\n").append(content.getContent()); |
|
|
|
|
overall_goal.append("\r\n ").append(content.getContent()); |
|
|
|
|
} |
|
|
|
|
System.out.println(overall_goal); |
|
|
|
|
|
|
|
|
@ -358,19 +358,19 @@ public class CoursesServiceImpl extends ServiceImpl<CoursesMapper, Courses> impl |
|
|
|
|
//知识目标
|
|
|
|
|
if (i == 0){ |
|
|
|
|
for (ObjectiveContents c : content.getContents()) { |
|
|
|
|
knowledge_goals.append("\r\n").append(c.getContent()); |
|
|
|
|
knowledge_goals.append("\r\n ").append(c.getContent()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//思政目标
|
|
|
|
|
if (i == 1){ |
|
|
|
|
for (ObjectiveContents c : content.getContents()) { |
|
|
|
|
political_goals.append("\r\n").append(c.getContent()); |
|
|
|
|
political_goals.append("\r\n ").append(c.getContent()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//价值目标
|
|
|
|
|
if (i == 2){ |
|
|
|
|
for (ObjectiveContents c : content.getContents()) { |
|
|
|
|
value_goals.append("\r\n").append(c.getContent()); |
|
|
|
|
value_goals.append("\r\n ").append(c.getContent()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|