You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					32 lines
				
				1.3 KiB
			
		
		
			
		
	
	
					32 lines
				
				1.3 KiB
			| 
								 
											1 year ago
										 
									 | 
							
								<?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.hc.gpbusiness.mapper.CourseChapterMapper">
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    <resultMap type="com.hc.gpbusiness.model.CourseChapter" id="CourseChapterMap">
							 | 
						||
| 
								 | 
							
								        <result property="courseChapterId" column="course_chapter_id" jdbcType="INTEGER"/>
							 | 
						||
| 
								 | 
							
								        <result property="chapterName" column="chapter_name" jdbcType="VARCHAR"/>
							 | 
						||
| 
								 | 
							
								        <result property="parentId" column="parent_id" jdbcType="INTEGER"/>
							 | 
						||
| 
								 | 
							
								        <result property="chapterLevel" column="chapter_level" jdbcType="INTEGER"/>
							 | 
						||
| 
								 | 
							
								        <result property="courseId" column="course_id" jdbcType="INTEGER"/>
							 | 
						||
| 
								 | 
							
								        <result property="createTime" column="create_time" jdbcType="BIGINT"/>
							 | 
						||
| 
								 | 
							
								        <result property="updateTime" column="update_time" jdbcType="BIGINT"/>
							 | 
						||
| 
								 | 
							
								    </resultMap>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    <sql id="Base_Column_List">
							 | 
						||
| 
								 | 
							
								           course_chapter_id,
							 | 
						||
| 
								 | 
							
								           chapter_name,
							 | 
						||
| 
								 | 
							
								           parent_id,
							 | 
						||
| 
								 | 
							
								           chapter_level,
							 | 
						||
| 
								 | 
							
								           course_id,
							 | 
						||
| 
								 | 
							
								           create_time,
							 | 
						||
| 
								 | 
							
								           update_time
							 | 
						||
| 
								 | 
							
								    </sql>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    <select id="queryByCourseId" resultMap="CourseChapterMap">
							 | 
						||
| 
								 | 
							
								         SELECT
							 | 
						||
| 
								 | 
							
								         <include refid="Base_Column_List"/>
							 | 
						||
| 
								 | 
							
								         FROM course_chapter
							 | 
						||
| 
								 | 
							
								         WHERE course_id = #{courseId}
							 | 
						||
| 
								 | 
							
								    </select>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								</mapper>
							 |