| | |
| | | <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"> |
| | |
| | | </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"> |