From a39e023677a9c5c68ba3b6577f0d7da24b9dc65e Mon Sep 17 00:00:00 2001
From: kongzy <kongzy>
Date: Wed, 30 Oct 2024 11:14:08 +0800
Subject: [PATCH] update
---
exam-system/src/main/resources/mapper/system/ExCourseChapterMapper.xml | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/exam-system/src/main/resources/mapper/system/ExCourseChapterMapper.xml b/exam-system/src/main/resources/mapper/system/ExCourseChapterMapper.xml
index e552f0f..8ebafa9 100644
--- a/exam-system/src/main/resources/mapper/system/ExCourseChapterMapper.xml
+++ b/exam-system/src/main/resources/mapper/system/ExCourseChapterMapper.xml
@@ -40,6 +40,9 @@
<result property="id" column="resource_id" />
<result property="name" column="resource_name" />
<result property="resourcePath" column="resource_path" />
+ <result property="resourceType" column="resource_type" />
+ <result property="resourceLength" column="period" />
+ <result property="docPage" column="doc_page" />
</resultMap>
<sql id="selectChapterVo">
@@ -85,8 +88,8 @@
</select>
<select id="getChapterPeriodByChapterId" resultMap="ExPeriodResult">
- select a.id,a.name,a.course_id,a.chapter_id,a.status,a.company_id,a.resource_id,
- b.resource_length as period,b.name as resource_name,b.resource_path from ex_course_chapter_period a
+ select a.id,a.name,a.course_id,a.chapter_id,a.status,a.company_id,a.resource_id,a.sort,
+ b.resource_length as period,b.name as resource_name,b.resource_path,b.doc_page,b.resource_type from ex_course_chapter_period a
left join ex_resource b on b.id=a.resource_id
where a.chapter_id=#{chapterId}
<if test="status!=null">
--
Gitblit v1.9.2