litmapper.xml 16.7 KB
Newer Older
hulei committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
<?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.LitMapper">

    <resultMap id="BaseResultMap" type="com.brilliance.isc.bo.Lit">
        <result property="inr" column="inr" jdbcType="VARCHAR"/>
        <result property="adlcnd" column="adlcnd" jdbcType="VARCHAR"/>
        <result property="defdet" column="defdet" jdbcType="VARCHAR"/>
        <result property="dftat" column="dftat" jdbcType="VARCHAR"/>
        <result property="feetxt" column="feetxt" jdbcType="VARCHAR"/>
        <result property="insbnk" column="insbnk" jdbcType="VARCHAR"/>
        <result property="lcrdoc" column="lcrdoc" jdbcType="VARCHAR"/>
        <result property="lcrgod" column="lcrgod" jdbcType="VARCHAR"/>
        <result property="mixdet" column="mixdet" jdbcType="VARCHAR"/>
        <result property="preper" column="preper" jdbcType="VARCHAR"/>
        <result property="rmbcha" column="rmbcha" jdbcType="VARCHAR"/>
        <result property="shpper" column="shpper" jdbcType="VARCHAR"/>
        <result property="ver" column="ver" jdbcType="VARCHAR"/>
        <result property="adlcndame" column="adlcndame" jdbcType="VARCHAR"/>
        <result property="lcrgodame" column="lcrgodame" jdbcType="VARCHAR"/>
        <result property="lcrdocame" column="lcrdocame" jdbcType="VARCHAR"/>
        <result property="narhis" column="narhis" jdbcType="VARCHAR"/>
        <result property="fldmodblk" column="fldmodblk" jdbcType="VARCHAR"/>
        <result property="revnotes" column="revnotes" jdbcType="VARCHAR"/>
        <result property="revcls" column="revcls" jdbcType="VARCHAR"/>
        <result property="avbwthtxt" column="avbwthtxt" jdbcType="VARCHAR"/>
        <result property="addamtcov" column="addamtcov" jdbcType="VARCHAR"/>
        <result property="insbnkame" column="insbnkame" jdbcType="VARCHAR"/>
        <result property="contag72" column="contag72" jdbcType="VARCHAR"/>
        <result property="contag79" column="contag79" jdbcType="VARCHAR"/>
        <result property="preperdef" column="preperdef" jdbcType="VARCHAR"/>
        <result property="preperflg" column="preperflg" jdbcType="VARCHAR"/>
        <result property="spcben" column="spcben" jdbcType="VARCHAR"/>
        <result property="spcbename" column="spcbename" jdbcType="VARCHAR"/>
        <result property="spcrcb" column="spcrcb" jdbcType="VARCHAR"/>
        <result property="spcrcbame" column="spcrcbame" jdbcType="VARCHAR"/>
        <result property="decamtstm" column="decamtstm" jdbcType="VARCHAR"/>
    </resultMap>

    <sql id="Base_Column_List">
        inr,adlcnd,defdet,dftat,feetxt,insbnk,lcrdoc,lcrgod,mixdet,preper,rmbcha,shpper,ver,adlcndame,lcrgodame,lcrdocame,narhis,fldmodblk,revnotes,revcls,avbwthtxt,addamtcov,insbnkame,contag72,contag79,preperdef,preperflg,spcben,spcbename,spcrcb,spcrcbame,decamtstm
    </sql>

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

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

    <insert id="insert">
        insert into lit (<include refid="Base_Column_List" />)
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            #{inr,jdbcType=VARCHAR},
            #{adlcnd,jdbcType=VARCHAR},
            #{defdet,jdbcType=VARCHAR},
            #{dftat,jdbcType=VARCHAR},
            #{feetxt,jdbcType=VARCHAR},
            #{insbnk,jdbcType=VARCHAR},
            #{lcrdoc,jdbcType=VARCHAR},
            #{lcrgod,jdbcType=VARCHAR},
            #{mixdet,jdbcType=VARCHAR},
            #{preper,jdbcType=VARCHAR},
            #{rmbcha,jdbcType=VARCHAR},
            #{shpper,jdbcType=VARCHAR},
            #{ver,jdbcType=VARCHAR},
            #{adlcndame,jdbcType=VARCHAR},
            #{lcrgodame,jdbcType=VARCHAR},
            #{lcrdocame,jdbcType=VARCHAR},
            #{narhis,jdbcType=VARCHAR},
            #{fldmodblk,jdbcType=VARCHAR},
            #{revnotes,jdbcType=VARCHAR},
            #{revcls,jdbcType=VARCHAR},
            #{avbwthtxt,jdbcType=VARCHAR},
            #{addamtcov,jdbcType=VARCHAR},
            #{insbnkame,jdbcType=VARCHAR},
            #{contag72,jdbcType=VARCHAR},
            #{contag79,jdbcType=VARCHAR},
            #{preperdef,jdbcType=VARCHAR},
            #{preperflg,jdbcType=VARCHAR},
            #{spcben,jdbcType=VARCHAR},
            #{spcbename,jdbcType=VARCHAR},
            #{spcrcb,jdbcType=VARCHAR},
            #{spcrcbame,jdbcType=VARCHAR},
            #{decamtstm,jdbcType=VARCHAR},
        </trim>
    </insert>

    <insert id="insertSelective">
        insert into lit
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="inr != null">inr,</if>
            <if test="adlcnd != null">adlcnd,</if>
            <if test="defdet != null">defdet,</if>
            <if test="dftat != null">dftat,</if>
            <if test="feetxt != null">feetxt,</if>
            <if test="insbnk != null">insbnk,</if>
            <if test="lcrdoc != null">lcrdoc,</if>
            <if test="lcrgod != null">lcrgod,</if>
            <if test="mixdet != null">mixdet,</if>
            <if test="preper != null">preper,</if>
            <if test="rmbcha != null">rmbcha,</if>
            <if test="shpper != null">shpper,</if>
            <if test="ver != null">ver,</if>
            <if test="adlcndame != null">adlcndame,</if>
            <if test="lcrgodame != null">lcrgodame,</if>
            <if test="lcrdocame != null">lcrdocame,</if>
            <if test="narhis != null">narhis,</if>
            <if test="fldmodblk != null">fldmodblk,</if>
            <if test="revnotes != null">revnotes,</if>
            <if test="revcls != null">revcls,</if>
            <if test="avbwthtxt != null">avbwthtxt,</if>
            <if test="addamtcov != null">addamtcov,</if>
            <if test="insbnkame != null">insbnkame,</if>
            <if test="contag72 != null">contag72,</if>
            <if test="contag79 != null">contag79,</if>
            <if test="preperdef != null">preperdef,</if>
            <if test="preperflg != null">preperflg,</if>
            <if test="spcben != null">spcben,</if>
            <if test="spcbename != null">spcbename,</if>
            <if test="spcrcb != null">spcrcb,</if>
            <if test="spcrcbame != null">spcrcbame,</if>
            <if test="decamtstm != null">decamtstm,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="inr != null">#{inr,jdbcType=VARCHAR}, </if>
            <if test="adlcnd != null">#{adlcnd,jdbcType=VARCHAR}, </if>
            <if test="defdet != null">#{defdet,jdbcType=VARCHAR}, </if>
            <if test="dftat != null">#{dftat,jdbcType=VARCHAR}, </if>
            <if test="feetxt != null">#{feetxt,jdbcType=VARCHAR}, </if>
            <if test="insbnk != null">#{insbnk,jdbcType=VARCHAR}, </if>
            <if test="lcrdoc != null">#{lcrdoc,jdbcType=VARCHAR}, </if>
            <if test="lcrgod != null">#{lcrgod,jdbcType=VARCHAR}, </if>
            <if test="mixdet != null">#{mixdet,jdbcType=VARCHAR}, </if>
            <if test="preper != null">#{preper,jdbcType=VARCHAR}, </if>
            <if test="rmbcha != null">#{rmbcha,jdbcType=VARCHAR}, </if>
            <if test="shpper != null">#{shpper,jdbcType=VARCHAR}, </if>
            <if test="ver != null">#{ver,jdbcType=VARCHAR}, </if>
            <if test="adlcndame != null">#{adlcndame,jdbcType=VARCHAR}, </if>
            <if test="lcrgodame != null">#{lcrgodame,jdbcType=VARCHAR}, </if>
            <if test="lcrdocame != null">#{lcrdocame,jdbcType=VARCHAR}, </if>
            <if test="narhis != null">#{narhis,jdbcType=VARCHAR}, </if>
            <if test="fldmodblk != null">#{fldmodblk,jdbcType=VARCHAR}, </if>
            <if test="revnotes != null">#{revnotes,jdbcType=VARCHAR}, </if>
            <if test="revcls != null">#{revcls,jdbcType=VARCHAR}, </if>
            <if test="avbwthtxt != null">#{avbwthtxt,jdbcType=VARCHAR}, </if>
            <if test="addamtcov != null">#{addamtcov,jdbcType=VARCHAR}, </if>
            <if test="insbnkame != null">#{insbnkame,jdbcType=VARCHAR}, </if>
            <if test="contag72 != null">#{contag72,jdbcType=VARCHAR}, </if>
            <if test="contag79 != null">#{contag79,jdbcType=VARCHAR}, </if>
            <if test="preperdef != null">#{preperdef,jdbcType=VARCHAR}, </if>
            <if test="preperflg != null">#{preperflg,jdbcType=VARCHAR}, </if>
            <if test="spcben != null">#{spcben,jdbcType=VARCHAR}, </if>
            <if test="spcbename != null">#{spcbename,jdbcType=VARCHAR}, </if>
            <if test="spcrcb != null">#{spcrcb,jdbcType=VARCHAR}, </if>
            <if test="spcrcbame != null">#{spcrcbame,jdbcType=VARCHAR}, </if>
            <if test="decamtstm != null">#{decamtstm,jdbcType=VARCHAR}, </if>
        </trim>
    </insert>

    <update id="updateByPrimaryKeySelective">
        update lit
        <set>
            <if test="adlcnd != null">adlcnd = #{adlcnd,jdbcType=VARCHAR},</if>
            <if test="defdet != null">defdet = #{defdet,jdbcType=VARCHAR},</if>
            <if test="dftat != null">dftat = #{dftat,jdbcType=VARCHAR},</if>
            <if test="feetxt != null">feetxt = #{feetxt,jdbcType=VARCHAR},</if>
            <if test="insbnk != null">insbnk = #{insbnk,jdbcType=VARCHAR},</if>
            <if test="lcrdoc != null">lcrdoc = #{lcrdoc,jdbcType=VARCHAR},</if>
            <if test="lcrgod != null">lcrgod = #{lcrgod,jdbcType=VARCHAR},</if>
            <if test="mixdet != null">mixdet = #{mixdet,jdbcType=VARCHAR},</if>
            <if test="preper != null">preper = #{preper,jdbcType=VARCHAR},</if>
            <if test="rmbcha != null">rmbcha = #{rmbcha,jdbcType=VARCHAR},</if>
            <if test="shpper != null">shpper = #{shpper,jdbcType=VARCHAR},</if>
            <if test="ver != null">ver = #{ver,jdbcType=VARCHAR},</if>
            <if test="adlcndame != null">adlcndame = #{adlcndame,jdbcType=VARCHAR},</if>
            <if test="lcrgodame != null">lcrgodame = #{lcrgodame,jdbcType=VARCHAR},</if>
            <if test="lcrdocame != null">lcrdocame = #{lcrdocame,jdbcType=VARCHAR},</if>
            <if test="narhis != null">narhis = #{narhis,jdbcType=VARCHAR},</if>
            <if test="fldmodblk != null">fldmodblk = #{fldmodblk,jdbcType=VARCHAR},</if>
            <if test="revnotes != null">revnotes = #{revnotes,jdbcType=VARCHAR},</if>
            <if test="revcls != null">revcls = #{revcls,jdbcType=VARCHAR},</if>
            <if test="avbwthtxt != null">avbwthtxt = #{avbwthtxt,jdbcType=VARCHAR},</if>
            <if test="addamtcov != null">addamtcov = #{addamtcov,jdbcType=VARCHAR},</if>
            <if test="insbnkame != null">insbnkame = #{insbnkame,jdbcType=VARCHAR},</if>
            <if test="contag72 != null">contag72 = #{contag72,jdbcType=VARCHAR},</if>
            <if test="contag79 != null">contag79 = #{contag79,jdbcType=VARCHAR},</if>
            <if test="preperdef != null">preperdef = #{preperdef,jdbcType=VARCHAR},</if>
            <if test="preperflg != null">preperflg = #{preperflg,jdbcType=VARCHAR},</if>
            <if test="spcben != null">spcben = #{spcben,jdbcType=VARCHAR},</if>
            <if test="spcbename != null">spcbename = #{spcbename,jdbcType=VARCHAR},</if>
            <if test="spcrcb != null">spcrcb = #{spcrcb,jdbcType=VARCHAR},</if>
            <if test="spcrcbame != null">spcrcbame = #{spcrcbame,jdbcType=VARCHAR},</if>
            <if test="decamtstm != null">decamtstm = #{decamtstm,jdbcType=VARCHAR},</if>
        </set>
        where inr = #{inr,jdbcType=VARCHAR}
    </update>

    <update id="updateByPrimaryKey">
        update lit
        <set>
            adlcnd = #{adlcnd,jdbcType=VARCHAR},
            defdet = #{defdet,jdbcType=VARCHAR},
            dftat = #{dftat,jdbcType=VARCHAR},
            feetxt = #{feetxt,jdbcType=VARCHAR},
            insbnk = #{insbnk,jdbcType=VARCHAR},
            lcrdoc = #{lcrdoc,jdbcType=VARCHAR},
            lcrgod = #{lcrgod,jdbcType=VARCHAR},
            mixdet = #{mixdet,jdbcType=VARCHAR},
            preper = #{preper,jdbcType=VARCHAR},
            rmbcha = #{rmbcha,jdbcType=VARCHAR},
            shpper = #{shpper,jdbcType=VARCHAR},
            ver = #{ver,jdbcType=VARCHAR},
            adlcndame = #{adlcndame,jdbcType=VARCHAR},
            lcrgodame = #{lcrgodame,jdbcType=VARCHAR},
            lcrdocame = #{lcrdocame,jdbcType=VARCHAR},
            narhis = #{narhis,jdbcType=VARCHAR},
            fldmodblk = #{fldmodblk,jdbcType=VARCHAR},
            revnotes = #{revnotes,jdbcType=VARCHAR},
            revcls = #{revcls,jdbcType=VARCHAR},
            avbwthtxt = #{avbwthtxt,jdbcType=VARCHAR},
            addamtcov = #{addamtcov,jdbcType=VARCHAR},
            insbnkame = #{insbnkame,jdbcType=VARCHAR},
            contag72 = #{contag72,jdbcType=VARCHAR},
            contag79 = #{contag79,jdbcType=VARCHAR},
            preperdef = #{preperdef,jdbcType=VARCHAR},
            preperflg = #{preperflg,jdbcType=VARCHAR},
            spcben = #{spcben,jdbcType=VARCHAR},
            spcbename = #{spcbename,jdbcType=VARCHAR},
            spcrcb = #{spcrcb,jdbcType=VARCHAR},
            spcrcbame = #{spcrcbame,jdbcType=VARCHAR},
            decamtstm = #{decamtstm,jdbcType=VARCHAR},
        </set>
        where inr = #{inr,jdbcType=VARCHAR}
    </update>

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

    <update id="dyncUpdate">
        update lit
        <set>
            <if test="module.adlcnd != null">adlcnd = #{module.adlcnd,jdbcType=VARCHAR},</if>
            <if test="module.defdet != null">defdet = #{module.defdet,jdbcType=VARCHAR},</if>
            <if test="module.dftat != null">dftat = #{module.dftat,jdbcType=VARCHAR},</if>
            <if test="module.feetxt != null">feetxt = #{module.feetxt,jdbcType=VARCHAR},</if>
            <if test="module.insbnk != null">insbnk = #{module.insbnk,jdbcType=VARCHAR},</if>
            <if test="module.lcrdoc != null">lcrdoc = #{module.lcrdoc,jdbcType=VARCHAR},</if>
            <if test="module.lcrgod != null">lcrgod = #{module.lcrgod,jdbcType=VARCHAR},</if>
            <if test="module.mixdet != null">mixdet = #{module.mixdet,jdbcType=VARCHAR},</if>
            <if test="module.preper != null">preper = #{module.preper,jdbcType=VARCHAR},</if>
            <if test="module.rmbcha != null">rmbcha = #{module.rmbcha,jdbcType=VARCHAR},</if>
            <if test="module.shpper != null">shpper = #{module.shpper,jdbcType=VARCHAR},</if>
            <if test="module.ver != null">ver = #{module.ver,jdbcType=VARCHAR},</if>
            <if test="module.adlcndame != null">adlcndame = #{module.adlcndame,jdbcType=VARCHAR},</if>
            <if test="module.lcrgodame != null">lcrgodame = #{module.lcrgodame,jdbcType=VARCHAR},</if>
            <if test="module.lcrdocame != null">lcrdocame = #{module.lcrdocame,jdbcType=VARCHAR},</if>
            <if test="module.narhis != null">narhis = #{module.narhis,jdbcType=VARCHAR},</if>
            <if test="module.fldmodblk != null">fldmodblk = #{module.fldmodblk,jdbcType=VARCHAR},</if>
            <if test="module.revnotes != null">revnotes = #{module.revnotes,jdbcType=VARCHAR},</if>
            <if test="module.revcls != null">revcls = #{module.revcls,jdbcType=VARCHAR},</if>
            <if test="module.avbwthtxt != null">avbwthtxt = #{module.avbwthtxt,jdbcType=VARCHAR},</if>
            <if test="module.addamtcov != null">addamtcov = #{module.addamtcov,jdbcType=VARCHAR},</if>
            <if test="module.insbnkame != null">insbnkame = #{module.insbnkame,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.preperdef != null">preperdef = #{module.preperdef,jdbcType=VARCHAR},</if>
            <if test="module.preperflg != null">preperflg = #{module.preperflg,jdbcType=VARCHAR},</if>
            <if test="module.spcben != null">spcben = #{module.spcben,jdbcType=VARCHAR},</if>
            <if test="module.spcbename != null">spcbename = #{module.spcbename,jdbcType=VARCHAR},</if>
            <if test="module.spcrcb != null">spcrcb = #{module.spcrcb,jdbcType=VARCHAR},</if>
            <if test="module.spcrcbame != null">spcrcbame = #{module.spcrcbame,jdbcType=VARCHAR},</if>
            <if test="module.decamtstm != null">decamtstm = #{module.decamtstm,jdbcType=VARCHAR},</if>
        </set>
        ${conditions}
    </update>

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

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

</mapper>