教育训练处考试制证系统后端
zhangf
2024-06-24 21362fd048558832cdcaca8ee957d2d7aa753be2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gkhy.exam.institutionalaccess.mapper.ThCourseChapterMapper">
 
    <select id="listByCourseUuids" resultType="com.gkhy.exam.institutionalaccess.model.vo.ThCourseChapterVO">
        select cc.id,
               cc.uuid,
               cc.chapter_code,
               cc.chapter_name,
               cc.lesson_num,
               cc.duration,
               cc.institution_id,
               cc.resource_type,
               cc.have_resource,
               cc.course_uuid,
               cc.parent_uuid,
               cc.url
               from th_course_chapter cc
               where cc.del_flag = 0 and cc.course_uuid in
        <foreach collection="courseUuids" item="courseUuid"  open="(" close=")" separator=",">
            #{courseUuid}
        </foreach>
    </select>
 
    <select id="listByCourseUuid" resultType="com.gkhy.exam.institutionalaccess.model.vo.ThCourseChapterVO">
        select cc.id,
        cc.uuid,
        cc.chapter_code,
        cc.chapter_name,
        cc.lesson_num,
        cc.duration,
        cc.institution_id,
        cc.resource_type,
        cc.have_resource,
        cc.course_uuid,
        cc.parent_uuid,
        cc.url
        from th_course_chapter cc
        where  cc.del_flag = 0 and cc.course_uuid = #{courseUuid}
    </select>
</mapper>