|
|
@@ -1,7 +1,58 @@
|
|
|
<?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="vip.xiaonuo.disk.mapper.ClassHourMapper">
|
|
|
- <select id="page" resultType="vip.xiaonuo.disk.vo.classhour.ClassHourVo">
|
|
|
+ <update id="updateByPrimaryKeySelective">
|
|
|
+ update t_exam_paper
|
|
|
+ <set>
|
|
|
+ <if test="name != null">
|
|
|
+ name = #{name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="subjectId != null">
|
|
|
+ subject_id = #{subjectId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="paperType != null">
|
|
|
+ paper_type = #{paperType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="gradeLevel != null">
|
|
|
+ grade_level = #{gradeLevel,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="score != null">
|
|
|
+ score = #{score,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="questionCount != null">
|
|
|
+ question_count = #{questionCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="suggestTime != null">
|
|
|
+ suggest_time = #{suggestTime,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="limitStartTime != null">
|
|
|
+ limit_start_time = #{limitStartTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="limitEndTime != null">
|
|
|
+ limit_end_time = #{limitEndTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="frameTextContentId != null">
|
|
|
+ frame_text_content_id = #{frameTextContentId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="createUser != null">
|
|
|
+ create_user = #{createUser,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="deleted != null">
|
|
|
+ deleted = #{deleted,jdbcType=BIT},
|
|
|
+ </if>
|
|
|
+ <if test="taskExamId != null">
|
|
|
+ task_exam_id = #{taskExamId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="isSelect != null">
|
|
|
+ IS_SELECT = #{isSelect,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <select id="page" resultType="vip.xiaonuo.disk.vo.classhour.ClassHourVo">
|
|
|
SELECT
|
|
|
a."id",
|
|
|
a."start_time",
|