<?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.BetMapper"> <resultMap id="BaseResultMap" type="com.brilliance.isc.bo.Bet"> <result property="inr" column="inr" jdbcType="VARCHAR"/> <result property="docdis" column="docdis" jdbcType="VARCHAR"/> <result property="docins" column="docins" jdbcType="VARCHAR"/> <result property="prsdoc" column="prsdoc" jdbcType="VARCHAR"/> <result property="disdoc" column="disdoc" jdbcType="VARCHAR"/> <result property="benins" column="benins" jdbcType="VARCHAR"/> <result property="matper" column="matper" jdbcType="VARCHAR"/> <result property="intdis" column="intdis" jdbcType="VARCHAR"/> <result property="comcon" column="comcon" jdbcType="VARCHAR"/> <result property="fldmodblk" column="fldmodblk" jdbcType="VARCHAR"/> <result property="chaadd" column="chaadd" jdbcType="VARCHAR"/> <result property="chaded" column="chaded" jdbcType="VARCHAR"/> <result property="nartxt77a" column="nartxt77a" jdbcType="VARCHAR"/> <result property="contag72" column="contag72" jdbcType="VARCHAR"/> <result property="contag79" column="contag79" jdbcType="VARCHAR"/> <result property="docdisflg" column="docdisflg" jdbcType="VARCHAR"/> <result property="docdisdef" column="docdisdef" jdbcType="VARCHAR"/> <result property="setinsbe" column="setinsbe" jdbcType="VARCHAR"/> <result property="benref" column="benref" jdbcType="VARCHAR"/> </resultMap> <sql id="Base_Column_List"> inr,docdis,docins,prsdoc,disdoc,benins,matper,intdis,comcon,fldmodblk,chaadd,chaded,nartxt77a,contag72,contag79,docdisflg,docdisdef,setinsbe,benref </sql> <select id="selectByPrimaryKey" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from bet where inr = #{inr,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey"> delete from bet where inr = #{inr,jdbcType=VARCHAR} </delete> <insert id="insert"> insert into bet (<include refid="Base_Column_List" />) <trim prefix="values (" suffix=")" suffixOverrides=","> #{inr,jdbcType=VARCHAR}, #{docdis,jdbcType=VARCHAR}, #{docins,jdbcType=VARCHAR}, #{prsdoc,jdbcType=VARCHAR}, #{disdoc,jdbcType=VARCHAR}, #{benins,jdbcType=VARCHAR}, #{matper,jdbcType=VARCHAR}, #{intdis,jdbcType=VARCHAR}, #{comcon,jdbcType=VARCHAR}, #{fldmodblk,jdbcType=VARCHAR}, #{chaadd,jdbcType=VARCHAR}, #{chaded,jdbcType=VARCHAR}, #{nartxt77a,jdbcType=VARCHAR}, #{contag72,jdbcType=VARCHAR}, #{contag79,jdbcType=VARCHAR}, #{docdisflg,jdbcType=VARCHAR}, #{docdisdef,jdbcType=VARCHAR}, #{setinsbe,jdbcType=VARCHAR}, #{benref,jdbcType=VARCHAR}, </trim> </insert> <insert id="insertSelective"> insert into bet <trim prefix="(" suffix=")" suffixOverrides=","> <if test="inr != null">inr,</if> <if test="docdis != null">docdis,</if> <if test="docins != null">docins,</if> <if test="prsdoc != null">prsdoc,</if> <if test="disdoc != null">disdoc,</if> <if test="benins != null">benins,</if> <if test="matper != null">matper,</if> <if test="intdis != null">intdis,</if> <if test="comcon != null">comcon,</if> <if test="fldmodblk != null">fldmodblk,</if> <if test="chaadd != null">chaadd,</if> <if test="chaded != null">chaded,</if> <if test="nartxt77a != null">nartxt77a,</if> <if test="contag72 != null">contag72,</if> <if test="contag79 != null">contag79,</if> <if test="docdisflg != null">docdisflg,</if> <if test="docdisdef != null">docdisdef,</if> <if test="setinsbe != null">setinsbe,</if> <if test="benref != null">benref,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="inr != null">#{inr,jdbcType=VARCHAR}, </if> <if test="docdis != null">#{docdis,jdbcType=VARCHAR}, </if> <if test="docins != null">#{docins,jdbcType=VARCHAR}, </if> <if test="prsdoc != null">#{prsdoc,jdbcType=VARCHAR}, </if> <if test="disdoc != null">#{disdoc,jdbcType=VARCHAR}, </if> <if test="benins != null">#{benins,jdbcType=VARCHAR}, </if> <if test="matper != null">#{matper,jdbcType=VARCHAR}, </if> <if test="intdis != null">#{intdis,jdbcType=VARCHAR}, </if> <if test="comcon != null">#{comcon,jdbcType=VARCHAR}, </if> <if test="fldmodblk != null">#{fldmodblk,jdbcType=VARCHAR}, </if> <if test="chaadd != null">#{chaadd,jdbcType=VARCHAR}, </if> <if test="chaded != null">#{chaded,jdbcType=VARCHAR}, </if> <if test="nartxt77a != null">#{nartxt77a,jdbcType=VARCHAR}, </if> <if test="contag72 != null">#{contag72,jdbcType=VARCHAR}, </if> <if test="contag79 != null">#{contag79,jdbcType=VARCHAR}, </if> <if test="docdisflg != null">#{docdisflg,jdbcType=VARCHAR}, </if> <if test="docdisdef != null">#{docdisdef,jdbcType=VARCHAR}, </if> <if test="setinsbe != null">#{setinsbe,jdbcType=VARCHAR}, </if> <if test="benref != null">#{benref,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective"> update bet <set> <if test="docdis != null">docdis = #{docdis,jdbcType=VARCHAR},</if> <if test="docins != null">docins = #{docins,jdbcType=VARCHAR},</if> <if test="prsdoc != null">prsdoc = #{prsdoc,jdbcType=VARCHAR},</if> <if test="disdoc != null">disdoc = #{disdoc,jdbcType=VARCHAR},</if> <if test="benins != null">benins = #{benins,jdbcType=VARCHAR},</if> <if test="matper != null">matper = #{matper,jdbcType=VARCHAR},</if> <if test="intdis != null">intdis = #{intdis,jdbcType=VARCHAR},</if> <if test="comcon != null">comcon = #{comcon,jdbcType=VARCHAR},</if> <if test="fldmodblk != null">fldmodblk = #{fldmodblk,jdbcType=VARCHAR},</if> <if test="chaadd != null">chaadd = #{chaadd,jdbcType=VARCHAR},</if> <if test="chaded != null">chaded = #{chaded,jdbcType=VARCHAR},</if> <if test="nartxt77a != null">nartxt77a = #{nartxt77a,jdbcType=VARCHAR},</if> <if test="contag72 != null">contag72 = #{contag72,jdbcType=VARCHAR},</if> <if test="contag79 != null">contag79 = #{contag79,jdbcType=VARCHAR},</if> <if test="docdisflg != null">docdisflg = #{docdisflg,jdbcType=VARCHAR},</if> <if test="docdisdef != null">docdisdef = #{docdisdef,jdbcType=VARCHAR},</if> <if test="setinsbe != null">setinsbe = #{setinsbe,jdbcType=VARCHAR},</if> <if test="benref != null">benref = #{benref,jdbcType=VARCHAR},</if> </set> where inr = #{inr,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey"> update bet <set> docdis = #{docdis,jdbcType=VARCHAR}, docins = #{docins,jdbcType=VARCHAR}, prsdoc = #{prsdoc,jdbcType=VARCHAR}, disdoc = #{disdoc,jdbcType=VARCHAR}, benins = #{benins,jdbcType=VARCHAR}, matper = #{matper,jdbcType=VARCHAR}, intdis = #{intdis,jdbcType=VARCHAR}, comcon = #{comcon,jdbcType=VARCHAR}, fldmodblk = #{fldmodblk,jdbcType=VARCHAR}, chaadd = #{chaadd,jdbcType=VARCHAR}, chaded = #{chaded,jdbcType=VARCHAR}, nartxt77a = #{nartxt77a,jdbcType=VARCHAR}, contag72 = #{contag72,jdbcType=VARCHAR}, contag79 = #{contag79,jdbcType=VARCHAR}, docdisflg = #{docdisflg,jdbcType=VARCHAR}, docdisdef = #{docdisdef,jdbcType=VARCHAR}, setinsbe = #{setinsbe,jdbcType=VARCHAR}, benref = #{benref,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 bet <set> <if test="module.docdis != null">docdis = #{module.docdis,jdbcType=VARCHAR},</if> <if test="module.docins != null">docins = #{module.docins,jdbcType=VARCHAR},</if> <if test="module.prsdoc != null">prsdoc = #{module.prsdoc,jdbcType=VARCHAR},</if> <if test="module.disdoc != null">disdoc = #{module.disdoc,jdbcType=VARCHAR},</if> <if test="module.benins != null">benins = #{module.benins,jdbcType=VARCHAR},</if> <if test="module.matper != null">matper = #{module.matper,jdbcType=VARCHAR},</if> <if test="module.intdis != null">intdis = #{module.intdis,jdbcType=VARCHAR},</if> <if test="module.comcon != null">comcon = #{module.comcon,jdbcType=VARCHAR},</if> <if test="module.fldmodblk != null">fldmodblk = #{module.fldmodblk,jdbcType=VARCHAR},</if> <if test="module.chaadd != null">chaadd = #{module.chaadd,jdbcType=VARCHAR},</if> <if test="module.chaded != null">chaded = #{module.chaded,jdbcType=VARCHAR},</if> <if test="module.nartxt77a != null">nartxt77a = #{module.nartxt77a,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.docdisflg != null">docdisflg = #{module.docdisflg,jdbcType=VARCHAR},</if> <if test="module.docdisdef != null">docdisdef = #{module.docdisdef,jdbcType=VARCHAR},</if> <if test="module.setinsbe != null">setinsbe = #{module.setinsbe,jdbcType=VARCHAR},</if> <if test="module.benref != null">benref = #{module.benref,jdbcType=VARCHAR},</if> </set> ${conditions} </update> <delete id="dyncDelete"> ${sql} </delete> <select id="dyncRead" resultMap="BaseResultMap"> ${sql} </select> </mapper>