From 5390751e57edcd23963196afbed15069c2b8493a Mon Sep 17 00:00:00 2001 From: Alan <3052806735@qq.com> Date: Sat, 24 Aug 2024 10:21:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=BE=E7=A8=8B=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AA=E6=80=BB=E7=9B=AE?= =?UTF-8?q?=E6=A0=87=E7=9A=84=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/service/impl/courses/CoursesServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 "添加成功"; }