<?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.TgaMapper"> <resultMap id="BaseResultMap" type="com.brilliance.isc.common.rmbbop.entity.Tga"> <result property="inr" column="inr" jdbcType="VARCHAR"/> <result property="ver" column="ver" jdbcType="VARCHAR"/> <result property="sta" column="sta" jdbcType="VARCHAR"/> <result property="levyno" column="levyno" jdbcType="VARCHAR"/> <result property="opertype" column="opertype" jdbcType="VARCHAR"/> <result property="actiondesc" column="actiondesc" jdbcType="VARCHAR"/> <result property="banktrano" column="banktrano" jdbcType="VARCHAR"/> <result property="bankorgcode" column="bankorgcode" jdbcType="VARCHAR"/> <result property="decdate" column="decdate" jdbcType="DATE"/> <result property="derivatype" column="derivatype" jdbcType="VARCHAR"/> <result property="tradetype" column="tradetype" jdbcType="VARCHAR"/> <result property="countertype" column="countertype" jdbcType="VARCHAR"/> <result property="countername" column="countername" jdbcType="VARCHAR"/> <result property="countercode" column="countercode" jdbcType="VARCHAR"/> <result property="countercountry" column="countercountry" jdbcType="VARCHAR"/> <result property="assettype" column="assettype" jdbcType="VARCHAR"/> <result property="centralclear" column="centralclear" jdbcType="VARCHAR"/> <result property="tgbflg" column="tgbflg" jdbcType="VARCHAR"/> <result property="tgcflg" column="tgcflg" jdbcType="VARCHAR"/> <result property="tgdflg" column="tgdflg" jdbcType="VARCHAR"/> <result property="tgeflg" column="tgeflg" jdbcType="VARCHAR"/> <result property="tgfflg" column="tgfflg" jdbcType="VARCHAR"/> <result property="tgblist" column="tgblist" jdbcType="INTEGER"/> <result property="tgclist" column="tgclist" jdbcType="INTEGER"/> <result property="tgdlist" column="tgdlist" jdbcType="INTEGER"/> <result property="tgelist" column="tgelist" jdbcType="INTEGER"/> <result property="tgflist" column="tgflist" jdbcType="INTEGER"/> <result property="ownextkey" column="ownextkey" jdbcType="VARCHAR"/> <result property="sbankname" column="sbankname" jdbcType="VARCHAR"/> </resultMap> <sql id="Base_Column_List"> inr,ver,sta,levyno,opertype,actiondesc,banktrano,bankorgcode,decdate,derivatype,tradetype,countertype,countername,countercode,countercountry,assettype,centralclear,tgbflg,tgcflg,tgdflg,tgeflg,tgfflg,tgblist,tgclist,tgdlist,tgelist,tgflist,ownextkey,sbankname </sql> <select id="selectByPrimaryKey" resultMap="BaseResultMap"> select <include refid="Base_Column_List"/> from tga where inr = #{inr,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey"> delete from tga where inr = #{inr,jdbcType=VARCHAR} </delete> <insert id="insert"> insert into tga (<include refid="Base_Column_List"/>) <trim prefix="values (" suffix=")" suffixOverrides=","> #{inr,jdbcType=VARCHAR}, #{ver,jdbcType=VARCHAR}, #{sta,jdbcType=VARCHAR}, #{levyno,jdbcType=VARCHAR}, #{opertype,jdbcType=VARCHAR}, #{actiondesc,jdbcType=VARCHAR}, #{banktrano,jdbcType=VARCHAR}, #{bankorgcode,jdbcType=VARCHAR}, #{decdate,jdbcType=DATE}, #{derivatype,jdbcType=VARCHAR}, #{tradetype,jdbcType=VARCHAR}, #{countertype,jdbcType=VARCHAR}, #{countername,jdbcType=VARCHAR}, #{countercode,jdbcType=VARCHAR}, #{countercountry,jdbcType=VARCHAR}, #{assettype,jdbcType=VARCHAR}, #{centralclear,jdbcType=VARCHAR}, #{tgbflg,jdbcType=VARCHAR}, #{tgcflg,jdbcType=VARCHAR}, #{tgdflg,jdbcType=VARCHAR}, #{tgeflg,jdbcType=VARCHAR}, #{tgfflg,jdbcType=VARCHAR}, #{tgblist,jdbcType=INTEGER}, #{tgclist,jdbcType=INTEGER}, #{tgdlist,jdbcType=INTEGER}, #{tgelist,jdbcType=INTEGER}, #{tgflist,jdbcType=INTEGER}, #{ownextkey,jdbcType=VARCHAR}, #{sbankname,jdbcType=VARCHAR}, </trim> </insert> <insert id="insertSelective"> insert into tga <trim prefix="(" suffix=")" suffixOverrides=","> <if test="inr != null">inr,</if> <if test="ver != null">ver,</if> <if test="sta != null">sta,</if> <if test="levyno != null">levyno,</if> <if test="opertype != null">opertype,</if> <if test="actiondesc != null">actiondesc,</if> <if test="banktrano != null">banktrano,</if> <if test="bankorgcode != null">bankorgcode,</if> <if test="decdate != null">decdate,</if> <if test="derivatype != null">derivatype,</if> <if test="tradetype != null">tradetype,</if> <if test="countertype != null">countertype,</if> <if test="countername != null">countername,</if> <if test="countercode != null">countercode,</if> <if test="countercountry != null">countercountry,</if> <if test="assettype != null">assettype,</if> <if test="centralclear != null">centralclear,</if> <if test="tgbflg != null">tgbflg,</if> <if test="tgcflg != null">tgcflg,</if> <if test="tgdflg != null">tgdflg,</if> <if test="tgeflg != null">tgeflg,</if> <if test="tgfflg != null">tgfflg,</if> <if test="tgblist != null">tgblist,</if> <if test="tgclist != null">tgclist,</if> <if test="tgdlist != null">tgdlist,</if> <if test="tgelist != null">tgelist,</if> <if test="tgflist != null">tgflist,</if> <if test="ownextkey != null">ownextkey,</if> <if test="sbankname != null">sbankname,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="inr != null">#{inr,jdbcType=VARCHAR},</if> <if test="ver != null">#{ver,jdbcType=VARCHAR},</if> <if test="sta != null">#{sta,jdbcType=VARCHAR},</if> <if test="levyno != null">#{levyno,jdbcType=VARCHAR},</if> <if test="opertype != null">#{opertype,jdbcType=VARCHAR},</if> <if test="actiondesc != null">#{actiondesc,jdbcType=VARCHAR},</if> <if test="banktrano != null">#{banktrano,jdbcType=VARCHAR},</if> <if test="bankorgcode != null">#{bankorgcode,jdbcType=VARCHAR},</if> <if test="decdate != null">#{decdate,jdbcType=DATE},</if> <if test="derivatype != null">#{derivatype,jdbcType=VARCHAR},</if> <if test="tradetype != null">#{tradetype,jdbcType=VARCHAR},</if> <if test="countertype != null">#{countertype,jdbcType=VARCHAR},</if> <if test="countername != null">#{countername,jdbcType=VARCHAR},</if> <if test="countercode != null">#{countercode,jdbcType=VARCHAR},</if> <if test="countercountry != null">#{countercountry,jdbcType=VARCHAR},</if> <if test="centralclear != null">#{centralclear,jdbcType=VARCHAR},</if> <if test="tgbflg != null">#{tgbflg,jdbcType=VARCHAR},</if> <if test="tgcflg != null">#{tgcflg,jdbcType=VARCHAR},</if> <if test="tgdflg != null">#{tgdflg,jdbcType=VARCHAR},</if> <if test="tgeflg != null">#{tgeflg,jdbcType=VARCHAR},</if> <if test="tgfflg != null">#{tgfflg,jdbcType=VARCHAR},</if> <if test="tgblist != null">#{tgblist,jdbcType=INTEGER},</if> <if test="tgclist != null">#{tgclist,jdbcType=INTEGER},</if> <if test="tgdlist != null">#{tgdlist,jdbcType=INTEGER},</if> <if test="tgelist != null">#{tgelist,jdbcType=INTEGER},</if> <if test="tgflist != null">#{tgflist,jdbcType=INTEGER},</if> <if test="ownextkey != null">#{ownextkey,jdbcType=VARCHAR},</if> <if test="sbankname != null">#{sbankname,jdbcType=VARCHAR},</if> </trim> </insert> <update id="updateByPrimaryKeySelective"> update tga <set> <if test="ver != null">ver = #{ver,jdbcType=VARCHAR},</if> <if test="sta != null">sta = #{sta,jdbcType=VARCHAR},</if> <if test="levyno != null">levyno = #{levyno,jdbcType=VARCHAR},</if> <if test="opertype != null">opertype = #{opertype,jdbcType=VARCHAR},</if> <if test="actiondesc != null">actiondesc = #{actiondesc,jdbcType=VARCHAR},</if> <if test="banktrano != null">banktrano = #{banktrano,jdbcType=VARCHAR},</if> <if test="bankorgcode != null">bankorgcode = #{bankorgcode,jdbcType=VARCHAR},</if> <if test="decdate != null">decdate = #{decdate,jdbcType=DATE},</if> <if test="derivatype != null">derivatype = #{derivatype,jdbcType=VARCHAR},</if> <if test="tradetype != null">tradetype = #{tradetype,jdbcType=VARCHAR},</if> <if test="countertype != null">countertype = #{countertype,jdbcType=VARCHAR},</if> <if test="countername != null">countername =#{countername,jdbcType=VARCHAR},</if> <if test="countercode != null">countercode = #{countercode,jdbcType=VARCHAR},</if> <if test="countercountry != null">countercountry = #{countercountry,jdbcType=VARCHAR},</if> <if test="centralclear != null">centralclear = #{centralclear,jdbcType=VARCHAR},</if> <if test="tgbflg != null">tgbflg = #{tgbflg,jdbcType=VARCHAR},</if> <if test="tgcflg != null">tgcflg = #{tgcflg,jdbcType=VARCHAR},</if> <if test="tgdflg != null">tgdflg = #{tgdflg,jdbcType=VARCHAR},</if> <if test="tgeflg != null">tgeflg = #{tgeflg,jdbcType=VARCHAR},</if> <if test="tgfflg != null">tgfflg = #{tgfflg,jdbcType=VARCHAR},</if> <if test="tgblist != null">tgblist = #{tgblist,jdbcType=INTEGER},</if> <if test="tgclist != null">tgclist = #{tgclist,jdbcType=INTEGER},</if> <if test="tgdlist != null">tgdlist = #{tgdlist,jdbcType=INTEGER},</if> <if test="tgelist != null">tgelist = #{tgelist,jdbcType=INTEGER},</if> <if test="tgflist != null">tgflist = #{tgflist,jdbcType=INTEGER},</if> <if test="ownextkey != null">ownextkey = #{ownextkey,jdbcType=VARCHAR},</if> <if test="sbankname != null">sbankname = #{sbankname,jdbcType=VARCHAR},</if> </set> where inr = #{inr,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey"> update tga <set> ver = #{ver,jdbcType=VARCHAR}, sta = #{sta,jdbcType=VARCHAR}, levyno = #{levyno,jdbcType=VARCHAR}, opertype = #{opertype,jdbcType=VARCHAR}, actiondesc = #{actiondesc,jdbcType=VARCHAR}, banktrano = #{banktrano,jdbcType=VARCHAR}, bankorgcode = #{bankorgcode,jdbcType=VARCHAR}, decdate= #{decdate,jdbcType=DATE}, derivatype = #{derivatype,jdbcType=VARCHAR}, tradetype = #{tradetype,jdbcType=VARCHAR}, countertype = #{countertype,jdbcType=VARCHAR}, countername = #{countername,jdbcType=VARCHAR}, countercode = #{countercode,jdbcType=VARCHAR}, countercountry = #{countercountry,jdbcType=VARCHAR}, assettype = #{assettype,jdbcType=VARCHAR}, centralclear = #{centralclear,jdbcType=VARCHAR}, tgbflg = #{tgbflg,jdbcType=VARCHAR}, tgcflg = #{tgcflg,jdbcType=VARCHAR}, tgdflg = #{tgdflg,jdbcType=VARCHAR}, tgeflg = #{tgeflg,jdbcType=VARCHAR}, tgfflg = #{tgfflg,jdbcType=VARCHAR}, tgblist = #{tgblist,jdbcType=INTEGER}, tgclist = #{tgclist,jdbcType=INTEGER}, tgdlist = #{tgdlist,jdbcType=INTEGER}, tgelist = #{tgelist,jdbcType=INTEGER}, tgflist = #{tgflist,jdbcType=INTEGER}, ownextkey = #{ownextkey,jdbcType=VARCHAR}, sbankname = #{sbankname,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> <delete id="dyncDelete"> ${sql} </delete> <select id="dyncRead" resultMap="BaseResultMap"> ${sql} </select> </mapper>