|
|
@@ -0,0 +1,259 @@
|
|
|
+<?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.money.mapper.PaybalancedetailMapper" >
|
|
|
+ <resultMap id="BaseResultMap" type="com.usoftchina.saas.money.po.Paybalancedetail" >
|
|
|
+ <id column="pbd_id" property="pbdId" jdbcType="INTEGER" />
|
|
|
+ <result column="pbd_pbid" property="pbdPbid" jdbcType="INTEGER" />
|
|
|
+ <result column="pbd_detno" property="pbdDetno" jdbcType="INTEGER" />
|
|
|
+ <result column="pbd_ym" property="pbdYm" jdbcType="INTEGER" />
|
|
|
+ <result column="pbd_sild" property="pbdSild" jdbcType="INTEGER" />
|
|
|
+ <result column="pbd_slcode" property="pbdSlcode" jdbcType="VARCHAR" />
|
|
|
+ <result column="pbd_slkind" property="pbdSlkind" jdbcType="VARCHAR" />
|
|
|
+ <result column="pbd_sldate" property="pbdSldate" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="pbd_amount" property="pbdAmount" jdbcType="DOUBLE" />
|
|
|
+ <result column="pbd_nowbalance" property="pbdNowbalance" jdbcType="DOUBLE" />
|
|
|
+ <result column="pbd_remark" property="pbdRemark" jdbcType="VARCHAR" />
|
|
|
+ <result column="companyId" property="companyid" jdbcType="INTEGER" />
|
|
|
+ <result column="updaterId" property="updaterid" jdbcType="INTEGER" />
|
|
|
+ <result column="updatedate" property="updatedate" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="pbd_text1" property="pbdText1" jdbcType="VARCHAR" />
|
|
|
+ <result column="pbd_text2" property="pbdText2" jdbcType="VARCHAR" />
|
|
|
+ <result column="pbd_text3" property="pbdText3" jdbcType="VARCHAR" />
|
|
|
+ <result column="pbd_text4" property="pbdText4" jdbcType="VARCHAR" />
|
|
|
+ <result column="pbd_text5" property="pbdText5" jdbcType="VARCHAR" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List" >
|
|
|
+ pbd_id, pbd_pbid, pbd_detno, pbd_ym, pbd_sild, pbd_slcode, pbd_slkind, pbd_sldate,
|
|
|
+ pbd_amount, pbd_nowbalance, pbd_remark, companyId, updaterId, updatedate, pbd_text1,
|
|
|
+ pbd_text2, pbd_text3, pbd_text4, pbd_text5
|
|
|
+ </sql>
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from paybalancedetail
|
|
|
+ where pbd_id = #{pbdId,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
+ delete from paybalancedetail
|
|
|
+ where pbd_id = #{pbdId,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.usoftchina.saas.money.po.Paybalancedetail" >
|
|
|
+ insert into paybalancedetail (pbd_id, pbd_pbid, pbd_detno,
|
|
|
+ pbd_ym, pbd_sild, pbd_slcode,
|
|
|
+ pbd_slkind, pbd_sldate, pbd_amount,
|
|
|
+ pbd_nowbalance, pbd_remark, companyId,
|
|
|
+ updaterId, updatedate, pbd_text1,
|
|
|
+ pbd_text2, pbd_text3, pbd_text4,
|
|
|
+ pbd_text5)
|
|
|
+ values (#{pbdId,jdbcType=INTEGER}, #{pbdPbid,jdbcType=INTEGER}, #{pbdDetno,jdbcType=INTEGER},
|
|
|
+ #{pbdYm,jdbcType=INTEGER}, #{pbdSild,jdbcType=INTEGER}, #{pbdSlcode,jdbcType=VARCHAR},
|
|
|
+ #{pbdSlkind,jdbcType=VARCHAR}, #{pbdSldate,jdbcType=TIMESTAMP}, #{pbdAmount,jdbcType=DOUBLE},
|
|
|
+ #{pbdNowbalance,jdbcType=DOUBLE}, #{pbdRemark,jdbcType=VARCHAR}, #{companyid,jdbcType=INTEGER},
|
|
|
+ #{updaterid,jdbcType=INTEGER}, #{updatedate,jdbcType=TIMESTAMP}, #{pbdText1,jdbcType=VARCHAR},
|
|
|
+ #{pbdText2,jdbcType=VARCHAR}, #{pbdText3,jdbcType=VARCHAR}, #{pbdText4,jdbcType=VARCHAR},
|
|
|
+ #{pbdText5,jdbcType=VARCHAR})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Paybalancedetail" >
|
|
|
+ insert into paybalancedetail
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="pbdId != null" >
|
|
|
+ pbd_id,
|
|
|
+ </if>
|
|
|
+ <if test="pbdPbid != null" >
|
|
|
+ pbd_pbid,
|
|
|
+ </if>
|
|
|
+ <if test="pbdDetno != null" >
|
|
|
+ pbd_detno,
|
|
|
+ </if>
|
|
|
+ <if test="pbdYm != null" >
|
|
|
+ pbd_ym,
|
|
|
+ </if>
|
|
|
+ <if test="pbdSild != null" >
|
|
|
+ pbd_sild,
|
|
|
+ </if>
|
|
|
+ <if test="pbdSlcode != null" >
|
|
|
+ pbd_slcode,
|
|
|
+ </if>
|
|
|
+ <if test="pbdSlkind != null" >
|
|
|
+ pbd_slkind,
|
|
|
+ </if>
|
|
|
+ <if test="pbdSldate != null" >
|
|
|
+ pbd_sldate,
|
|
|
+ </if>
|
|
|
+ <if test="pbdAmount != null" >
|
|
|
+ pbd_amount,
|
|
|
+ </if>
|
|
|
+ <if test="pbdNowbalance != null" >
|
|
|
+ pbd_nowbalance,
|
|
|
+ </if>
|
|
|
+ <if test="pbdRemark != null" >
|
|
|
+ pbd_remark,
|
|
|
+ </if>
|
|
|
+ <if test="companyid != null" >
|
|
|
+ companyId,
|
|
|
+ </if>
|
|
|
+ <if test="updaterid != null" >
|
|
|
+ updaterId,
|
|
|
+ </if>
|
|
|
+ <if test="updatedate != null" >
|
|
|
+ updatedate,
|
|
|
+ </if>
|
|
|
+ <if test="pbdText1 != null" >
|
|
|
+ pbd_text1,
|
|
|
+ </if>
|
|
|
+ <if test="pbdText2 != null" >
|
|
|
+ pbd_text2,
|
|
|
+ </if>
|
|
|
+ <if test="pbdText3 != null" >
|
|
|
+ pbd_text3,
|
|
|
+ </if>
|
|
|
+ <if test="pbdText4 != null" >
|
|
|
+ pbd_text4,
|
|
|
+ </if>
|
|
|
+ <if test="pbdText5 != null" >
|
|
|
+ pbd_text5,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="pbdId != null" >
|
|
|
+ #{pbdId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="pbdPbid != null" >
|
|
|
+ #{pbdPbid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="pbdDetno != null" >
|
|
|
+ #{pbdDetno,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="pbdYm != null" >
|
|
|
+ #{pbdYm,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="pbdSild != null" >
|
|
|
+ #{pbdSild,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="pbdSlcode != null" >
|
|
|
+ #{pbdSlcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pbdSlkind != null" >
|
|
|
+ #{pbdSlkind,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pbdSldate != null" >
|
|
|
+ #{pbdSldate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="pbdAmount != null" >
|
|
|
+ #{pbdAmount,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="pbdNowbalance != null" >
|
|
|
+ #{pbdNowbalance,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="pbdRemark != null" >
|
|
|
+ #{pbdRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="companyid != null" >
|
|
|
+ #{companyid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updaterid != null" >
|
|
|
+ #{updaterid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updatedate != null" >
|
|
|
+ #{updatedate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="pbdText1 != null" >
|
|
|
+ #{pbdText1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pbdText2 != null" >
|
|
|
+ #{pbdText2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pbdText3 != null" >
|
|
|
+ #{pbdText3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pbdText4 != null" >
|
|
|
+ #{pbdText4,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pbdText5 != null" >
|
|
|
+ #{pbdText5,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.money.po.Paybalancedetail" >
|
|
|
+ update paybalancedetail
|
|
|
+ <set >
|
|
|
+ <if test="pbdPbid != null" >
|
|
|
+ pbd_pbid = #{pbdPbid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="pbdDetno != null" >
|
|
|
+ pbd_detno = #{pbdDetno,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="pbdYm != null" >
|
|
|
+ pbd_ym = #{pbdYm,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="pbdSild != null" >
|
|
|
+ pbd_sild = #{pbdSild,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="pbdSlcode != null" >
|
|
|
+ pbd_slcode = #{pbdSlcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pbdSlkind != null" >
|
|
|
+ pbd_slkind = #{pbdSlkind,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pbdSldate != null" >
|
|
|
+ pbd_sldate = #{pbdSldate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="pbdAmount != null" >
|
|
|
+ pbd_amount = #{pbdAmount,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="pbdNowbalance != null" >
|
|
|
+ pbd_nowbalance = #{pbdNowbalance,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="pbdRemark != null" >
|
|
|
+ pbd_remark = #{pbdRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="companyid != null" >
|
|
|
+ companyId = #{companyid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updaterid != null" >
|
|
|
+ updaterId = #{updaterid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updatedate != null" >
|
|
|
+ updatedate = #{updatedate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="pbdText1 != null" >
|
|
|
+ pbd_text1 = #{pbdText1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pbdText2 != null" >
|
|
|
+ pbd_text2 = #{pbdText2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pbdText3 != null" >
|
|
|
+ pbd_text3 = #{pbdText3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pbdText4 != null" >
|
|
|
+ pbd_text4 = #{pbdText4,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pbdText5 != null" >
|
|
|
+ pbd_text5 = #{pbdText5,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where pbd_id = #{pbdId,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.money.po.Paybalancedetail" >
|
|
|
+ update paybalancedetail
|
|
|
+ set pbd_pbid = #{pbdPbid,jdbcType=INTEGER},
|
|
|
+ pbd_detno = #{pbdDetno,jdbcType=INTEGER},
|
|
|
+ pbd_ym = #{pbdYm,jdbcType=INTEGER},
|
|
|
+ pbd_sild = #{pbdSild,jdbcType=INTEGER},
|
|
|
+ pbd_slcode = #{pbdSlcode,jdbcType=VARCHAR},
|
|
|
+ pbd_slkind = #{pbdSlkind,jdbcType=VARCHAR},
|
|
|
+ pbd_sldate = #{pbdSldate,jdbcType=TIMESTAMP},
|
|
|
+ pbd_amount = #{pbdAmount,jdbcType=DOUBLE},
|
|
|
+ pbd_nowbalance = #{pbdNowbalance,jdbcType=DOUBLE},
|
|
|
+ pbd_remark = #{pbdRemark,jdbcType=VARCHAR},
|
|
|
+ companyId = #{companyid,jdbcType=INTEGER},
|
|
|
+ updaterId = #{updaterid,jdbcType=INTEGER},
|
|
|
+ updatedate = #{updatedate,jdbcType=TIMESTAMP},
|
|
|
+ pbd_text1 = #{pbdText1,jdbcType=VARCHAR},
|
|
|
+ pbd_text2 = #{pbdText2,jdbcType=VARCHAR},
|
|
|
+ pbd_text3 = #{pbdText3,jdbcType=VARCHAR},
|
|
|
+ pbd_text4 = #{pbdText4,jdbcType=VARCHAR},
|
|
|
+ pbd_text5 = #{pbdText5,jdbcType=VARCHAR}
|
|
|
+ where pbd_id = #{pbdId,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+</mapper>
|