|
|
@@ -3,7 +3,7 @@
|
|
|
<mapper namespace="com.usoftchina.saas.money.mapper.PaybalancedetMapper" >
|
|
|
<resultMap id="BaseResultMap" type="com.usoftchina.saas.money.po.Paybalancedet" >
|
|
|
<id column="pd_id" property="id" jdbcType="INTEGER" />
|
|
|
- <result column="pd_rbid" property="pd_rbid" jdbcType="INTEGER" />
|
|
|
+ <result column="pd_pbid" property="pd_pbid" jdbcType="INTEGER" />
|
|
|
<result column="pd_detno" property="pd_detno" jdbcType="INTEGER" />
|
|
|
<result column="pd_ym" property="pd_ym" jdbcType="INTEGER" />
|
|
|
<result column="pd_bankid" property="pd_bankid" jdbcType="INTEGER" />
|
|
|
@@ -23,7 +23,7 @@
|
|
|
<result column="pd_text5" property="pd_text5" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
- pd_id, pd_rbid, pd_detno, pd_ym, pd_bankid, pd_bankcode, pd_bankname, pd_amount,
|
|
|
+ pd_id, pd_pbid, pd_detno, pd_ym, pd_bankid, pd_bankcode, pd_bankname, pd_amount,
|
|
|
pd_paymethod, pd_paycode, pd_remark, companyId, updaterId, updatedate, pd_text1,
|
|
|
pd_text2, pd_text3, pd_text4, pd_text5
|
|
|
</sql>
|
|
|
@@ -31,7 +31,7 @@
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from paybalancedet
|
|
|
- where pd_rbid = #{id,jdbcType=INTEGER}
|
|
|
+ where pd_pbid = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
<delete id="deleteItem" parameterType="java.lang.Integer" >
|
|
|
delete from paybalancedet
|
|
|
@@ -40,12 +40,12 @@
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
delete from paybalancedet
|
|
|
- where pd_rbid = #{id,jdbcType=INTEGER}
|
|
|
+ where pd_pbid = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
|
|
|
<!--<insert id="insert" parameterType="com.usoftchina.saas.money.po.Paybalancedet" >-->
|
|
|
<insert id="insert" parameterType="com.usoftchina.saas.money.po.Paybalancedet" >
|
|
|
- insert into paybalancedet (pd_id, pd_rbid, pd_detno,
|
|
|
+ insert into paybalancedet (pd_id, pd_pbid, pd_detno,
|
|
|
pd_ym, pd_bankid, pd_bankcode,
|
|
|
pd_bankname, pd_amount, pd_paymethod,
|
|
|
pd_paycode, pd_remark, companyId,
|
|
|
@@ -64,8 +64,8 @@
|
|
|
<insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Paybalancedet" >
|
|
|
insert into paybalancedet
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
- <if test="pd_rbid != null" >
|
|
|
- pd_rbid,
|
|
|
+ <if test="pd_pbid != null" >
|
|
|
+ pd_pbid,
|
|
|
</if>
|
|
|
<if test="pd_detno != null" >
|
|
|
pd_detno,
|
|
|
@@ -120,8 +120,8 @@
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
- <if test="pd_rbid != null" >
|
|
|
- #{pd_rbid,jdbcType=INTEGER},
|
|
|
+ <if test="pd_pbid != null" >
|
|
|
+ #{pd_pbid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="pd_detno != null" >
|
|
|
#{pd_detno,jdbcType=INTEGER},
|
|
|
@@ -179,8 +179,8 @@
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.money.po.Paybalancedet" >
|
|
|
update paybalancedet
|
|
|
<set >
|
|
|
- <if test="pd_rbid != null" >
|
|
|
- pd_rbid = #{pd_rbid,jdbcType=INTEGER},
|
|
|
+ <if test="pd_pbid != null" >
|
|
|
+ pd_pbid = #{pd_pbid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="pd_detno != null" >
|
|
|
pd_detno = #{pd_detno,jdbcType=INTEGER},
|
|
|
@@ -238,7 +238,7 @@
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.money.po.Paybalancedet" >
|
|
|
update paybalancedet
|
|
|
- set pd_rbid = #{pdRbid,jdbcType=INTEGER},
|
|
|
+ set pd_pbid = #{pdPbid,jdbcType=INTEGER},
|
|
|
pd_detno = #{pdDetno,jdbcType=INTEGER},
|
|
|
pd_ym = #{pdYm,jdbcType=INTEGER},
|
|
|
pd_bankid = #{pdBankid,jdbcType=INTEGER},
|
|
|
@@ -276,7 +276,7 @@
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from paybalance
|
|
|
- left join paybalancedet on pb_id=pd_rbid left join paybalancedetail on pb_id=pbd_rbid
|
|
|
+ left join paybalancedet on pb_id=pd_pbid left join paybalancedetail on pb_id=pbd_rbid
|
|
|
<where>
|
|
|
<if test="con != null">
|
|
|
${con}
|