|
@@ -2,9 +2,9 @@
|
|
|
<!DOCTYPE mapper
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
-<mapper namespace="com.ruoyi.sim.mapper.MxRealExamScoreMapper">
|
|
|
+<mapper namespace="com.ruoyi.sim.mapper.RealExamScoreMapper">
|
|
|
|
|
|
- <resultMap type="MxRealExamScore" id="MxRealExamScoreResult">
|
|
|
+ <resultMap type="RealExamScore" id="RealExamScoreResult">
|
|
|
<result property="id" column="id"/>
|
|
|
<result property="examCollectionId" column="exam_collection_id"/>
|
|
|
<result property="examId" column="exam_id"/>
|
|
@@ -25,8 +25,8 @@
|
|
|
<result property="otherReplace" column="other_replace"/>
|
|
|
<result property="otherReport" column="other_report"/>
|
|
|
<result property="otherJielun" column="other_jielun"/>
|
|
|
- <result property="createtime" column="createtime"/>
|
|
|
- <result property="updatetime" column="updatetime"/>
|
|
|
+ <result property="createTime" column="createtime"/>
|
|
|
+ <result property="updateTime" column="updatetime"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectMxRealExamScoreVo">
|
|
@@ -55,7 +55,7 @@
|
|
|
from mx_real_exam_score
|
|
|
</sql>
|
|
|
|
|
|
- <select id="selectMxRealExamScoreList" parameterType="MxRealExamScore" resultMap="MxRealExamScoreResult">
|
|
|
+ <select id="selectMxRealExamScoreList" parameterType="RealExamScore" resultMap="RealExamScoreResult">
|
|
|
<include refid="selectMxRealExamScoreVo"/>
|
|
|
<where>
|
|
|
<if test="examCollectionId != null ">and exam_collection_id = #{examCollectionId}</if>
|
|
@@ -77,17 +77,17 @@
|
|
|
<if test="otherReplace != null and otherReplace != ''">and other_replace = #{otherReplace}</if>
|
|
|
<if test="otherReport != null and otherReport != ''">and other_report = #{otherReport}</if>
|
|
|
<if test="otherJielun != null and otherJielun != ''">and other_jielun = #{otherJielun}</if>
|
|
|
- <if test="createtime != null ">and createtime = #{createtime}</if>
|
|
|
- <if test="updatetime != null ">and updatetime = #{updatetime}</if>
|
|
|
+ <if test="createTime != null ">and createtime = #{createTime}</if>
|
|
|
+ <if test="updateTime != null ">and updatetime = #{updateTime}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectMxRealExamScoreById" parameterType="Long" resultMap="MxRealExamScoreResult">
|
|
|
+ <select id="selectMxRealExamScoreById" parameterType="Long" resultMap="RealExamScoreResult">
|
|
|
<include refid="selectMxRealExamScoreVo"/>
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
|
|
|
- <insert id="insertMxRealExamScore" parameterType="MxRealExamScore" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ <insert id="insertMxRealExamScore" parameterType="RealExamScore" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into mx_real_exam_score
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="examCollectionId != null">exam_collection_id,</if>
|
|
@@ -109,8 +109,8 @@
|
|
|
<if test="otherReplace != null">other_replace,</if>
|
|
|
<if test="otherReport != null">other_report,</if>
|
|
|
<if test="otherJielun != null">other_jielun,</if>
|
|
|
- <if test="createtime != null">createtime,</if>
|
|
|
- <if test="updatetime != null">updatetime,</if>
|
|
|
+ <if test="createTime != null">createtime,</if>
|
|
|
+ <if test="updateTime != null">updatetime,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="examCollectionId != null">#{examCollectionId},</if>
|
|
@@ -132,12 +132,12 @@
|
|
|
<if test="otherReplace != null">#{otherReplace},</if>
|
|
|
<if test="otherReport != null">#{otherReport},</if>
|
|
|
<if test="otherJielun != null">#{otherJielun},</if>
|
|
|
- <if test="createtime != null">#{createtime},</if>
|
|
|
- <if test="updatetime != null">#{updatetime},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
- <update id="updateMxRealExamScore" parameterType="MxRealExamScore">
|
|
|
+ <update id="updateMxRealExamScore" parameterType="RealExamScore">
|
|
|
update mx_real_exam_score
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="examCollectionId != null">exam_collection_id = #{examCollectionId},</if>
|
|
@@ -159,8 +159,8 @@
|
|
|
<if test="otherReplace != null">other_replace = #{otherReplace},</if>
|
|
|
<if test="otherReport != null">other_report = #{otherReport},</if>
|
|
|
<if test="otherJielun != null">other_jielun = #{otherJielun},</if>
|
|
|
- <if test="createtime != null">createtime = #{createtime},</if>
|
|
|
- <if test="updatetime != null">updatetime = #{updatetime},</if>
|
|
|
+ <if test="createTime != null">createtime = #{createTime},</if>
|
|
|
+ <if test="updateTime != null">updatetime = #{updateTime},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|