botmapper.xml 13.8 KB
<?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.brilliance.isc.mda.dao.BotMapper">

    <resultMap id="BaseResultMap" type="com.brilliance.isc.bo.Bot">
        <result property="inr" column="inr" jdbcType="VARCHAR"/>
        <result property="resrej" column="resrej" jdbcType="VARCHAR"/>
        <result property="docpre" column="docpre" jdbcType="VARCHAR"/>
        <result property="bogdet" column="bogdet" jdbcType="VARCHAR"/>
        <result property="vesselnam" column="vesselnam" jdbcType="VARCHAR"/>
        <result property="goddes" column="goddes" jdbcType="VARCHAR"/>
        <result property="colins" column="colins" jdbcType="VARCHAR"/>
        <result property="dftins" column="dftins" jdbcType="VARCHAR"/>
        <result property="proins" column="proins" jdbcType="VARCHAR"/>
        <result property="chgtxt" column="chgtxt" jdbcType="VARCHAR"/>
        <result property="narhis" column="narhis" jdbcType="VARCHAR"/>
        <result property="othins" column="othins" jdbcType="VARCHAR"/>
        <result property="fldmodblk" column="fldmodblk" jdbcType="VARCHAR"/>
        <result property="cctinsrcv" column="cctinsrcv" jdbcType="VARCHAR"/>
        <result property="cctinscol" column="cctinscol" jdbcType="VARCHAR"/>
        <result property="colinssnm" column="colinssnm" jdbcType="VARCHAR"/>
        <result property="intins" column="intins" jdbcType="VARCHAR"/>
        <result property="agtaut" column="agtaut" jdbcType="VARCHAR"/>
        <result property="contag72" column="contag72" jdbcType="VARCHAR"/>
        <result property="contag79" column="contag79" jdbcType="VARCHAR"/>
        <result property="bogans" column="bogans" jdbcType="VARCHAR"/>
        <result property="bogque" column="bogque" jdbcType="VARCHAR"/>
        <result property="setinsbo" column="setinsbo" jdbcType="VARCHAR"/>
        <result property="colinsdef" column="colinsdef" jdbcType="VARCHAR"/>
        <result property="colinsflg" column="colinsflg" jdbcType="VARCHAR"/>
        <result property="delins" column="delins" jdbcType="VARCHAR"/>
    </resultMap>

    <sql id="Base_Column_List">
            inr,resrej,docpre,bogdet,vesselnam,goddes,colins,dftins,proins,chgtxt,narhis,othins,fldmodblk,cctinsrcv,cctinscol,colinssnm,intins,agtaut,contag72,contag79,bogans,bogque,setinsbo,colinsdef,colinsflg,delins
        </sql>

    <select id="selectByPrimaryKey" resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List" />
        from bot
        where inr = #{inr,jdbcType=VARCHAR}
    </select>

    <delete id="deleteByPrimaryKey">
            delete from bot
            where inr = #{inr,jdbcType=VARCHAR}
        </delete>

    <insert id="insert">
        insert into bot (<include refid="Base_Column_List" />)
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            #{inr,jdbcType=VARCHAR},
            #{resrej,jdbcType=VARCHAR},
            #{docpre,jdbcType=VARCHAR},
            #{bogdet,jdbcType=VARCHAR},
            #{vesselnam,jdbcType=VARCHAR},
            #{goddes,jdbcType=VARCHAR},
            #{colins,jdbcType=VARCHAR},
            #{dftins,jdbcType=VARCHAR},
            #{proins,jdbcType=VARCHAR},
            #{chgtxt,jdbcType=VARCHAR},
            #{narhis,jdbcType=VARCHAR},
            #{othins,jdbcType=VARCHAR},
            #{fldmodblk,jdbcType=VARCHAR},
            #{cctinsrcv,jdbcType=VARCHAR},
            #{cctinscol,jdbcType=VARCHAR},
            #{colinssnm,jdbcType=VARCHAR},
            #{intins,jdbcType=VARCHAR},
            #{agtaut,jdbcType=VARCHAR},
            #{contag72,jdbcType=VARCHAR},
            #{contag79,jdbcType=VARCHAR},
            #{bogans,jdbcType=VARCHAR},
            #{bogque,jdbcType=VARCHAR},
            #{setinsbo,jdbcType=VARCHAR},
            #{colinsdef,jdbcType=VARCHAR},
            #{colinsflg,jdbcType=VARCHAR},
            #{delins,jdbcType=VARCHAR},
        </trim>
    </insert>

    <insert id="insertSelective">
        insert into bot
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="inr != null">inr,</if>
            <if test="resrej != null">resrej,</if>
            <if test="docpre != null">docpre,</if>
            <if test="bogdet != null">bogdet,</if>
            <if test="vesselnam != null">vesselnam,</if>
            <if test="goddes != null">goddes,</if>
            <if test="colins != null">colins,</if>
            <if test="dftins != null">dftins,</if>
            <if test="proins != null">proins,</if>
            <if test="chgtxt != null">chgtxt,</if>
            <if test="narhis != null">narhis,</if>
            <if test="othins != null">othins,</if>
            <if test="fldmodblk != null">fldmodblk,</if>
            <if test="cctinsrcv != null">cctinsrcv,</if>
            <if test="cctinscol != null">cctinscol,</if>
            <if test="colinssnm != null">colinssnm,</if>
            <if test="intins != null">intins,</if>
            <if test="agtaut != null">agtaut,</if>
            <if test="contag72 != null">contag72,</if>
            <if test="contag79 != null">contag79,</if>
            <if test="bogans != null">bogans,</if>
            <if test="bogque != null">bogque,</if>
            <if test="setinsbo != null">setinsbo,</if>
            <if test="colinsdef != null">colinsdef,</if>
            <if test="colinsflg != null">colinsflg,</if>
            <if test="delins != null">delins,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="inr != null">#{inr,jdbcType=VARCHAR}, </if>
            <if test="resrej != null">#{resrej,jdbcType=VARCHAR}, </if>
            <if test="docpre != null">#{docpre,jdbcType=VARCHAR}, </if>
            <if test="bogdet != null">#{bogdet,jdbcType=VARCHAR}, </if>
            <if test="vesselnam != null">#{vesselnam,jdbcType=VARCHAR}, </if>
            <if test="goddes != null">#{goddes,jdbcType=VARCHAR}, </if>
            <if test="colins != null">#{colins,jdbcType=VARCHAR}, </if>
            <if test="dftins != null">#{dftins,jdbcType=VARCHAR}, </if>
            <if test="proins != null">#{proins,jdbcType=VARCHAR}, </if>
            <if test="chgtxt != null">#{chgtxt,jdbcType=VARCHAR}, </if>
            <if test="narhis != null">#{narhis,jdbcType=VARCHAR}, </if>
            <if test="othins != null">#{othins,jdbcType=VARCHAR}, </if>
            <if test="fldmodblk != null">#{fldmodblk,jdbcType=VARCHAR}, </if>
            <if test="cctinsrcv != null">#{cctinsrcv,jdbcType=VARCHAR}, </if>
            <if test="cctinscol != null">#{cctinscol,jdbcType=VARCHAR}, </if>
            <if test="colinssnm != null">#{colinssnm,jdbcType=VARCHAR}, </if>
            <if test="intins != null">#{intins,jdbcType=VARCHAR}, </if>
            <if test="agtaut != null">#{agtaut,jdbcType=VARCHAR}, </if>
            <if test="contag72 != null">#{contag72,jdbcType=VARCHAR}, </if>
            <if test="contag79 != null">#{contag79,jdbcType=VARCHAR}, </if>
            <if test="bogans != null">#{bogans,jdbcType=VARCHAR}, </if>
            <if test="bogque != null">#{bogque,jdbcType=VARCHAR}, </if>
            <if test="setinsbo != null">#{setinsbo,jdbcType=VARCHAR}, </if>
            <if test="colinsdef != null">#{colinsdef,jdbcType=VARCHAR}, </if>
            <if test="colinsflg != null">#{colinsflg,jdbcType=VARCHAR}, </if>
            <if test="delins != null">#{delins,jdbcType=VARCHAR}, </if>
        </trim>
    </insert>

    <update id="updateByPrimaryKeySelective">
        update bot
        <set>
            <if test="resrej != null">resrej = #{resrej,jdbcType=VARCHAR},</if>
            <if test="docpre != null">docpre = #{docpre,jdbcType=VARCHAR},</if>
            <if test="bogdet != null">bogdet = #{bogdet,jdbcType=VARCHAR},</if>
            <if test="vesselnam != null">vesselnam = #{vesselnam,jdbcType=VARCHAR},</if>
            <if test="goddes != null">goddes = #{goddes,jdbcType=VARCHAR},</if>
            <if test="colins != null">colins = #{colins,jdbcType=VARCHAR},</if>
            <if test="dftins != null">dftins = #{dftins,jdbcType=VARCHAR},</if>
            <if test="proins != null">proins = #{proins,jdbcType=VARCHAR},</if>
            <if test="chgtxt != null">chgtxt = #{chgtxt,jdbcType=VARCHAR},</if>
            <if test="narhis != null">narhis = #{narhis,jdbcType=VARCHAR},</if>
            <if test="othins != null">othins = #{othins,jdbcType=VARCHAR},</if>
            <if test="fldmodblk != null">fldmodblk = #{fldmodblk,jdbcType=VARCHAR},</if>
            <if test="cctinsrcv != null">cctinsrcv = #{cctinsrcv,jdbcType=VARCHAR},</if>
            <if test="cctinscol != null">cctinscol = #{cctinscol,jdbcType=VARCHAR},</if>
            <if test="colinssnm != null">colinssnm = #{colinssnm,jdbcType=VARCHAR},</if>
            <if test="intins != null">intins = #{intins,jdbcType=VARCHAR},</if>
            <if test="agtaut != null">agtaut = #{agtaut,jdbcType=VARCHAR},</if>
            <if test="contag72 != null">contag72 = #{contag72,jdbcType=VARCHAR},</if>
            <if test="contag79 != null">contag79 = #{contag79,jdbcType=VARCHAR},</if>
            <if test="bogans != null">bogans = #{bogans,jdbcType=VARCHAR},</if>
            <if test="bogque != null">bogque = #{bogque,jdbcType=VARCHAR},</if>
            <if test="setinsbo != null">setinsbo = #{setinsbo,jdbcType=VARCHAR},</if>
            <if test="colinsdef != null">colinsdef = #{colinsdef,jdbcType=VARCHAR},</if>
            <if test="colinsflg != null">colinsflg = #{colinsflg,jdbcType=VARCHAR},</if>
            <if test="delins != null">delins = #{delins,jdbcType=VARCHAR},</if>
        </set>
        where inr = #{inr,jdbcType=VARCHAR}
    </update>

    <update id="updateByPrimaryKey">
        update bot
        <set>
            resrej = #{resrej,jdbcType=VARCHAR},
            docpre = #{docpre,jdbcType=VARCHAR},
            bogdet = #{bogdet,jdbcType=VARCHAR},
            vesselnam = #{vesselnam,jdbcType=VARCHAR},
            goddes = #{goddes,jdbcType=VARCHAR},
            colins = #{colins,jdbcType=VARCHAR},
            dftins = #{dftins,jdbcType=VARCHAR},
            proins = #{proins,jdbcType=VARCHAR},
            chgtxt = #{chgtxt,jdbcType=VARCHAR},
            narhis = #{narhis,jdbcType=VARCHAR},
            othins = #{othins,jdbcType=VARCHAR},
            fldmodblk = #{fldmodblk,jdbcType=VARCHAR},
            cctinsrcv = #{cctinsrcv,jdbcType=VARCHAR},
            cctinscol = #{cctinscol,jdbcType=VARCHAR},
            colinssnm = #{colinssnm,jdbcType=VARCHAR},
            intins = #{intins,jdbcType=VARCHAR},
            agtaut = #{agtaut,jdbcType=VARCHAR},
            contag72 = #{contag72,jdbcType=VARCHAR},
            contag79 = #{contag79,jdbcType=VARCHAR},
            bogans = #{bogans,jdbcType=VARCHAR},
            bogque = #{bogque,jdbcType=VARCHAR},
            setinsbo = #{setinsbo,jdbcType=VARCHAR},
            colinsdef = #{colinsdef,jdbcType=VARCHAR},
            colinsflg = #{colinsflg,jdbcType=VARCHAR},
            delins = #{delins,jdbcType=VARCHAR},
        </set>
        where inr = #{inr,jdbcType=VARCHAR}
    </update>

    <delete id="deleteByIds">
        delete from bot where inr in
        <foreach item="item" index="index" collection="collection" open="(" separator="," close=")">
            #{item}
        </foreach>
    </delete>

    <update id="dyncUpdate">
        update bot
        <set>
            <if test="module.resrej != null">resrej = #{module.resrej,jdbcType=VARCHAR},</if>
            <if test="module.docpre != null">docpre = #{module.docpre,jdbcType=VARCHAR},</if>
            <if test="module.bogdet != null">bogdet = #{module.bogdet,jdbcType=VARCHAR},</if>
            <if test="module.vesselnam != null">vesselnam = #{module.vesselnam,jdbcType=VARCHAR},</if>
            <if test="module.goddes != null">goddes = #{module.goddes,jdbcType=VARCHAR},</if>
            <if test="module.colins != null">colins = #{module.colins,jdbcType=VARCHAR},</if>
            <if test="module.dftins != null">dftins = #{module.dftins,jdbcType=VARCHAR},</if>
            <if test="module.proins != null">proins = #{module.proins,jdbcType=VARCHAR},</if>
            <if test="module.chgtxt != null">chgtxt = #{module.chgtxt,jdbcType=VARCHAR},</if>
            <if test="module.narhis != null">narhis = #{module.narhis,jdbcType=VARCHAR},</if>
            <if test="module.othins != null">othins = #{module.othins,jdbcType=VARCHAR},</if>
            <if test="module.fldmodblk != null">fldmodblk = #{module.fldmodblk,jdbcType=VARCHAR},</if>
            <if test="module.cctinsrcv != null">cctinsrcv = #{module.cctinsrcv,jdbcType=VARCHAR},</if>
            <if test="module.cctinscol != null">cctinscol = #{module.cctinscol,jdbcType=VARCHAR},</if>
            <if test="module.colinssnm != null">colinssnm = #{module.colinssnm,jdbcType=VARCHAR},</if>
            <if test="module.intins != null">intins = #{module.intins,jdbcType=VARCHAR},</if>
            <if test="module.agtaut != null">agtaut = #{module.agtaut,jdbcType=VARCHAR},</if>
            <if test="module.contag72 != null">contag72 = #{module.contag72,jdbcType=VARCHAR},</if>
            <if test="module.contag79 != null">contag79 = #{module.contag79,jdbcType=VARCHAR},</if>
            <if test="module.bogans != null">bogans = #{module.bogans,jdbcType=VARCHAR},</if>
            <if test="module.bogque != null">bogque = #{module.bogque,jdbcType=VARCHAR},</if>
            <if test="module.setinsbo != null">setinsbo = #{module.setinsbo,jdbcType=VARCHAR},</if>
            <if test="module.colinsdef != null">colinsdef = #{module.colinsdef,jdbcType=VARCHAR},</if>
            <if test="module.colinsflg != null">colinsflg = #{module.colinsflg,jdbcType=VARCHAR},</if>
            <if test="module.delins != null">delins = #{module.delins,jdbcType=VARCHAR},</if>
        </set>
        ${conditions}
    </update>

    <delete id="dyncDelete">
        ${sql}
    </delete>

    <select id="dyncRead" resultMap="BaseResultMap">
        ${sql}
    </select>

</mapper>