kongzy
2024-09-14 f0f00e9ba8a755e4317e029d73b69a92ad9f9df1
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">