|  | @@ -0,0 +1,180 @@
 | 
	
		
			
				|  |  | +<?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="com.ruoyi.sim.mapper.MxRealExamScoreMapper">
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    <resultMap type="MxRealExamScore" id="MxRealExamScoreResult">
 | 
	
		
			
				|  |  | +        <result property="id" column="id"/>
 | 
	
		
			
				|  |  | +        <result property="examCollectionId" column="exam_collection_id"/>
 | 
	
		
			
				|  |  | +        <result property="examId" column="exam_id"/>
 | 
	
		
			
				|  |  | +        <result property="total" column="total"/>
 | 
	
		
			
				|  |  | +        <result property="faultOneScore" column="fault_one_score"/>
 | 
	
		
			
				|  |  | +        <result property="faultTwoScore" column="fault_two_score"/>
 | 
	
		
			
				|  |  | +        <result property="faultThreeScore" column="fault_three_score"/>
 | 
	
		
			
				|  |  | +        <result property="xianxianScore" column="xianxian_score"/>
 | 
	
		
			
				|  |  | +        <result property="xianxianContent" column="xianxian_content"/>
 | 
	
		
			
				|  |  | +        <result property="yuanyinSocre" column="yuanyin_socre"/>
 | 
	
		
			
				|  |  | +        <result property="yuanyinContent" column="yuanyin_content"/>
 | 
	
		
			
				|  |  | +        <result property="buweiScore" column="buwei_score"/>
 | 
	
		
			
				|  |  | +        <result property="buweiContent" column="buwei_content"/>
 | 
	
		
			
				|  |  | +        <result property="fangfaScore" column="fangfa_score"/>
 | 
	
		
			
				|  |  | +        <result property="fangfaContent" column="fangfa_content"/>
 | 
	
		
			
				|  |  | +        <result property="jielunScore" column="jielun_score"/>
 | 
	
		
			
				|  |  | +        <result property="overtimeScore" column="overtime_score"/>
 | 
	
		
			
				|  |  | +        <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"/>
 | 
	
		
			
				|  |  | +    </resultMap>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    <sql id="selectMxRealExamScoreVo">
 | 
	
		
			
				|  |  | +        select id,
 | 
	
		
			
				|  |  | +               exam_collection_id,
 | 
	
		
			
				|  |  | +               exam_id,
 | 
	
		
			
				|  |  | +               total,
 | 
	
		
			
				|  |  | +               fault_one_score,
 | 
	
		
			
				|  |  | +               fault_two_score,
 | 
	
		
			
				|  |  | +               fault_three_score,
 | 
	
		
			
				|  |  | +               xianxian_score,
 | 
	
		
			
				|  |  | +               xianxian_content,
 | 
	
		
			
				|  |  | +               yuanyin_socre,
 | 
	
		
			
				|  |  | +               yuanyin_content,
 | 
	
		
			
				|  |  | +               buwei_score,
 | 
	
		
			
				|  |  | +               buwei_content,
 | 
	
		
			
				|  |  | +               fangfa_score,
 | 
	
		
			
				|  |  | +               fangfa_content,
 | 
	
		
			
				|  |  | +               jielun_score,
 | 
	
		
			
				|  |  | +               overtime_score,
 | 
	
		
			
				|  |  | +               other_replace,
 | 
	
		
			
				|  |  | +               other_report,
 | 
	
		
			
				|  |  | +               other_jielun,
 | 
	
		
			
				|  |  | +               createtime,
 | 
	
		
			
				|  |  | +               updatetime
 | 
	
		
			
				|  |  | +        from mx_real_exam_score
 | 
	
		
			
				|  |  | +    </sql>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    <select id="selectMxRealExamScoreList" parameterType="MxRealExamScore" resultMap="MxRealExamScoreResult">
 | 
	
		
			
				|  |  | +        <include refid="selectMxRealExamScoreVo"/>
 | 
	
		
			
				|  |  | +        <where>
 | 
	
		
			
				|  |  | +            <if test="examCollectionId != null ">and exam_collection_id = #{examCollectionId}</if>
 | 
	
		
			
				|  |  | +            <if test="examId != null ">and exam_id = #{examId}</if>
 | 
	
		
			
				|  |  | +            <if test="total != null ">and total = #{total}</if>
 | 
	
		
			
				|  |  | +            <if test="faultOneScore != null ">and fault_one_score = #{faultOneScore}</if>
 | 
	
		
			
				|  |  | +            <if test="faultTwoScore != null ">and fault_two_score = #{faultTwoScore}</if>
 | 
	
		
			
				|  |  | +            <if test="faultThreeScore != null ">and fault_three_score = #{faultThreeScore}</if>
 | 
	
		
			
				|  |  | +            <if test="xianxianScore != null ">and xianxian_score = #{xianxianScore}</if>
 | 
	
		
			
				|  |  | +            <if test="xianxianContent != null  and xianxianContent != ''">and xianxian_content = #{xianxianContent}</if>
 | 
	
		
			
				|  |  | +            <if test="yuanyinSocre != null ">and yuanyin_socre = #{yuanyinSocre}</if>
 | 
	
		
			
				|  |  | +            <if test="yuanyinContent != null  and yuanyinContent != ''">and yuanyin_content = #{yuanyinContent}</if>
 | 
	
		
			
				|  |  | +            <if test="buweiScore != null ">and buwei_score = #{buweiScore}</if>
 | 
	
		
			
				|  |  | +            <if test="buweiContent != null  and buweiContent != ''">and buwei_content = #{buweiContent}</if>
 | 
	
		
			
				|  |  | +            <if test="fangfaScore != null ">and fangfa_score = #{fangfaScore}</if>
 | 
	
		
			
				|  |  | +            <if test="fangfaContent != null  and fangfaContent != ''">and fangfa_content = #{fangfaContent}</if>
 | 
	
		
			
				|  |  | +            <if test="jielunScore != null ">and jielun_score = #{jielunScore}</if>
 | 
	
		
			
				|  |  | +            <if test="overtimeScore != null ">and overtime_score = #{overtimeScore}</if>
 | 
	
		
			
				|  |  | +            <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>
 | 
	
		
			
				|  |  | +        </where>
 | 
	
		
			
				|  |  | +    </select>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    <select id="selectMxRealExamScoreById" parameterType="Long" resultMap="MxRealExamScoreResult">
 | 
	
		
			
				|  |  | +        <include refid="selectMxRealExamScoreVo"/>
 | 
	
		
			
				|  |  | +        where id = #{id}
 | 
	
		
			
				|  |  | +    </select>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    <insert id="insertMxRealExamScore" parameterType="MxRealExamScore" useGeneratedKeys="true" keyProperty="id">
 | 
	
		
			
				|  |  | +        insert into mx_real_exam_score
 | 
	
		
			
				|  |  | +        <trim prefix="(" suffix=")" suffixOverrides=",">
 | 
	
		
			
				|  |  | +            <if test="examCollectionId != null">exam_collection_id,</if>
 | 
	
		
			
				|  |  | +            <if test="examId != null">exam_id,</if>
 | 
	
		
			
				|  |  | +            <if test="total != null">total,</if>
 | 
	
		
			
				|  |  | +            <if test="faultOneScore != null">fault_one_score,</if>
 | 
	
		
			
				|  |  | +            <if test="faultTwoScore != null">fault_two_score,</if>
 | 
	
		
			
				|  |  | +            <if test="faultThreeScore != null">fault_three_score,</if>
 | 
	
		
			
				|  |  | +            <if test="xianxianScore != null">xianxian_score,</if>
 | 
	
		
			
				|  |  | +            <if test="xianxianContent != null">xianxian_content,</if>
 | 
	
		
			
				|  |  | +            <if test="yuanyinSocre != null">yuanyin_socre,</if>
 | 
	
		
			
				|  |  | +            <if test="yuanyinContent != null">yuanyin_content,</if>
 | 
	
		
			
				|  |  | +            <if test="buweiScore != null">buwei_score,</if>
 | 
	
		
			
				|  |  | +            <if test="buweiContent != null">buwei_content,</if>
 | 
	
		
			
				|  |  | +            <if test="fangfaScore != null">fangfa_score,</if>
 | 
	
		
			
				|  |  | +            <if test="fangfaContent != null">fangfa_content,</if>
 | 
	
		
			
				|  |  | +            <if test="jielunScore != null">jielun_score,</if>
 | 
	
		
			
				|  |  | +            <if test="overtimeScore != null">overtime_score,</if>
 | 
	
		
			
				|  |  | +            <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>
 | 
	
		
			
				|  |  | +        </trim>
 | 
	
		
			
				|  |  | +        <trim prefix="values (" suffix=")" suffixOverrides=",">
 | 
	
		
			
				|  |  | +            <if test="examCollectionId != null">#{examCollectionId},</if>
 | 
	
		
			
				|  |  | +            <if test="examId != null">#{examId},</if>
 | 
	
		
			
				|  |  | +            <if test="total != null">#{total},</if>
 | 
	
		
			
				|  |  | +            <if test="faultOneScore != null">#{faultOneScore},</if>
 | 
	
		
			
				|  |  | +            <if test="faultTwoScore != null">#{faultTwoScore},</if>
 | 
	
		
			
				|  |  | +            <if test="faultThreeScore != null">#{faultThreeScore},</if>
 | 
	
		
			
				|  |  | +            <if test="xianxianScore != null">#{xianxianScore},</if>
 | 
	
		
			
				|  |  | +            <if test="xianxianContent != null">#{xianxianContent},</if>
 | 
	
		
			
				|  |  | +            <if test="yuanyinSocre != null">#{yuanyinSocre},</if>
 | 
	
		
			
				|  |  | +            <if test="yuanyinContent != null">#{yuanyinContent},</if>
 | 
	
		
			
				|  |  | +            <if test="buweiScore != null">#{buweiScore},</if>
 | 
	
		
			
				|  |  | +            <if test="buweiContent != null">#{buweiContent},</if>
 | 
	
		
			
				|  |  | +            <if test="fangfaScore != null">#{fangfaScore},</if>
 | 
	
		
			
				|  |  | +            <if test="fangfaContent != null">#{fangfaContent},</if>
 | 
	
		
			
				|  |  | +            <if test="jielunScore != null">#{jielunScore},</if>
 | 
	
		
			
				|  |  | +            <if test="overtimeScore != null">#{overtimeScore},</if>
 | 
	
		
			
				|  |  | +            <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>
 | 
	
		
			
				|  |  | +        </trim>
 | 
	
		
			
				|  |  | +    </insert>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    <update id="updateMxRealExamScore" parameterType="MxRealExamScore">
 | 
	
		
			
				|  |  | +        update mx_real_exam_score
 | 
	
		
			
				|  |  | +        <trim prefix="SET" suffixOverrides=",">
 | 
	
		
			
				|  |  | +            <if test="examCollectionId != null">exam_collection_id = #{examCollectionId},</if>
 | 
	
		
			
				|  |  | +            <if test="examId != null">exam_id = #{examId},</if>
 | 
	
		
			
				|  |  | +            <if test="total != null">total = #{total},</if>
 | 
	
		
			
				|  |  | +            <if test="faultOneScore != null">fault_one_score = #{faultOneScore},</if>
 | 
	
		
			
				|  |  | +            <if test="faultTwoScore != null">fault_two_score = #{faultTwoScore},</if>
 | 
	
		
			
				|  |  | +            <if test="faultThreeScore != null">fault_three_score = #{faultThreeScore},</if>
 | 
	
		
			
				|  |  | +            <if test="xianxianScore != null">xianxian_score = #{xianxianScore},</if>
 | 
	
		
			
				|  |  | +            <if test="xianxianContent != null">xianxian_content = #{xianxianContent},</if>
 | 
	
		
			
				|  |  | +            <if test="yuanyinSocre != null">yuanyin_socre = #{yuanyinSocre},</if>
 | 
	
		
			
				|  |  | +            <if test="yuanyinContent != null">yuanyin_content = #{yuanyinContent},</if>
 | 
	
		
			
				|  |  | +            <if test="buweiScore != null">buwei_score = #{buweiScore},</if>
 | 
	
		
			
				|  |  | +            <if test="buweiContent != null">buwei_content = #{buweiContent},</if>
 | 
	
		
			
				|  |  | +            <if test="fangfaScore != null">fangfa_score = #{fangfaScore},</if>
 | 
	
		
			
				|  |  | +            <if test="fangfaContent != null">fangfa_content = #{fangfaContent},</if>
 | 
	
		
			
				|  |  | +            <if test="jielunScore != null">jielun_score = #{jielunScore},</if>
 | 
	
		
			
				|  |  | +            <if test="overtimeScore != null">overtime_score = #{overtimeScore},</if>
 | 
	
		
			
				|  |  | +            <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>
 | 
	
		
			
				|  |  | +        </trim>
 | 
	
		
			
				|  |  | +        where id = #{id}
 | 
	
		
			
				|  |  | +    </update>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    <delete id="deleteMxRealExamScoreById" parameterType="Long">
 | 
	
		
			
				|  |  | +        delete
 | 
	
		
			
				|  |  | +        from mx_real_exam_score
 | 
	
		
			
				|  |  | +        where id = #{id}
 | 
	
		
			
				|  |  | +    </delete>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    <delete id="deleteMxRealExamScoreByIds" parameterType="String">
 | 
	
		
			
				|  |  | +        delete from mx_real_exam_score where id in
 | 
	
		
			
				|  |  | +        <foreach item="id" collection="array" open="(" separator="," close=")">
 | 
	
		
			
				|  |  | +            #{id}
 | 
	
		
			
				|  |  | +        </foreach>
 | 
	
		
			
				|  |  | +    </delete>
 | 
	
		
			
				|  |  | +</mapper>
 |