|
|
@@ -0,0 +1,329 @@
|
|
|
+<?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.usoftchina.saas.document.mapper.BankinformationMapper" >
|
|
|
+ <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.po.Bankinformation" >
|
|
|
+ <id column="bk_id" property="bkId" jdbcType="INTEGER" />
|
|
|
+ <result column="bk_bankcode" property="bkBankcode" jdbcType="VARCHAR" />
|
|
|
+ <result column="bk_bankname" property="bkBankname" jdbcType="VARCHAR" />
|
|
|
+ <result column="bk_date" property="bkDate" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="bk_type" property="bkType" jdbcType="VARCHAR" />
|
|
|
+ <result column="bk_beginamount" property="bkBeginamount" jdbcType="DOUBLE" />
|
|
|
+ <result column="bk_thisamount" property="bkThisamount" jdbcType="DOUBLE" />
|
|
|
+ <result column="bk_status" property="bkStatus" jdbcType="VARCHAR" />
|
|
|
+ <result column="bk_statuscode" property="bkStatuscode" jdbcType="VARCHAR" />
|
|
|
+ <result column="bk_recorderid" property="bkRecorderid" jdbcType="INTEGER" />
|
|
|
+ <result column="bk_recorder" property="bkRecorder" jdbcType="VARCHAR" />
|
|
|
+ <result column="bk_recorddate" property="bkRecorddate" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="bk_ym" property="bkYm" jdbcType="INTEGER" />
|
|
|
+ <result column="companyid" property="companyid" jdbcType="INTEGER" />
|
|
|
+ <result column="updaterid" property="updaterid" jdbcType="INTEGER" />
|
|
|
+ <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="bk_text1" property="bkText1" jdbcType="VARCHAR" />
|
|
|
+ <result column="bk_text2" property="bkText2" jdbcType="VARCHAR" />
|
|
|
+ <result column="bk_text3" property="bkText3" jdbcType="VARCHAR" />
|
|
|
+ <result column="bk_text4" property="bkText4" jdbcType="VARCHAR" />
|
|
|
+ <result column="bk_text5" property="bkText5" jdbcType="VARCHAR" />
|
|
|
+ </resultMap>
|
|
|
+ <resultMap id="ResultMapWithBLOBs" type="com.usoftchina.saas.document.po.Bankinformation" extends="BaseResultMap" >
|
|
|
+ <result column="bk_remark" property="bkRemark" jdbcType="LONGVARCHAR" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List" >
|
|
|
+ bk_id, bk_bankcode, bk_bankname, bk_date, bk_type, bk_beginamount, bk_thisamount,
|
|
|
+ bk_status, bk_statuscode, bk_recorderid, bk_recorder, bk_recorddate, bk_ym, companyid,
|
|
|
+ updaterid, updatetime, bk_text1, bk_text2, bk_text3, bk_text4, bk_text5
|
|
|
+ </sql>
|
|
|
+ <sql id="Blob_Column_List" >
|
|
|
+ bk_remark
|
|
|
+ </sql>
|
|
|
+ <select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
+ from bankinformation
|
|
|
+ where bk_id = #{bkId,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
+ delete from bankinformation
|
|
|
+ where bk_id = #{bkId,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.usoftchina.saas.document.po.Bankinformation" >
|
|
|
+ insert into bankinformation (bk_id, bk_bankcode, bk_bankname,
|
|
|
+ bk_date, bk_type, bk_beginamount,
|
|
|
+ bk_thisamount, bk_status, bk_statuscode,
|
|
|
+ bk_recorderid, bk_recorder, bk_recorddate,
|
|
|
+ bk_ym, companyid, updaterid,
|
|
|
+ updatetime, bk_text1, bk_text2,
|
|
|
+ bk_text3, bk_text4, bk_text5,
|
|
|
+ bk_remark)
|
|
|
+ values (#{bkId,jdbcType=INTEGER}, #{bkBankcode,jdbcType=VARCHAR}, #{bkBankname,jdbcType=VARCHAR},
|
|
|
+ #{bkDate,jdbcType=TIMESTAMP}, #{bkType,jdbcType=VARCHAR}, #{bkBeginamount,jdbcType=DOUBLE},
|
|
|
+ #{bkThisamount,jdbcType=DOUBLE}, #{bkStatus,jdbcType=VARCHAR}, #{bkStatuscode,jdbcType=VARCHAR},
|
|
|
+ #{bkRecorderid,jdbcType=INTEGER}, #{bkRecorder,jdbcType=VARCHAR}, #{bkRecorddate,jdbcType=TIMESTAMP},
|
|
|
+ #{bkYm,jdbcType=INTEGER}, #{companyid,jdbcType=INTEGER}, #{updaterid,jdbcType=INTEGER},
|
|
|
+ #{updatetime,jdbcType=TIMESTAMP}, #{bkText1,jdbcType=VARCHAR}, #{bkText2,jdbcType=VARCHAR},
|
|
|
+ #{bkText3,jdbcType=VARCHAR}, #{bkText4,jdbcType=VARCHAR}, #{bkText5,jdbcType=VARCHAR},
|
|
|
+ #{bkRemark,jdbcType=LONGVARCHAR})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.usoftchina.saas.document.po.Bankinformation" >
|
|
|
+ insert into bankinformation
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="bkId != null" >
|
|
|
+ bk_id,
|
|
|
+ </if>
|
|
|
+ <if test="bkBankcode != null" >
|
|
|
+ bk_bankcode,
|
|
|
+ </if>
|
|
|
+ <if test="bkBankname != null" >
|
|
|
+ bk_bankname,
|
|
|
+ </if>
|
|
|
+ <if test="bkDate != null" >
|
|
|
+ bk_date,
|
|
|
+ </if>
|
|
|
+ <if test="bkType != null" >
|
|
|
+ bk_type,
|
|
|
+ </if>
|
|
|
+ <if test="bkBeginamount != null" >
|
|
|
+ bk_beginamount,
|
|
|
+ </if>
|
|
|
+ <if test="bkThisamount != null" >
|
|
|
+ bk_thisamount,
|
|
|
+ </if>
|
|
|
+ <if test="bkStatus != null" >
|
|
|
+ bk_status,
|
|
|
+ </if>
|
|
|
+ <if test="bkStatuscode != null" >
|
|
|
+ bk_statuscode,
|
|
|
+ </if>
|
|
|
+ <if test="bkRecorderid != null" >
|
|
|
+ bk_recorderid,
|
|
|
+ </if>
|
|
|
+ <if test="bkRecorder != null" >
|
|
|
+ bk_recorder,
|
|
|
+ </if>
|
|
|
+ <if test="bkRecorddate != null" >
|
|
|
+ bk_recorddate,
|
|
|
+ </if>
|
|
|
+ <if test="bkYm != null" >
|
|
|
+ bk_ym,
|
|
|
+ </if>
|
|
|
+ <if test="companyid != null" >
|
|
|
+ companyid,
|
|
|
+ </if>
|
|
|
+ <if test="updaterid != null" >
|
|
|
+ updaterid,
|
|
|
+ </if>
|
|
|
+ <if test="updatetime != null" >
|
|
|
+ updatetime,
|
|
|
+ </if>
|
|
|
+ <if test="bkText1 != null" >
|
|
|
+ bk_text1,
|
|
|
+ </if>
|
|
|
+ <if test="bkText2 != null" >
|
|
|
+ bk_text2,
|
|
|
+ </if>
|
|
|
+ <if test="bkText3 != null" >
|
|
|
+ bk_text3,
|
|
|
+ </if>
|
|
|
+ <if test="bkText4 != null" >
|
|
|
+ bk_text4,
|
|
|
+ </if>
|
|
|
+ <if test="bkText5 != null" >
|
|
|
+ bk_text5,
|
|
|
+ </if>
|
|
|
+ <if test="bkRemark != null" >
|
|
|
+ bk_remark,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="bkId != null" >
|
|
|
+ #{bkId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bkBankcode != null" >
|
|
|
+ #{bkBankcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkBankname != null" >
|
|
|
+ #{bkBankname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkDate != null" >
|
|
|
+ #{bkDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bkType != null" >
|
|
|
+ #{bkType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkBeginamount != null" >
|
|
|
+ #{bkBeginamount,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="bkThisamount != null" >
|
|
|
+ #{bkThisamount,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="bkStatus != null" >
|
|
|
+ #{bkStatus,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkStatuscode != null" >
|
|
|
+ #{bkStatuscode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkRecorderid != null" >
|
|
|
+ #{bkRecorderid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bkRecorder != null" >
|
|
|
+ #{bkRecorder,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkRecorddate != null" >
|
|
|
+ #{bkRecorddate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bkYm != null" >
|
|
|
+ #{bkYm,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="companyid != null" >
|
|
|
+ #{companyid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updaterid != null" >
|
|
|
+ #{updaterid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updatetime != null" >
|
|
|
+ #{updatetime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bkText1 != null" >
|
|
|
+ #{bkText1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkText2 != null" >
|
|
|
+ #{bkText2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkText3 != null" >
|
|
|
+ #{bkText3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkText4 != null" >
|
|
|
+ #{bkText4,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkText5 != null" >
|
|
|
+ #{bkText5,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkRemark != null" >
|
|
|
+ #{bkRemark,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.document.po.Bankinformation" >
|
|
|
+ update bankinformation
|
|
|
+ <set >
|
|
|
+ <if test="bkBankcode != null" >
|
|
|
+ bk_bankcode = #{bkBankcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkBankname != null" >
|
|
|
+ bk_bankname = #{bkBankname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkDate != null" >
|
|
|
+ bk_date = #{bkDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bkType != null" >
|
|
|
+ bk_type = #{bkType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkBeginamount != null" >
|
|
|
+ bk_beginamount = #{bkBeginamount,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="bkThisamount != null" >
|
|
|
+ bk_thisamount = #{bkThisamount,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="bkStatus != null" >
|
|
|
+ bk_status = #{bkStatus,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkStatuscode != null" >
|
|
|
+ bk_statuscode = #{bkStatuscode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkRecorderid != null" >
|
|
|
+ bk_recorderid = #{bkRecorderid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bkRecorder != null" >
|
|
|
+ bk_recorder = #{bkRecorder,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkRecorddate != null" >
|
|
|
+ bk_recorddate = #{bkRecorddate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bkYm != null" >
|
|
|
+ bk_ym = #{bkYm,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="companyid != null" >
|
|
|
+ companyid = #{companyid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updaterid != null" >
|
|
|
+ updaterid = #{updaterid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updatetime != null" >
|
|
|
+ updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bkText1 != null" >
|
|
|
+ bk_text1 = #{bkText1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkText2 != null" >
|
|
|
+ bk_text2 = #{bkText2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkText3 != null" >
|
|
|
+ bk_text3 = #{bkText3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkText4 != null" >
|
|
|
+ bk_text4 = #{bkText4,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkText5 != null" >
|
|
|
+ bk_text5 = #{bkText5,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bkRemark != null" >
|
|
|
+ bk_remark = #{bkRemark,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where bk_id = #{bkId,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.usoftchina.saas.document.po.Bankinformation" >
|
|
|
+ update bankinformation
|
|
|
+ set bk_bankcode = #{bkBankcode,jdbcType=VARCHAR},
|
|
|
+ bk_bankname = #{bkBankname,jdbcType=VARCHAR},
|
|
|
+ bk_date = #{bkDate,jdbcType=TIMESTAMP},
|
|
|
+ bk_type = #{bkType,jdbcType=VARCHAR},
|
|
|
+ bk_beginamount = #{bkBeginamount,jdbcType=DOUBLE},
|
|
|
+ bk_thisamount = #{bkThisamount,jdbcType=DOUBLE},
|
|
|
+ bk_status = #{bkStatus,jdbcType=VARCHAR},
|
|
|
+ bk_statuscode = #{bkStatuscode,jdbcType=VARCHAR},
|
|
|
+ bk_recorderid = #{bkRecorderid,jdbcType=INTEGER},
|
|
|
+ bk_recorder = #{bkRecorder,jdbcType=VARCHAR},
|
|
|
+ bk_recorddate = #{bkRecorddate,jdbcType=TIMESTAMP},
|
|
|
+ bk_ym = #{bkYm,jdbcType=INTEGER},
|
|
|
+ companyid = #{companyid,jdbcType=INTEGER},
|
|
|
+ updaterid = #{updaterid,jdbcType=INTEGER},
|
|
|
+ updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
|
+ bk_text1 = #{bkText1,jdbcType=VARCHAR},
|
|
|
+ bk_text2 = #{bkText2,jdbcType=VARCHAR},
|
|
|
+ bk_text3 = #{bkText3,jdbcType=VARCHAR},
|
|
|
+ bk_text4 = #{bkText4,jdbcType=VARCHAR},
|
|
|
+ bk_text5 = #{bkText5,jdbcType=VARCHAR},
|
|
|
+ bk_remark = #{bkRemark,jdbcType=LONGVARCHAR}
|
|
|
+ where bk_id = #{bkId,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.document.po.Bankinformation" >
|
|
|
+ update bankinformation
|
|
|
+ set bk_bankcode = #{bkBankcode,jdbcType=VARCHAR},
|
|
|
+ bk_bankname = #{bkBankname,jdbcType=VARCHAR},
|
|
|
+ bk_date = #{bkDate,jdbcType=TIMESTAMP},
|
|
|
+ bk_type = #{bkType,jdbcType=VARCHAR},
|
|
|
+ bk_beginamount = #{bkBeginamount,jdbcType=DOUBLE},
|
|
|
+ bk_thisamount = #{bkThisamount,jdbcType=DOUBLE},
|
|
|
+ bk_status = #{bkStatus,jdbcType=VARCHAR},
|
|
|
+ bk_statuscode = #{bkStatuscode,jdbcType=VARCHAR},
|
|
|
+ bk_recorderid = #{bkRecorderid,jdbcType=INTEGER},
|
|
|
+ bk_recorder = #{bkRecorder,jdbcType=VARCHAR},
|
|
|
+ bk_recorddate = #{bkRecorddate,jdbcType=TIMESTAMP},
|
|
|
+ bk_ym = #{bkYm,jdbcType=INTEGER},
|
|
|
+ companyid = #{companyid,jdbcType=INTEGER},
|
|
|
+ updaterid = #{updaterid,jdbcType=INTEGER},
|
|
|
+ updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
|
+ bk_text1 = #{bkText1,jdbcType=VARCHAR},
|
|
|
+ bk_text2 = #{bkText2,jdbcType=VARCHAR},
|
|
|
+ bk_text3 = #{bkText3,jdbcType=VARCHAR},
|
|
|
+ bk_text4 = #{bkText4,jdbcType=VARCHAR},
|
|
|
+ bk_text5 = #{bkText5,jdbcType=VARCHAR}
|
|
|
+ where bk_id = #{bkId,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <select id="selectAll" resultMap="BaseResultMap">
|
|
|
+ SELECT * FROM bankinformation
|
|
|
+ </select>
|
|
|
+</mapper>
|