| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- <?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="id" jdbcType="INTEGER" />
- <result column="pbd_pbid" property="pbd_pbid" jdbcType="INTEGER" />
- <result column="pbd_detno" property="pbd_detno" jdbcType="INTEGER" />
- <result column="pbd_ym" property="pbd_ym" jdbcType="INTEGER" />
- <result column="pbd_sild" property="pbd_sild" jdbcType="INTEGER" />
- <result column="pbd_slcode" property="pbd_slcode" jdbcType="VARCHAR" />
- <result column="pbd_slkind" property="pbd_slkind" jdbcType="VARCHAR" />
- <result column="pbd_sldate" property="pbd_sldate" jdbcType="TIMESTAMP" />
- <result column="pbd_amount" property="pbd_amount" jdbcType="DOUBLE" />
- <result column="pbd_nowbalance" property="pbd_nowbalance" jdbcType="DOUBLE" />
- <result column="pbd_remark" property="pbd_remark" 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="pbd_text1" jdbcType="VARCHAR" />
- <result column="pbd_text2" property="pbd_text2" jdbcType="VARCHAR" />
- <result column="pbd_text3" property="pbd_text3" jdbcType="VARCHAR" />
- <result column="pbd_text4" property="pbd_text4" jdbcType="VARCHAR" />
- <result column="pbd_text5" property="pbd_text5" 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_pbid = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteItem" parameterType="java.lang.Integer" >
- delete from paybalancedetail
- where pbd_id = #{id,jdbcType=INTEGER}
- </delete>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from paybalancedetail
- where rbd_rbid = #{id,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 (#{id,jdbcType=INTEGER}, #{pbd_pbid,jdbcType=INTEGER}, #{pbd_detno,jdbcType=INTEGER},
- #{pbd_ym,jdbcType=INTEGER}, #{pbd_sild,jdbcType=INTEGER}, #{pbd_slcode,jdbcType=VARCHAR},
- #{pbd_slkind,jdbcType=VARCHAR}, #{pbd_sldate,jdbcType=TIMESTAMP}, #{pbd_amount,jdbcType=DOUBLE},
- #{pbd_nowbalance,jdbcType=DOUBLE}, #{pbd_remark,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER},
- #{updaterId,jdbcType=INTEGER}, #{updatedate,jdbcType=TIMESTAMP}, #{pbd_text1,jdbcType=VARCHAR},
- #{pbd_text2,jdbcType=VARCHAR}, #{pbd_text3,jdbcType=VARCHAR}, #{pbd_text4,jdbcType=VARCHAR},
- #{pbd_text5,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Paybalancedetail" >
- insert into paybalancedetail
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="pbd_pbid != null" >
- pbd_pbid,
- </if>
- <if test="pbd_detno != null" >
- pbd_detno,
- </if>
- <if test="pbd_ym != null" >
- pbd_ym,
- </if>
- <if test="pbd_sild != null" >
- pbd_sild,
- </if>
- <if test="pbd_slcode != null" >
- pbd_slcode,
- </if>
- <if test="pbd_slkind != null" >
- pbd_slkind,
- </if>
- <if test="pbd_sldate != null" >
- pbd_sldate,
- </if>
- <if test="pbd_amount != null" >
- pbd_amount,
- </if>
- <if test="pbd_nowbalance != null" >
- pbd_nowbalance,
- </if>
- <if test="pbd_remark != null" >
- pbd_remark,
- </if>
- <if test="companyId != null" >
- companyId,
- </if>
- <if test="updaterId != null" >
- updaterId,
- </if>
- <if test="updatedate != null" >
- updatedate,
- </if>
- <if test="pbd_text1 != null" >
- pbd_text1,
- </if>
- <if test="pbd_text2 != null" >
- pbd_text2,
- </if>
- <if test="pbd_text3 != null" >
- pbd_text3,
- </if>
- <if test="pbd_text4 != null" >
- pbd_text4,
- </if>
- <if test="pbd_text5 != null" >
- pbd_text5,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="pbd_pbid != null" >
- #{pbd_pbid,jdbcType=INTEGER},
- </if>
- <if test="pbd_detno != null" >
- #{pbd_detno,jdbcType=INTEGER},
- </if>
- <if test="pbd_ym != null" >
- #{pbd_ym,jdbcType=INTEGER},
- </if>
- <if test="pbd_sild != null" >
- #{pbd_sild,jdbcType=INTEGER},
- </if>
- <if test="pbd_slcode != null" >
- #{pbd_slcode,jdbcType=VARCHAR},
- </if>
- <if test="pbd_slkind != null" >
- #{pbd_slkind,jdbcType=VARCHAR},
- </if>
- <if test="pbd_sldate != null" >
- #{pbd_sldate,jdbcType=TIMESTAMP},
- </if>
- <if test="pbd_amount != null" >
- #{pbd_amount,jdbcType=DOUBLE},
- </if>
- <if test="pbd_nowbalance != null" >
- #{pbd_nowbalance,jdbcType=DOUBLE},
- </if>
- <if test="pbd_remark != null" >
- #{pbd_remark,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="pbd_text1 != null" >
- #{pbd_text1,jdbcType=VARCHAR},
- </if>
- <if test="pbd_text2 != null" >
- #{pbd_text2,jdbcType=VARCHAR},
- </if>
- <if test="pbd_text3 != null" >
- #{pbd_text3,jdbcType=VARCHAR},
- </if>
- <if test="pbd_text4 != null" >
- #{pbd_text4,jdbcType=VARCHAR},
- </if>
- <if test="pbd_text5 != null" >
- #{pbd_text5,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.money.po.Paybalancedetail" >
- update paybalancedetail
- <set >
- <if test="pbd_pbid != null" >
- pbd_pbid = #{pbd_pbid,jdbcType=INTEGER},
- </if>
- <if test="pbd_detno != null" >
- pbd_detno = #{pbd_detno,jdbcType=INTEGER},
- </if>
- <if test="pbd_ym != null" >
- pbd_ym = #{pbd_ym,jdbcType=INTEGER},
- </if>
- <if test="pbd_sild != null" >
- pbd_sild = #{pbd_sild,jdbcType=INTEGER},
- </if>
- <if test="pbd_slcode != null" >
- pbd_slcode = #{pbd_slcode,jdbcType=VARCHAR},
- </if>
- <if test="pbd_slkind != null" >
- pbd_slkind = #{pbd_slkind,jdbcType=VARCHAR},
- </if>
- <if test="pbd_sldate != null" >
- pbd_sldate = #{pbd_sldate,jdbcType=TIMESTAMP},
- </if>
- <if test="pbd_amount != null" >
- pbd_amount = #{pbd_amount,jdbcType=DOUBLE},
- </if>
- <if test="pbd_nowbalance != null" >
- pbd_nowbalance = #{pbd_nowbalance,jdbcType=DOUBLE},
- </if>
- <if test="pbd_remark != null" >
- pbd_remark = #{pbd_remark,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="pbd_text1 != null" >
- pbd_text1 = #{pbd_text1,jdbcType=VARCHAR},
- </if>
- <if test="pbd_text2 != null" >
- pbd_text2 = #{pbd_text2,jdbcType=VARCHAR},
- </if>
- <if test="pbd_text3 != null" >
- pbd_text3 = #{pbd_text3,jdbcType=VARCHAR},
- </if>
- <if test="pbd_text4 != null" >
- pbd_text4 = #{pbd_text4,jdbcType=VARCHAR},
- </if>
- <if test="pbd_text5 != null" >
- pbd_text5 = #{pbd_text5,jdbcType=VARCHAR},
- </if>
- </set>
- where pbd_id = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|