From f0f00e9ba8a755e4317e029d73b69a92ad9f9df1 Mon Sep 17 00:00:00 2001 From: kongzy <kongzy> Date: 星期六, 14 九月 2024 17:02:41 +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