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 7c9a09e..d9b3a16 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 @@ -164,6 +164,12 @@ public class CoursesServiceImpl extends ServiceImpl impl courseObjectivesMapper.updateById(courseTotalObjectives); } + // 在总目标里面插入一个内容 + ObjectiveContents objectiveContents = new ObjectiveContents(); + objectiveContents.setObjectiveId(courseTotalObjectivesId); + objectiveContents.setContent("课程总目标"); + objectiveContentsMapper.insert(objectiveContents); + return "添加成功"; }