|
|
@@ -2,11 +2,11 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="vip.xiaonuo.exam.mapper.CourseChapterPaperMapper">
|
|
|
<resultMap id="BaseResultMap" type="vip.xiaonuo.exam.domain.CourseChapterPaper">
|
|
|
- <result column="COLLECT_ID" jdbcType="VARCHAR" property="collectId" />
|
|
|
+ <result column="CHAPTER_ID" jdbcType="VARCHAR" property="chapterId" />
|
|
|
<result column="PAPER_ID" jdbcType="VARCHAR" property="paperId" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
- COLLECT_ID, PAPER_ID
|
|
|
+ CHAPTER_ID, PAPER_ID
|
|
|
</sql>
|
|
|
<select id="queryList" resultMap="BaseResultMap" parameterType="vip.xiaonuo.exam.domain.CourseChapterPaper">
|
|
|
select
|
|
|
@@ -14,21 +14,21 @@
|
|
|
from COURSE_CHAPTER_PAPER
|
|
|
where 1=1
|
|
|
<if test="collectId != null">
|
|
|
- and COLLECT_ID = #{collectId,jdbcType=VARCHAR}
|
|
|
+ and CHAPTER_ID = #{chapterId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="paperId != null">
|
|
|
and PAPER_ID = #{paperId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
</select>
|
|
|
<insert id="add" parameterType="vip.xiaonuo.exam.domain.CourseChapterPaper">
|
|
|
- insert into COURSE_CHAPTER_PAPER (COLLECT_ID, PAPER_ID)
|
|
|
- values (#{collectId,jdbcType=VARCHAR}, #{paperId,jdbcType=VARCHAR})
|
|
|
+ insert into COURSE_CHAPTER_PAPER (CHAPTER_ID, PAPER_ID)
|
|
|
+ values (#{chapterId,jdbcType=VARCHAR}, #{paperId,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<delete id="delete" parameterType="vip.xiaonuo.exam.domain.CourseChapterPaper">
|
|
|
delete from COURSE_CHAPTER_PAPER
|
|
|
where 1=1
|
|
|
- <if test="collectId != null">
|
|
|
- and COLLECT_ID = #{collectId,jdbcType=VARCHAR}
|
|
|
+ <if test="chapterId != null">
|
|
|
+ and CHAPTER_ID = #{chapterId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="paperId != null">
|
|
|
and PAPER_ID = #{paperId,jdbcType=VARCHAR}
|