<?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.JsdMapper"> <resultMap id="BaseResultMap" type="com.brilliance.isc.bo.Jsd"> <result property="inr" column="inr" jdbcType="VARCHAR"/> <result property="ownref" column="ownref" jdbcType="VARCHAR"/> <result property="maimpz" column="maimpz" jdbcType="VARCHAR"/> <result property="chlibz" column="chlibz" jdbcType="VARCHAR"/> <result property="chlibz1" column="chlibz1" jdbcType="VARCHAR"/> <result property="nam" column="nam" jdbcType="VARCHAR"/> <result property="pngcfx" column="pngcfx" jdbcType="VARCHAR"/> <result property="credat" column="credat" jdbcType="DATE"/> <result property="opndat" column="opndat" jdbcType="DATE"/> <result property="clsdat" column="clsdat" jdbcType="DATE"/> <result property="ver" column="ver" jdbcType="VARCHAR"/> <result property="branchinr" column="branchinr" jdbcType="VARCHAR"/> <result property="bchkeyinr" column="bchkeyinr" jdbcType="VARCHAR"/> <result property="qishrq" column="qishrq" jdbcType="DATE"/> <result property="qixiri" column="qixiri" jdbcType="DATE"/> <result property="baozfs" column="baozfs" jdbcType="VARCHAR"/> <result property="huobdh" column="huobdh" jdbcType="VARCHAR"/> <result property="dfhbdh" column="dfhbdh" jdbcType="VARCHAR"/> <result property="kehzwm" column="kehzwm" jdbcType="VARCHAR"/> <result property="jioyjc" column="jioyjc" jdbcType="DECIMAL"/> <result property="pngpjc" column="pngpjc" jdbcType="DECIMAL"/> <result property="wpngpc" column="wpngpc" jdbcType="DECIMAL"/> <result property="khwtxz" column="khwtxz" jdbcType="VARCHAR"/> <result property="weithl" column="weithl" jdbcType="DECIMAL"/> <result property="zdngll" column="zdngll" jdbcType="DECIMAL"/> <result property="jqmrhl" column="jqmrhl" jdbcType="DECIMAL"/> <result property="jqmchl" column="jqmchl" jdbcType="DECIMAL"/> <result property="cjiohl" column="cjiohl" jdbcType="DECIMAL"/> <result property="mairje" column="mairje" jdbcType="DECIMAL"/> <result property="maicje" column="maicje" jdbcType="DECIMAL"/> <result property="zha1zh" column="zha1zh" jdbcType="VARCHAR"/> <result property="zhangh" column="zhangh" jdbcType="VARCHAR"/> <result property="bzhjzh" column="bzhjzh" jdbcType="VARCHAR"/> <result property="caozbz" column="caozbz" jdbcType="VARCHAR"/> <result property="dxuhao" column="dxuhao" jdbcType="VARCHAR"/> <result property="bizhzh" column="bizhzh" jdbcType="VARCHAR"/> <result property="shfobz" column="shfobz" jdbcType="VARCHAR"/> <result property="ruzhjg" column="ruzhjg" jdbcType="VARCHAR"/> <result property="waitjm" column="waitjm" jdbcType="VARCHAR"/> <result property="benzbz" column="benzbz" jdbcType="VARCHAR"/> <result property="yewulx" column="yewulx" jdbcType="VARCHAR"/> <result property="zchbdh" column="zchbdh" jdbcType="VARCHAR"/> <result property="dianhh" column="dianhh" jdbcType="VARCHAR"/> <result property="chkrqi" column="chkrqi" jdbcType="DATE"/> <result property="daoqrq" column="daoqrq" jdbcType="DATE"/> <result property="dkrzzh" column="dkrzzh" jdbcType="VARCHAR"/> <result property="sxfbzh" column="sxfbzh" jdbcType="VARCHAR"/> <result property="bwqxzh" column="bwqxzh" jdbcType="VARCHAR"/> <result property="huo2dh" column="huo2dh" jdbcType="VARCHAR"/> <result property="remark" column="remark" jdbcType="VARCHAR"/> <result property="paijia" column="paijia" jdbcType="DECIMAL"/> <result property="ownusr" column="ownusr" jdbcType="VARCHAR"/> <result property="cshpct" column="cshpct" jdbcType="DECIMAL"/> <result property="relcrepct" column="relcrepct" jdbcType="DECIMAL"/> <result property="relcrecur" column="relcrecur" jdbcType="VARCHAR"/> <result property="relcreamt" column="relcreamt" jdbcType="DECIMAL"/> <result property="rskmit" column="rskmit" jdbcType="VARCHAR"/> <result property="zhungt" column="zhungt" jdbcType="VARCHAR"/> <result property="bujxje" column="bujxje" jdbcType="DECIMAL"/> <result property="cbdlje" column="cbdlje" jdbcType="DECIMAL"/> <result property="yewubh" column="yewubh" jdbcType="VARCHAR"/> <result property="preyewubh" column="preyewubh" jdbcType="VARCHAR"/> <result property="dfkhlb" column="dfkhlb" jdbcType="VARCHAR"/> <result property="waigtj" column="waigtj" jdbcType="VARCHAR"/> <result property="totcov" column="totcov" jdbcType="DECIMAL"/> <result property="relcshpct" column="relcshpct" jdbcType="DECIMAL"/> <result property="diaoqi" column="diaoqi" jdbcType="VARCHAR"/> <result property="picflg" column="picflg" jdbcType="VARCHAR"/> <result property="defrsn" column="defrsn" jdbcType="VARCHAR"/> <result property="ejsownref" column="ejsownref" jdbcType="VARCHAR"/> <result property="etyextkey" column="etyextkey" jdbcType="VARCHAR"/> <result property="maxmairje" column="maxmairje" jdbcType="DECIMAL"/> <result property="maxmaicje" column="maxmaicje" jdbcType="DECIMAL"/> <result property="kehhao" column="kehhao" jdbcType="VARCHAR"/> <result property="sfkzbz" column="sfkzbz" jdbcType="VARCHAR"/> <result property="rzdbflg" column="rzdbflg" jdbcType="VARCHAR"/> <result property="rzxybh" column="rzxybh" jdbcType="VARCHAR"/> <result property="txcode" column="txcode" jdbcType="VARCHAR"/> <result property="regno" column="regno" jdbcType="VARCHAR"/> <result property="rzhtyp" column="rzhtyp" jdbcType="VARCHAR"/> <result property="czhtyp" column="czhtyp" jdbcType="VARCHAR"/> <result property="waityp" column="waityp" jdbcType="VARCHAR"/> <result property="yohulx" column="yohulx" jdbcType="VARCHAR"/> </resultMap> <sql id="Base_Column_List"> inr,ownref,maimpz,chlibz,chlibz1,nam,pngcfx,credat,opndat,clsdat,ver,branchinr,bchkeyinr,qishrq,qixiri,baozfs,huobdh,dfhbdh,kehzwm,jioyjc,pngpjc,wpngpc,khwtxz,weithl,zdngll,jqmrhl,jqmchl,cjiohl,mairje,maicje,zha1zh,zhangh,bzhjzh,caozbz,dxuhao,bizhzh,shfobz,ruzhjg,waitjm,benzbz,yewulx,zchbdh,dianhh,chkrqi,daoqrq,dkrzzh,sxfbzh,bwqxzh,huo2dh,remark,paijia,ownusr,cshpct,relcrepct,relcrecur,relcreamt,rskmit,zhungt,bujxje,cbdlje,yewubh,preyewubh,dfkhlb,waigtj,totcov,relcshpct,diaoqi,picflg,defrsn,ejsownref,etyextkey,maxmairje,maxmaicje,kehhao,sfkzbz,rzdbflg,rzxybh,txcode,regno,rzhtyp,czhtyp,waityp,yohulx </sql> <select id="selectByPrimaryKey" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from jsd where inr = #{inr,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey"> delete from jsd where inr = #{inr,jdbcType=VARCHAR} </delete> <insert id="insert"> insert into jsd (<include refid="Base_Column_List" />) <trim prefix="values (" suffix=")" suffixOverrides=","> #{inr,jdbcType=VARCHAR}, #{ownref,jdbcType=VARCHAR}, #{maimpz,jdbcType=VARCHAR}, #{chlibz,jdbcType=VARCHAR}, #{chlibz1,jdbcType=VARCHAR}, #{nam,jdbcType=VARCHAR}, #{pngcfx,jdbcType=VARCHAR}, #{credat,jdbcType=DATE}, #{opndat,jdbcType=DATE}, #{clsdat,jdbcType=DATE}, #{ver,jdbcType=VARCHAR}, #{branchinr,jdbcType=VARCHAR}, #{bchkeyinr,jdbcType=VARCHAR}, #{qishrq,jdbcType=DATE}, #{qixiri,jdbcType=DATE}, #{baozfs,jdbcType=VARCHAR}, #{huobdh,jdbcType=VARCHAR}, #{dfhbdh,jdbcType=VARCHAR}, #{kehzwm,jdbcType=VARCHAR}, #{jioyjc,jdbcType=DECIMAL}, #{pngpjc,jdbcType=DECIMAL}, #{wpngpc,jdbcType=DECIMAL}, #{khwtxz,jdbcType=VARCHAR}, #{weithl,jdbcType=DECIMAL}, #{zdngll,jdbcType=DECIMAL}, #{jqmrhl,jdbcType=DECIMAL}, #{jqmchl,jdbcType=DECIMAL}, #{cjiohl,jdbcType=DECIMAL}, #{mairje,jdbcType=DECIMAL}, #{maicje,jdbcType=DECIMAL}, #{zha1zh,jdbcType=VARCHAR}, #{zhangh,jdbcType=VARCHAR}, #{bzhjzh,jdbcType=VARCHAR}, #{caozbz,jdbcType=VARCHAR}, #{dxuhao,jdbcType=VARCHAR}, #{bizhzh,jdbcType=VARCHAR}, #{shfobz,jdbcType=VARCHAR}, #{ruzhjg,jdbcType=VARCHAR}, #{waitjm,jdbcType=VARCHAR}, #{benzbz,jdbcType=VARCHAR}, #{yewulx,jdbcType=VARCHAR}, #{zchbdh,jdbcType=VARCHAR}, #{dianhh,jdbcType=VARCHAR}, #{chkrqi,jdbcType=DATE}, #{daoqrq,jdbcType=DATE}, #{dkrzzh,jdbcType=VARCHAR}, #{sxfbzh,jdbcType=VARCHAR}, #{bwqxzh,jdbcType=VARCHAR}, #{huo2dh,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{paijia,jdbcType=DECIMAL}, #{ownusr,jdbcType=VARCHAR}, #{cshpct,jdbcType=DECIMAL}, #{relcrepct,jdbcType=DECIMAL}, #{relcrecur,jdbcType=VARCHAR}, #{relcreamt,jdbcType=DECIMAL}, #{rskmit,jdbcType=VARCHAR}, #{zhungt,jdbcType=VARCHAR}, #{bujxje,jdbcType=DECIMAL}, #{cbdlje,jdbcType=DECIMAL}, #{yewubh,jdbcType=VARCHAR}, #{preyewubh,jdbcType=VARCHAR}, #{dfkhlb,jdbcType=VARCHAR}, #{waigtj,jdbcType=VARCHAR}, #{totcov,jdbcType=DECIMAL}, #{relcshpct,jdbcType=DECIMAL}, #{diaoqi,jdbcType=VARCHAR}, #{picflg,jdbcType=VARCHAR}, #{defrsn,jdbcType=VARCHAR}, #{ejsownref,jdbcType=VARCHAR}, #{etyextkey,jdbcType=VARCHAR}, #{maxmairje,jdbcType=DECIMAL}, #{maxmaicje,jdbcType=DECIMAL}, #{kehhao,jdbcType=VARCHAR}, #{sfkzbz,jdbcType=VARCHAR}, #{rzdbflg,jdbcType=VARCHAR}, #{rzxybh,jdbcType=VARCHAR}, #{txcode,jdbcType=VARCHAR}, #{regno,jdbcType=VARCHAR}, #{rzhtyp,jdbcType=VARCHAR}, #{czhtyp,jdbcType=VARCHAR}, #{waityp,jdbcType=VARCHAR}, #{yohulx,jdbcType=VARCHAR}, </trim> </insert> <insert id="insertSelective"> insert into jsd <trim prefix="(" suffix=")" suffixOverrides=","> <if test="inr != null">inr,</if> <if test="ownref != null">ownref,</if> <if test="maimpz != null">maimpz,</if> <if test="chlibz != null">chlibz,</if> <if test="chlibz1 != null">chlibz1,</if> <if test="nam != null">nam,</if> <if test="pngcfx != null">pngcfx,</if> <if test="credat != null">credat,</if> <if test="opndat != null">opndat,</if> <if test="clsdat != null">clsdat,</if> <if test="ver != null">ver,</if> <if test="branchinr != null">branchinr,</if> <if test="bchkeyinr != null">bchkeyinr,</if> <if test="qishrq != null">qishrq,</if> <if test="qixiri != null">qixiri,</if> <if test="baozfs != null">baozfs,</if> <if test="huobdh != null">huobdh,</if> <if test="dfhbdh != null">dfhbdh,</if> <if test="kehzwm != null">kehzwm,</if> <if test="jioyjc != null">jioyjc,</if> <if test="pngpjc != null">pngpjc,</if> <if test="wpngpc != null">wpngpc,</if> <if test="khwtxz != null">khwtxz,</if> <if test="weithl != null">weithl,</if> <if test="zdngll != null">zdngll,</if> <if test="jqmrhl != null">jqmrhl,</if> <if test="jqmchl != null">jqmchl,</if> <if test="cjiohl != null">cjiohl,</if> <if test="mairje != null">mairje,</if> <if test="maicje != null">maicje,</if> <if test="zha1zh != null">zha1zh,</if> <if test="zhangh != null">zhangh,</if> <if test="bzhjzh != null">bzhjzh,</if> <if test="caozbz != null">caozbz,</if> <if test="dxuhao != null">dxuhao,</if> <if test="bizhzh != null">bizhzh,</if> <if test="shfobz != null">shfobz,</if> <if test="ruzhjg != null">ruzhjg,</if> <if test="waitjm != null">waitjm,</if> <if test="benzbz != null">benzbz,</if> <if test="yewulx != null">yewulx,</if> <if test="zchbdh != null">zchbdh,</if> <if test="dianhh != null">dianhh,</if> <if test="chkrqi != null">chkrqi,</if> <if test="daoqrq != null">daoqrq,</if> <if test="dkrzzh != null">dkrzzh,</if> <if test="sxfbzh != null">sxfbzh,</if> <if test="bwqxzh != null">bwqxzh,</if> <if test="huo2dh != null">huo2dh,</if> <if test="remark != null">remark,</if> <if test="paijia != null">paijia,</if> <if test="ownusr != null">ownusr,</if> <if test="cshpct != null">cshpct,</if> <if test="relcrepct != null">relcrepct,</if> <if test="relcrecur != null">relcrecur,</if> <if test="relcreamt != null">relcreamt,</if> <if test="rskmit != null">rskmit,</if> <if test="zhungt != null">zhungt,</if> <if test="bujxje != null">bujxje,</if> <if test="cbdlje != null">cbdlje,</if> <if test="yewubh != null">yewubh,</if> <if test="preyewubh != null">preyewubh,</if> <if test="dfkhlb != null">dfkhlb,</if> <if test="waigtj != null">waigtj,</if> <if test="totcov != null">totcov,</if> <if test="relcshpct != null">relcshpct,</if> <if test="diaoqi != null">diaoqi,</if> <if test="picflg != null">picflg,</if> <if test="defrsn != null">defrsn,</if> <if test="ejsownref != null">ejsownref,</if> <if test="etyextkey != null">etyextkey,</if> <if test="maxmairje != null">maxmairje,</if> <if test="maxmaicje != null">maxmaicje,</if> <if test="kehhao != null">kehhao,</if> <if test="sfkzbz != null">sfkzbz,</if> <if test="rzdbflg != null">rzdbflg,</if> <if test="rzxybh != null">rzxybh,</if> <if test="txcode != null">txcode,</if> <if test="regno != null">regno,</if> <if test="rzhtyp != null">rzhtyp,</if> <if test="czhtyp != null">czhtyp,</if> <if test="waityp != null">waityp,</if> <if test="yohulx != null">yohulx,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="inr != null">#{inr,jdbcType=VARCHAR}, </if> <if test="ownref != null">#{ownref,jdbcType=VARCHAR}, </if> <if test="maimpz != null">#{maimpz,jdbcType=VARCHAR}, </if> <if test="chlibz != null">#{chlibz,jdbcType=VARCHAR}, </if> <if test="chlibz1 != null">#{chlibz1,jdbcType=VARCHAR}, </if> <if test="nam != null">#{nam,jdbcType=VARCHAR}, </if> <if test="pngcfx != null">#{pngcfx,jdbcType=VARCHAR}, </if> <if test="credat != null">#{credat,jdbcType=DATE}, </if> <if test="opndat != null">#{opndat,jdbcType=DATE}, </if> <if test="clsdat != null">#{clsdat,jdbcType=DATE}, </if> <if test="ver != null">#{ver,jdbcType=VARCHAR}, </if> <if test="branchinr != null">#{branchinr,jdbcType=VARCHAR}, </if> <if test="bchkeyinr != null">#{bchkeyinr,jdbcType=VARCHAR}, </if> <if test="qishrq != null">#{qishrq,jdbcType=DATE}, </if> <if test="qixiri != null">#{qixiri,jdbcType=DATE}, </if> <if test="baozfs != null">#{baozfs,jdbcType=VARCHAR}, </if> <if test="huobdh != null">#{huobdh,jdbcType=VARCHAR}, </if> <if test="dfhbdh != null">#{dfhbdh,jdbcType=VARCHAR}, </if> <if test="kehzwm != null">#{kehzwm,jdbcType=VARCHAR}, </if> <if test="jioyjc != null">#{jioyjc,jdbcType=DECIMAL}, </if> <if test="pngpjc != null">#{pngpjc,jdbcType=DECIMAL}, </if> <if test="wpngpc != null">#{wpngpc,jdbcType=DECIMAL}, </if> <if test="khwtxz != null">#{khwtxz,jdbcType=VARCHAR}, </if> <if test="weithl != null">#{weithl,jdbcType=DECIMAL}, </if> <if test="zdngll != null">#{zdngll,jdbcType=DECIMAL}, </if> <if test="jqmrhl != null">#{jqmrhl,jdbcType=DECIMAL}, </if> <if test="jqmchl != null">#{jqmchl,jdbcType=DECIMAL}, </if> <if test="cjiohl != null">#{cjiohl,jdbcType=DECIMAL}, </if> <if test="mairje != null">#{mairje,jdbcType=DECIMAL}, </if> <if test="maicje != null">#{maicje,jdbcType=DECIMAL}, </if> <if test="zha1zh != null">#{zha1zh,jdbcType=VARCHAR}, </if> <if test="zhangh != null">#{zhangh,jdbcType=VARCHAR}, </if> <if test="bzhjzh != null">#{bzhjzh,jdbcType=VARCHAR}, </if> <if test="caozbz != null">#{caozbz,jdbcType=VARCHAR}, </if> <if test="dxuhao != null">#{dxuhao,jdbcType=VARCHAR}, </if> <if test="bizhzh != null">#{bizhzh,jdbcType=VARCHAR}, </if> <if test="shfobz != null">#{shfobz,jdbcType=VARCHAR}, </if> <if test="ruzhjg != null">#{ruzhjg,jdbcType=VARCHAR}, </if> <if test="waitjm != null">#{waitjm,jdbcType=VARCHAR}, </if> <if test="benzbz != null">#{benzbz,jdbcType=VARCHAR}, </if> <if test="yewulx != null">#{yewulx,jdbcType=VARCHAR}, </if> <if test="zchbdh != null">#{zchbdh,jdbcType=VARCHAR}, </if> <if test="dianhh != null">#{dianhh,jdbcType=VARCHAR}, </if> <if test="chkrqi != null">#{chkrqi,jdbcType=DATE}, </if> <if test="daoqrq != null">#{daoqrq,jdbcType=DATE}, </if> <if test="dkrzzh != null">#{dkrzzh,jdbcType=VARCHAR}, </if> <if test="sxfbzh != null">#{sxfbzh,jdbcType=VARCHAR}, </if> <if test="bwqxzh != null">#{bwqxzh,jdbcType=VARCHAR}, </if> <if test="huo2dh != null">#{huo2dh,jdbcType=VARCHAR}, </if> <if test="remark != null">#{remark,jdbcType=VARCHAR}, </if> <if test="paijia != null">#{paijia,jdbcType=DECIMAL}, </if> <if test="ownusr != null">#{ownusr,jdbcType=VARCHAR}, </if> <if test="cshpct != null">#{cshpct,jdbcType=DECIMAL}, </if> <if test="relcrepct != null">#{relcrepct,jdbcType=DECIMAL}, </if> <if test="relcrecur != null">#{relcrecur,jdbcType=VARCHAR}, </if> <if test="relcreamt != null">#{relcreamt,jdbcType=DECIMAL}, </if> <if test="rskmit != null">#{rskmit,jdbcType=VARCHAR}, </if> <if test="zhungt != null">#{zhungt,jdbcType=VARCHAR}, </if> <if test="bujxje != null">#{bujxje,jdbcType=DECIMAL}, </if> <if test="cbdlje != null">#{cbdlje,jdbcType=DECIMAL}, </if> <if test="yewubh != null">#{yewubh,jdbcType=VARCHAR}, </if> <if test="preyewubh != null">#{preyewubh,jdbcType=VARCHAR}, </if> <if test="dfkhlb != null">#{dfkhlb,jdbcType=VARCHAR}, </if> <if test="waigtj != null">#{waigtj,jdbcType=VARCHAR}, </if> <if test="totcov != null">#{totcov,jdbcType=DECIMAL}, </if> <if test="relcshpct != null">#{relcshpct,jdbcType=DECIMAL}, </if> <if test="diaoqi != null">#{diaoqi,jdbcType=VARCHAR}, </if> <if test="picflg != null">#{picflg,jdbcType=VARCHAR}, </if> <if test="defrsn != null">#{defrsn,jdbcType=VARCHAR}, </if> <if test="ejsownref != null">#{ejsownref,jdbcType=VARCHAR}, </if> <if test="etyextkey != null">#{etyextkey,jdbcType=VARCHAR}, </if> <if test="maxmairje != null">#{maxmairje,jdbcType=DECIMAL}, </if> <if test="maxmaicje != null">#{maxmaicje,jdbcType=DECIMAL}, </if> <if test="kehhao != null">#{kehhao,jdbcType=VARCHAR}, </if> <if test="sfkzbz != null">#{sfkzbz,jdbcType=VARCHAR}, </if> <if test="rzdbflg != null">#{rzdbflg,jdbcType=VARCHAR}, </if> <if test="rzxybh != null">#{rzxybh,jdbcType=VARCHAR}, </if> <if test="txcode != null">#{txcode,jdbcType=VARCHAR}, </if> <if test="regno != null">#{regno,jdbcType=VARCHAR}, </if> <if test="rzhtyp != null">#{rzhtyp,jdbcType=VARCHAR}, </if> <if test="czhtyp != null">#{czhtyp,jdbcType=VARCHAR}, </if> <if test="waityp != null">#{waityp,jdbcType=VARCHAR}, </if> <if test="yohulx != null">#{yohulx,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective"> update jsd <set> <if test="ownref != null">ownref = #{ownref,jdbcType=VARCHAR},</if> <if test="maimpz != null">maimpz = #{maimpz,jdbcType=VARCHAR},</if> <if test="chlibz != null">chlibz = #{chlibz,jdbcType=VARCHAR},</if> <if test="chlibz1 != null">chlibz1 = #{chlibz1,jdbcType=VARCHAR},</if> <if test="nam != null">nam = #{nam,jdbcType=VARCHAR},</if> <if test="pngcfx != null">pngcfx = #{pngcfx,jdbcType=VARCHAR},</if> <if test="credat != null">credat = #{credat,jdbcType=DATE},</if> <if test="opndat != null">opndat = #{opndat,jdbcType=DATE},</if> <if test="clsdat != null">clsdat = #{clsdat,jdbcType=DATE},</if> <if test="ver != null">ver = #{ver,jdbcType=VARCHAR},</if> <if test="branchinr != null">branchinr = #{branchinr,jdbcType=VARCHAR},</if> <if test="bchkeyinr != null">bchkeyinr = #{bchkeyinr,jdbcType=VARCHAR},</if> <if test="qishrq != null">qishrq = #{qishrq,jdbcType=DATE},</if> <if test="qixiri != null">qixiri = #{qixiri,jdbcType=DATE},</if> <if test="baozfs != null">baozfs = #{baozfs,jdbcType=VARCHAR},</if> <if test="huobdh != null">huobdh = #{huobdh,jdbcType=VARCHAR},</if> <if test="dfhbdh != null">dfhbdh = #{dfhbdh,jdbcType=VARCHAR},</if> <if test="kehzwm != null">kehzwm = #{kehzwm,jdbcType=VARCHAR},</if> <if test="jioyjc != null">jioyjc = #{jioyjc,jdbcType=DECIMAL},</if> <if test="pngpjc != null">pngpjc = #{pngpjc,jdbcType=DECIMAL},</if> <if test="wpngpc != null">wpngpc = #{wpngpc,jdbcType=DECIMAL},</if> <if test="khwtxz != null">khwtxz = #{khwtxz,jdbcType=VARCHAR},</if> <if test="weithl != null">weithl = #{weithl,jdbcType=DECIMAL},</if> <if test="zdngll != null">zdngll = #{zdngll,jdbcType=DECIMAL},</if> <if test="jqmrhl != null">jqmrhl = #{jqmrhl,jdbcType=DECIMAL},</if> <if test="jqmchl != null">jqmchl = #{jqmchl,jdbcType=DECIMAL},</if> <if test="cjiohl != null">cjiohl = #{cjiohl,jdbcType=DECIMAL},</if> <if test="mairje != null">mairje = #{mairje,jdbcType=DECIMAL},</if> <if test="maicje != null">maicje = #{maicje,jdbcType=DECIMAL},</if> <if test="zha1zh != null">zha1zh = #{zha1zh,jdbcType=VARCHAR},</if> <if test="zhangh != null">zhangh = #{zhangh,jdbcType=VARCHAR},</if> <if test="bzhjzh != null">bzhjzh = #{bzhjzh,jdbcType=VARCHAR},</if> <if test="caozbz != null">caozbz = #{caozbz,jdbcType=VARCHAR},</if> <if test="dxuhao != null">dxuhao = #{dxuhao,jdbcType=VARCHAR},</if> <if test="bizhzh != null">bizhzh = #{bizhzh,jdbcType=VARCHAR},</if> <if test="shfobz != null">shfobz = #{shfobz,jdbcType=VARCHAR},</if> <if test="ruzhjg != null">ruzhjg = #{ruzhjg,jdbcType=VARCHAR},</if> <if test="waitjm != null">waitjm = #{waitjm,jdbcType=VARCHAR},</if> <if test="benzbz != null">benzbz = #{benzbz,jdbcType=VARCHAR},</if> <if test="yewulx != null">yewulx = #{yewulx,jdbcType=VARCHAR},</if> <if test="zchbdh != null">zchbdh = #{zchbdh,jdbcType=VARCHAR},</if> <if test="dianhh != null">dianhh = #{dianhh,jdbcType=VARCHAR},</if> <if test="chkrqi != null">chkrqi = #{chkrqi,jdbcType=DATE},</if> <if test="daoqrq != null">daoqrq = #{daoqrq,jdbcType=DATE},</if> <if test="dkrzzh != null">dkrzzh = #{dkrzzh,jdbcType=VARCHAR},</if> <if test="sxfbzh != null">sxfbzh = #{sxfbzh,jdbcType=VARCHAR},</if> <if test="bwqxzh != null">bwqxzh = #{bwqxzh,jdbcType=VARCHAR},</if> <if test="huo2dh != null">huo2dh = #{huo2dh,jdbcType=VARCHAR},</if> <if test="remark != null">remark = #{remark,jdbcType=VARCHAR},</if> <if test="paijia != null">paijia = #{paijia,jdbcType=DECIMAL},</if> <if test="ownusr != null">ownusr = #{ownusr,jdbcType=VARCHAR},</if> <if test="cshpct != null">cshpct = #{cshpct,jdbcType=DECIMAL},</if> <if test="relcrepct != null">relcrepct = #{relcrepct,jdbcType=DECIMAL},</if> <if test="relcrecur != null">relcrecur = #{relcrecur,jdbcType=VARCHAR},</if> <if test="relcreamt != null">relcreamt = #{relcreamt,jdbcType=DECIMAL},</if> <if test="rskmit != null">rskmit = #{rskmit,jdbcType=VARCHAR},</if> <if test="zhungt != null">zhungt = #{zhungt,jdbcType=VARCHAR},</if> <if test="bujxje != null">bujxje = #{bujxje,jdbcType=DECIMAL},</if> <if test="cbdlje != null">cbdlje = #{cbdlje,jdbcType=DECIMAL},</if> <if test="yewubh != null">yewubh = #{yewubh,jdbcType=VARCHAR},</if> <if test="preyewubh != null">preyewubh = #{preyewubh,jdbcType=VARCHAR},</if> <if test="dfkhlb != null">dfkhlb = #{dfkhlb,jdbcType=VARCHAR},</if> <if test="waigtj != null">waigtj = #{waigtj,jdbcType=VARCHAR},</if> <if test="totcov != null">totcov = #{totcov,jdbcType=DECIMAL},</if> <if test="relcshpct != null">relcshpct = #{relcshpct,jdbcType=DECIMAL},</if> <if test="diaoqi != null">diaoqi = #{diaoqi,jdbcType=VARCHAR},</if> <if test="picflg != null">picflg = #{picflg,jdbcType=VARCHAR},</if> <if test="defrsn != null">defrsn = #{defrsn,jdbcType=VARCHAR},</if> <if test="ejsownref != null">ejsownref = #{ejsownref,jdbcType=VARCHAR},</if> <if test="etyextkey != null">etyextkey = #{etyextkey,jdbcType=VARCHAR},</if> <if test="maxmairje != null">maxmairje = #{maxmairje,jdbcType=DECIMAL},</if> <if test="maxmaicje != null">maxmaicje = #{maxmaicje,jdbcType=DECIMAL},</if> <if test="kehhao != null">kehhao = #{kehhao,jdbcType=VARCHAR},</if> <if test="sfkzbz != null">sfkzbz = #{sfkzbz,jdbcType=VARCHAR},</if> <if test="rzdbflg != null">rzdbflg = #{rzdbflg,jdbcType=VARCHAR},</if> <if test="rzxybh != null">rzxybh = #{rzxybh,jdbcType=VARCHAR},</if> <if test="txcode != null">txcode = #{txcode,jdbcType=VARCHAR},</if> <if test="regno != null">regno = #{regno,jdbcType=VARCHAR},</if> <if test="rzhtyp != null">rzhtyp = #{rzhtyp,jdbcType=VARCHAR},</if> <if test="czhtyp != null">czhtyp = #{czhtyp,jdbcType=VARCHAR},</if> <if test="waityp != null">waityp = #{waityp,jdbcType=VARCHAR},</if> <if test="yohulx != null">yohulx = #{yohulx,jdbcType=VARCHAR},</if> </set> where inr = #{inr,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey"> update jsd <set> ownref = #{ownref,jdbcType=VARCHAR}, maimpz = #{maimpz,jdbcType=VARCHAR}, chlibz = #{chlibz,jdbcType=VARCHAR}, chlibz1 = #{chlibz1,jdbcType=VARCHAR}, nam = #{nam,jdbcType=VARCHAR}, pngcfx = #{pngcfx,jdbcType=VARCHAR}, credat = #{credat,jdbcType=DATE}, opndat = #{opndat,jdbcType=DATE}, clsdat = #{clsdat,jdbcType=DATE}, ver = #{ver,jdbcType=VARCHAR}, branchinr = #{branchinr,jdbcType=VARCHAR}, bchkeyinr = #{bchkeyinr,jdbcType=VARCHAR}, qishrq = #{qishrq,jdbcType=DATE}, qixiri = #{qixiri,jdbcType=DATE}, baozfs = #{baozfs,jdbcType=VARCHAR}, huobdh = #{huobdh,jdbcType=VARCHAR}, dfhbdh = #{dfhbdh,jdbcType=VARCHAR}, kehzwm = #{kehzwm,jdbcType=VARCHAR}, jioyjc = #{jioyjc,jdbcType=DECIMAL}, pngpjc = #{pngpjc,jdbcType=DECIMAL}, wpngpc = #{wpngpc,jdbcType=DECIMAL}, khwtxz = #{khwtxz,jdbcType=VARCHAR}, weithl = #{weithl,jdbcType=DECIMAL}, zdngll = #{zdngll,jdbcType=DECIMAL}, jqmrhl = #{jqmrhl,jdbcType=DECIMAL}, jqmchl = #{jqmchl,jdbcType=DECIMAL}, cjiohl = #{cjiohl,jdbcType=DECIMAL}, mairje = #{mairje,jdbcType=DECIMAL}, maicje = #{maicje,jdbcType=DECIMAL}, zha1zh = #{zha1zh,jdbcType=VARCHAR}, zhangh = #{zhangh,jdbcType=VARCHAR}, bzhjzh = #{bzhjzh,jdbcType=VARCHAR}, caozbz = #{caozbz,jdbcType=VARCHAR}, dxuhao = #{dxuhao,jdbcType=VARCHAR}, bizhzh = #{bizhzh,jdbcType=VARCHAR}, shfobz = #{shfobz,jdbcType=VARCHAR}, ruzhjg = #{ruzhjg,jdbcType=VARCHAR}, waitjm = #{waitjm,jdbcType=VARCHAR}, benzbz = #{benzbz,jdbcType=VARCHAR}, yewulx = #{yewulx,jdbcType=VARCHAR}, zchbdh = #{zchbdh,jdbcType=VARCHAR}, dianhh = #{dianhh,jdbcType=VARCHAR}, chkrqi = #{chkrqi,jdbcType=DATE}, daoqrq = #{daoqrq,jdbcType=DATE}, dkrzzh = #{dkrzzh,jdbcType=VARCHAR}, sxfbzh = #{sxfbzh,jdbcType=VARCHAR}, bwqxzh = #{bwqxzh,jdbcType=VARCHAR}, huo2dh = #{huo2dh,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR}, paijia = #{paijia,jdbcType=DECIMAL}, ownusr = #{ownusr,jdbcType=VARCHAR}, cshpct = #{cshpct,jdbcType=DECIMAL}, relcrepct = #{relcrepct,jdbcType=DECIMAL}, relcrecur = #{relcrecur,jdbcType=VARCHAR}, relcreamt = #{relcreamt,jdbcType=DECIMAL}, rskmit = #{rskmit,jdbcType=VARCHAR}, zhungt = #{zhungt,jdbcType=VARCHAR}, bujxje = #{bujxje,jdbcType=DECIMAL}, cbdlje = #{cbdlje,jdbcType=DECIMAL}, yewubh = #{yewubh,jdbcType=VARCHAR}, preyewubh = #{preyewubh,jdbcType=VARCHAR}, dfkhlb = #{dfkhlb,jdbcType=VARCHAR}, waigtj = #{waigtj,jdbcType=VARCHAR}, totcov = #{totcov,jdbcType=DECIMAL}, relcshpct = #{relcshpct,jdbcType=DECIMAL}, diaoqi = #{diaoqi,jdbcType=VARCHAR}, picflg = #{picflg,jdbcType=VARCHAR}, defrsn = #{defrsn,jdbcType=VARCHAR}, ejsownref = #{ejsownref,jdbcType=VARCHAR}, etyextkey = #{etyextkey,jdbcType=VARCHAR}, maxmairje = #{maxmairje,jdbcType=DECIMAL}, maxmaicje = #{maxmaicje,jdbcType=DECIMAL}, kehhao = #{kehhao,jdbcType=VARCHAR}, sfkzbz = #{sfkzbz,jdbcType=VARCHAR}, rzdbflg = #{rzdbflg,jdbcType=VARCHAR}, rzxybh = #{rzxybh,jdbcType=VARCHAR}, txcode = #{txcode,jdbcType=VARCHAR}, regno = #{regno,jdbcType=VARCHAR}, rzhtyp = #{rzhtyp,jdbcType=VARCHAR}, czhtyp = #{czhtyp,jdbcType=VARCHAR}, waityp = #{waityp,jdbcType=VARCHAR}, yohulx = #{yohulx,jdbcType=VARCHAR}, </set> where inr = #{inr,jdbcType=VARCHAR} </update> <select id="queryJsd" resultType="com.brilliance.isc.vo.derivative.JsdWithPtsCbbResponseVo"> select jsd.*, cbb.cur cur, cbb.amt amt,pts.extkey extkey,pts.nam aplnam from jsd left join cbb on cbb.OBJINR = jsd.inr and cbb.OBJTYP = 'JSD' and cbb.cbc = 'MAXSUM' and cbb.extid = 'AMT1' and cbb.enddat = '2299-12-31' left join pts on pts.OBJINR = jsd.inr and pts.OBJTYP = 'JSD' and pts.rol = 'APL' where 1 = 1 <!--机构隔离--> <if test="bchinr != null and bchinr != '' "> AND jsd.bchkeyinr = #{bchinr} </if> <!--业务编号--> <if test="seaownref != null and seaownref != ''"> AND UPPER(jsd.OWNREF) LIKE concat(concat('%', UPPER(#{seaownref})), '%') </if> <!--日期--> <if test="opndatfrom != null and opndatfrom != ''"> AND jsd.credat >= #{opndatfrom} </if> <if test="opndatto != null and opndatto != ''"> AND jsd.credat <= #{opndatto} </if> <!--核心业务编号--> <if test="zzownref != null and zzownref != ''"> AND UPPER(jsd.YEWUBH) LIKE concat(concat('%', UPPER(#{zzownref})), '%') </if> <!--业务状态 0-交割 1-待交割 2-违约 --> <if test="seasta != null and seasta != ''"> <if test="seasta == '1'.toString()"> AND (jsd.BAOZFS = '1' or jsd.BAOZFS = '2') AND (jsd.chlibz1 = '' or jsd.chlibz1 is null) </if> <if test="seasta == '0'.toString() or seasta == '2'.toString()"> AND jsd.chlibz1 = #{seasta} </if> </if> <!--业务类型 0-即期结售汇 1-即期外汇买卖 2-T+1/T+2 --> <if test="seatyp != '' and seatyp != null"> <if test="seatyp == '0'.toString"> AND jsd.BAOZFS = '0' AND (jsd.HUOBDH = 'CNY' or jsd.DFHBDH = 'CNY') </if> <if test="seatyp == '1'.toString"> AND jsd.BAOZFS = '0' AND (jsd.HUOBDH != 'CNY' and jsd.DFHBDH != 'CNY') </if> <if test="seatyp == '2'.toString"> AND (jsd.BAOZFS = '1' or jsd.BAOZFS = '2') </if> </if> <!--客户号/名称 --> <if test="searef != null and searef != ''"> and exists ( select 1 from PTS,PTY where jsd.INR = PTS.OBJINR AND PTY.INR = PTS.PTYINR AND PTS.OBJTYP = 'JSD' AND PTS.ROL = 'APL' AND ( PTS.EXTKEY LIKE concat(concat('%', #{searef}), '%') or PTS.NAM LIKE concat(concat('%', #{searef}), '%') or PTS.CNNAM LIKE concat(concat('%', #{searef}), '%') or PTS.ENNAM LIKE concat(concat('%', #{searef}), '%') or PTY.NAM LIKE concat(concat('%', #{searef}), '%') ) ) </if> <!-- 币种以及金额--> <if test="seacur != null and seacur != ''"> AND EXISTS ( select 1 from CBB INFCONCBS where UPPER(INFCONCBS.CUR ) = UPPER(#{seacur}) <if test="seaamtfr != null and seaamtfr != ''"> AND INFCONCBS.AMT >= #{seaamtfr} </if> <if test="seaamtto != null and seaamtto != ''"> AND INFCONCBS.AMT <= #{seaamtto} </if> AND (INFCONCBS.OBJTYP = 'JSD' AND INFCONCBS.OBJINR = JSD.INR AND (INFCONCBS.BEGDAT <= STR_TO_DATE('2299-12-30', '%Y-%m-%d') AND INFCONCBS.ENDDAT > STR_TO_DATE('2299-12-30', '%Y-%m-%d')) AND INFCONCBS.EXTID IN (' ', 'AMT1') AND INFCONCBS.CBC IN ('MAXSUM', 'PRESUM', 'NOMSUM', 'OPN')) ) </if> <!--是否闭卷 --> <if test="isClosed != null and isClosed != ''"> <if test="isClosed == 'Y'.toString()"> and jsd.clsdat is not null </if> <if test="isClosed == 'N'.toString()"> and jsd.clsdat is null </if> </if> order by jsd.credat desc , jsd.ownref desc </select> <select id="selectByWhere" resultMap="BaseResultMap"> select <include refid="Base_Column_List"></include> from jsd where 1=1 <if test="ownref != null and ownref !=''">and ownref = #{ownref,jdbcType=VARCHAR}</if> order by credat desc limit 1 </select> <select id="selectByYewbh" resultMap="BaseResultMap"> select <include refid="Base_Column_List"></include> from jsd where yewubh= #{yewubh} </select> <select id="selectByInr" resultMap="BaseResultMap"> select <include refid="Base_Column_List"/> from jsd where inr = #{inr,jdbcType=VARCHAR} </select> <select id="jsdReport" resultType="com.brilliance.isc.vo.report.JsdReportVo"> select jsd.*, bch2.branch, bch2.lhanam bchname, case when jsd.BRANCHINR = jsd.BCHKEYINR then '' else bch1.branch end zbranch, case when jsd.BRANCHINR = jsd.BCHKEYINR then '' else bch1.bchname end zbchname, pty.extkey,pty.nam1 ptyname, jsd.QIXIRI -jsd.OPNDAT tenmaxday, jst.QIXIRI - jsd.opndat tenday, jst.QIXIRI jstqixiri, jst.pngcfx jstpngcfx, jst.huobdh jsthuobdh, jst.maxmairje jstmaxmairje, jst.cjiohl jstcjiohl, jst.jqmchl jstjqmchl, jst.jqmrhl jstjqmrhl, jst.benzbz jstbenzbz, jst.qishrq jstqishrq, jst.dfhbdh jstdfhbdh, jst.maxmaicje jstmaxmaicje from bch bch1,bch bch2, pty,pts,trn,jst,jsd where <choose> <when test="rpttyp == 'B'.toString()"> jsd.maimpz in ('1', '4', '5') </when> <when test="rpttyp == 'C'.toString()"> jsd.maimpz in ('6','7') </when> <when test="rpttyp == 'E'.toString()"> jsd.maimpz='2' </when> <when test="rpttyp == 'F'.toString()"> jsd.maimpz='3' </when> </choose> and bch1.inr = jsd.branchinr and bch2.inr = jsd.bchkeyinr and jst.inr = jsd.inr and pts.objinr = jsd.inr and pts.objtyp = 'JSD' and pts.rol = 'APL' and pty.inr = pts.ptyinr and jsd.clsdat is null and trn.objtyp = 'JSD' and trn.objinr = jsd.inr and TRN.INIFRM in('JSTOPN','JSTOPT','JSTOPM') and trn.relflg = 'R' and jsd.CHLIBZ = '2' <if test="bchLst != null and bchLst.size() >0 and branch != '1000' "> and jsd.BRANCHINR in <foreach item="bch" collection="bchLst" open="(" separator="," close=")"> #{bch.inr} </foreach> </if> <if test="begdat != null and begdat != ''"> and jsd.OPNDAT >= #{begdat} </if> <if test="enddat != null and begdat != ''"> and jsd.OPNDAT <= #{enddat} </if> </select> <select id="jsdReportForIJ" resultType="com.brilliance.isc.vo.report.JsdReportVo"> select jsd.*, bch2.branch, bch2.lhanam bchname, case when jsd.BRANCHINR = jsd.BCHKEYINR then '' else bch1.branch end zbranch, case when jsd.BRANCHINR = jsd.BCHKEYINR then '' else bch1.bchname end zbchname, jst.QIXIRI jstqixiri, jst.DFHBDH jstdfhbdh, jst.MAICJE jstmaicje, jst.HUOBDH jsthuobdh, jst.MAIRJE jstmairje, jst.CJIOHL jstcjiohl, jst.JQMCHL jstjqmchl, jst.JQMRHL jstjqmrhl, jst.BENZBZ jstbenzbz, jst.QISHRQ jstqishrq, jst.PNGCFX jstpngcfx, jst.QIXIRI - jsd.opndat tenday, jsd.QIXIRI - jsd.opndat tenmaxday from bch bch1,bch bch2,jsd,jst,pty,pts where <if test="rpttyp == 'I'.toString()"> jsd.maimpz != '3' and jsd.baozfs != '0' and jsd.ZHUNGT != '0' and jsd.ZHUNGT != '1' and jsd.ZHUNGT != '3' and jsd.ZHUNGT != '4' </if> <if test="rpttyp == 'J'.toString()"> jsd.maimpz = '3' and jst.ZHUNGT != '0' and jst.ZHUNGT != '1' and jst.ZHUNGT != '3' and jst.ZHUNGT != '4' </if> and bch1.inr = jsd.branchinr and bch2.inr = jsd.bchkeyinr and jsd.inr = jst.inr and pts.objinr = jsd.inr and pts.objtyp = 'JSD' and pts.rol = 'APL' and pty.inr = pts.ptyinr and jsd.clsdat is null and (jst.MAICJE > 0 or jst.MAIRJE > 0) <if test="bchLst != null and bchLst.size() >0 and branch != '1000' "> and jsd.BRANCHINR in <foreach item="bch" collection="bchLst" open="(" separator="," close=")"> #{bch.inr} </foreach> </if> </select> <select id="selectByOwnref" resultMap="BaseResultMap"> select <include refid="Base_Column_List"/> from jsd where ownref = #{ownref,jdbcType=VARCHAR} </select> </mapper>