| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 | <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapperPUBLIC "-//mybatis.org//DTD Mapper 3.0//EN""http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mapper namespace="com.supervision.peopleManage.mapper.BdglPeopleRecallAuditlogMapper">        <resultMap type="BdglPeopleRecallAuditlog" id="BdglPeopleRecallAuditlogResult">        <result property="id"    column="id"    />        <result property="pid"    column="pid"    />        <result property="peopleId"    column="people_id"    />        <result property="adminId"    column="admin_id"    />        <result property="type"    column="type"    />        <result property="contents"    column="contents"    />        <result property="createtime"    column="createtime"    />        <result property="updatetime"    column="updatetime"    />    </resultMap>    <sql id="selectBdglPeopleRecallAuditlogVo">        select id, pid, people_id, admin_id, type, contents, createtime, updatetime from bdgl_people_recall_auditlog    </sql>    <select id="selectBdglPeopleRecallAuditlogList" parameterType="BdglPeopleRecallAuditlog" resultMap="BdglPeopleRecallAuditlogResult">        <include refid="selectBdglPeopleRecallAuditlogVo"/>        <where>              <if test="pid != null "> and pid = #{pid}</if>            <if test="peopleId != null "> and people_id = #{peopleId}</if>            <if test="adminId != null "> and admin_id = #{adminId}</if>            <if test="type != null  and type != ''"> and type = #{type}</if>            <if test="contents != null  and contents != ''"> and contents = #{contents}</if>            <if test="createtime != null "> and createtime = #{createtime}</if>            <if test="updatetime != null "> and updatetime = #{updatetime}</if>        </where>    </select>        <select id="selectBdglPeopleRecallAuditlogById" parameterType="Integer" resultMap="BdglPeopleRecallAuditlogResult">        <include refid="selectBdglPeopleRecallAuditlogVo"/>        where id = #{id}    </select>            <insert id="insertBdglPeopleRecallAuditlog" parameterType="BdglPeopleRecallAuditlog" useGeneratedKeys="true" keyProperty="id">        insert into bdgl_people_recall_auditlog        <trim prefix="(" suffix=")" suffixOverrides=",">            <if test="pid != null">pid,</if>            <if test="peopleId != null">people_id,</if>            <if test="adminId != null">admin_id,</if>            <if test="type != null and type != ''">type,</if>            <if test="contents != null">contents,</if>            <if test="createtime != null">createtime,</if>            <if test="updatetime != null">updatetime,</if>         </trim>        <trim prefix="values (" suffix=")" suffixOverrides=",">            <if test="pid != null">#{pid},</if>            <if test="peopleId != null">#{peopleId},</if>            <if test="adminId != null">#{adminId},</if>            <if test="type != null and type != ''">#{type},</if>            <if test="contents != null">#{contents},</if>            <if test="createtime != null">#{createtime},</if>            <if test="updatetime != null">#{updatetime},</if>         </trim>    </insert>    <update id="updateBdglPeopleRecallAuditlog" parameterType="BdglPeopleRecallAuditlog">        update bdgl_people_recall_auditlog        <trim prefix="SET" suffixOverrides=",">            <if test="pid != null">pid = #{pid},</if>            <if test="peopleId != null">people_id = #{peopleId},</if>            <if test="adminId != null">admin_id = #{adminId},</if>            <if test="type != null and type != ''">type = #{type},</if>            <if test="contents != null">contents = #{contents},</if>            <if test="createtime != null">createtime = #{createtime},</if>            <if test="updatetime != null">updatetime = #{updatetime},</if>        </trim>        where id = #{id}    </update>    <delete id="deleteBdglPeopleRecallAuditlogById" parameterType="Integer">        delete from bdgl_people_recall_auditlog where id = #{id}    </delete>    <delete id="deleteBdglPeopleRecallAuditlogByIds" parameterType="String">        delete from bdgl_people_recall_auditlog where id in         <foreach item="id" collection="array" open="(" separator="," close=")">            #{id}        </foreach>    </delete></mapper>
 |