| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?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.zd.exam.mapper.ElPassMarkconfigMapper">
- <resultMap type="com.zd.exam.domain.ElPassMarkconfig" id="ElPassMarkconfigResult">
- <result property="id" column="id"/>
- <result property="passMark" column="pass_mark"/>
- <result property="gainSafeCert" column="gain_safe_cert"/>
- <result property="gainSubSafeCert" column="gain_sub_safe_cert"/>
- <result property="blackScore" column="black_score"/>
- <result property="createBy" column="create_by"/>
- <result property="createTime" column="create_time"/>
- <result property="updateBy" column="update_by"/>
- <result property="updateTime" column="update_time"/>
- <result property="remark" column="remark"/>
- </resultMap>
- <sql id="selectElPassMarkconfigVo">
- select id, pass_mark, gain_safe_cert, gain_sub_safe_cert, black_score, create_by, create_time, update_by, update_time, remark from el_pass_markconfig
- </sql>
- <sql id="selectElPassMarkconfigListVo">
- select t.id, t.pass_mark, t.gain_safe_cert, t.gain_sub_safe_cert, t.black_score, t.create_by, t.create_time, t.update_by, t.update_time, t.remark from el_pass_markconfig as t
- </sql>
- <select id="selectElPassMarkconfigList" parameterType="com.zd.exam.domain.ElPassMarkconfig" resultType="com.zd.exam.domain.vo.ElPassMarkconfigVO">
- <include refid="selectElPassMarkconfigVo"/>
- <where>
- <if test="passMark != null "> and pass_mark = #{passMark}</if>
- <if test="gainSafeCert != null "> and gain_safe_cert = #{gainSafeCert}</if>
- <if test="gainSubSafeCert != null "> and gain_sub_safe_cert = #{gainSubSafeCert}</if>
- <if test="blackScore != null "> and black_score = #{blackScore}</if>
- </where>
- </select>
- <select id="selectElPassMarkconfigById" resultMap="ElPassMarkconfigResult">
- <include refid="selectElPassMarkconfigVo"/>
- where id = #{id}
- </select>
- <insert id="insertElPassMarkconfig" parameterType="com.zd.exam.domain.ElPassMarkconfig" useGeneratedKeys="true" keyProperty="id">
- insert into el_pass_markconfig
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="passMark != null">pass_mark,</if>
- <if test="gainSafeCert != null">gain_safe_cert,</if>
- <if test="gainSubSafeCert != null">gain_sub_safe_cert,</if>
- <if test="blackScore != null">black_score,</if>
- <if test="createBy != null">create_by,</if>
- <if test="createTime != null">create_time,</if>
- <if test="updateBy != null">update_by,</if>
- <if test="updateTime != null">update_time,</if>
- <if test="remark != null">remark,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="passMark != null">#{passMark},</if>
- <if test="gainSafeCert != null">#{gainSafeCert},</if>
- <if test="gainSubSafeCert != null">#{gainSubSafeCert},</if>
- <if test="blackScore != null">#{blackScore},</if>
- <if test="createBy != null">#{createBy},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="updateBy != null">#{updateBy},</if>
- <if test="updateTime != null">#{updateTime},</if>
- <if test="remark != null">#{remark},</if>
- </trim>
- </insert>
- <update id="updateElPassMarkconfig" parameterType="com.zd.exam.domain.ElPassMarkconfig">
- update el_pass_markconfig
- <trim prefix="SET" suffixOverrides=",">
- <if test="passMark != null">pass_mark = #{passMark},</if>
- <if test="gainSafeCert != null">gain_safe_cert = #{gainSafeCert},</if>
- <if test="gainSubSafeCert != null">gain_sub_safe_cert = #{gainSubSafeCert},</if>
- <if test="blackScore != null">black_score = #{blackScore},</if>
- <if test="createBy != null">create_by = #{createBy},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
- <if test="updateBy != null">update_by = #{updateBy},</if>
- <if test="updateTime != null">update_time = #{updateTime},</if>
- <if test="remark != null">remark = #{remark},</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deleteElPassMarkconfigById" >
- delete from el_pass_markconfig where id = #{id}
- </delete>
- <delete id="deleteElPassMarkconfigByIds">
- delete from el_pass_markconfig where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- </mapper>
|