|
|
@@ -10,13 +10,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="videoTime" column="video_time" />
|
|
|
<result property="questionCnt" column="question_cnt" />
|
|
|
<result property="status" column="status" />
|
|
|
+ <result property="firstTime" column="first_time" />
|
|
|
<result property="beginTime" column="begin_time" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="stats" column="stats" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectLearnPlanVo">
|
|
|
- select id, studentId, video_time, question_cnt, status, begin_time, create_time, stats from learn_plan
|
|
|
+ select id, studentId, video_time, question_cnt, status, first_time, begin_time, create_time, stats from learn_plan
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectLearnPlanList" parameterType="LearnPlan" resultMap="LearnPlanResult">
|
|
|
@@ -26,6 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="videoTime != null "> and video_time = #{videoTime}</if>
|
|
|
<if test="questionCnt != null "> and question_cnt = #{questionCnt}</if>
|
|
|
<if test="status != null "> and status = #{status}</if>
|
|
|
+ <if test="firstTime != null "> and first_time = #{firstTime}</if>
|
|
|
<if test="beginTime != null "> and begin_time = #{beginTime}</if>
|
|
|
<if test="stats != null and stats != ''"> and stats = #{stats}</if>
|
|
|
</where>
|
|
|
@@ -43,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="videoTime != null">video_time,</if>
|
|
|
<if test="questionCnt != null">question_cnt,</if>
|
|
|
<if test="status != null">status,</if>
|
|
|
+ <if test="firstTime != null">first_time,</if>
|
|
|
<if test="beginTime != null">begin_time,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="stats != null">stats,</if>
|
|
|
@@ -52,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="videoTime != null">#{videoTime},</if>
|
|
|
<if test="questionCnt != null">#{questionCnt},</if>
|
|
|
<if test="status != null">#{status},</if>
|
|
|
+ <if test="firstTime != null">#{firstTime},</if>
|
|
|
<if test="beginTime != null">#{beginTime},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="stats != null">#{stats},</if>
|
|
|
@@ -65,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="videoTime != null">video_time = #{videoTime},</if>
|
|
|
<if test="questionCnt != null">question_cnt = #{questionCnt},</if>
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
+ <if test="firstTime != null">first_time = #{firstTime},</if>
|
|
|
<if test="beginTime != null">begin_time = #{beginTime},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="stats != null">stats = #{stats},</if>
|