|
@@ -1,17 +1,17 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?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">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
-<mapper namespace="vip.xiaonuo.exam.mapper.CollectCoursePaperMapper">
|
|
|
|
|
- <resultMap id="BaseResultMap" type="vip.xiaonuo.exam.domain.CollectCoursePaper">
|
|
|
|
|
|
|
+<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="COLLECT_ID" jdbcType="VARCHAR" property="collectId" />
|
|
|
<result column="PAPER_ID" jdbcType="VARCHAR" property="paperId" />
|
|
<result column="PAPER_ID" jdbcType="VARCHAR" property="paperId" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
COLLECT_ID, PAPER_ID
|
|
COLLECT_ID, PAPER_ID
|
|
|
</sql>
|
|
</sql>
|
|
|
- <select id="queryList" resultMap="BaseResultMap" parameterType="vip.xiaonuo.exam.domain.CollectCoursePaper">
|
|
|
|
|
|
|
+ <select id="queryList" resultMap="BaseResultMap" parameterType="vip.xiaonuo.exam.domain.CourseChapterPaper">
|
|
|
select
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
|
- from COLLECT_COURSE_PAPER
|
|
|
|
|
|
|
+ from COURSE_CHAPTER_PAPER
|
|
|
where 1=1
|
|
where 1=1
|
|
|
<if test="collectId != null">
|
|
<if test="collectId != null">
|
|
|
and COLLECT_ID = #{collectId,jdbcType=VARCHAR}
|
|
and COLLECT_ID = #{collectId,jdbcType=VARCHAR}
|
|
@@ -20,12 +20,12 @@
|
|
|
and PAPER_ID = #{paperId,jdbcType=VARCHAR}
|
|
and PAPER_ID = #{paperId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
- <insert id="add" parameterType="vip.xiaonuo.exam.domain.CollectCoursePaper">
|
|
|
|
|
- insert into COLLECT_COURSE_PAPER (COLLECT_ID, PAPER_ID)
|
|
|
|
|
|
|
+ <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})
|
|
values (#{collectId,jdbcType=VARCHAR}, #{paperId,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
</insert>
|
|
|
- <delete id="delete" parameterType="vip.xiaonuo.exam.domain.CollectCoursePaper">
|
|
|
|
|
- delete from COLLECT_COURSE_PAPER
|
|
|
|
|
|
|
+ <delete id="delete" parameterType="vip.xiaonuo.exam.domain.CourseChapterPaper">
|
|
|
|
|
+ delete from COURSE_CHAPTER_PAPER
|
|
|
where 1=1
|
|
where 1=1
|
|
|
<if test="collectId != null">
|
|
<if test="collectId != null">
|
|
|
and COLLECT_ID = #{collectId,jdbcType=VARCHAR}
|
|
and COLLECT_ID = #{collectId,jdbcType=VARCHAR}
|