|
|
@@ -41,6 +41,12 @@
|
|
|
<result column="pi_prstatus" jdbcType="VARCHAR" property="pi_prstatus" />
|
|
|
<result column="pi_prstatuscode" jdbcType="VARCHAR" property="pi_prstatuscode" />
|
|
|
<result column="pi_currency" jdbcType="VARCHAR" property="pi_currency" />
|
|
|
+ <result column="pi_buyerid" jdbcType="INTEGER" property="pi_buyerid" />
|
|
|
+ <result column="pi_buyercode" jdbcType="VARCHAR" property="pi_buyercode" />
|
|
|
+ <result column="pi_buyername" jdbcType="VARCHAR" property="pi_buyername" />
|
|
|
+ <result column="pi_sellerid" jdbcType="INTEGER" property="pi_sellerid" />
|
|
|
+ <result column="pi_sellercode" jdbcType="VARCHAR" property="pi_sellercode" />
|
|
|
+ <result column="pi_seller" jdbcType="VARCHAR" property="pi_seller" />
|
|
|
</resultMap>
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.usoftchina.saas.purchase.po.ProdInOut">
|
|
|
<result column="pi_address" jdbcType="LONGVARCHAR" property="pi_address" />
|
|
|
@@ -52,7 +58,7 @@
|
|
|
pi_id, pi_inoutno, pi_class, pi_date, pi_vendid, pi_vendcode, pi_vendname, pi_custid,
|
|
|
pi_custcode, pi_custname, pi_puid, pi_pucode, pi_said, pi_sacode, pi_total, pi_status, pi_statuscode, pi_printstatus, pi_printstatuscode,
|
|
|
companyid, updaterid,updaterName,updatetime,creatorid,creatorName,createtime, pi_text1, pi_text2, pi_text3, pi_text4, pi_text5,pi_auditdate,
|
|
|
- pi_auditman,pi_remark,pi_ioid,pi_iocode,pi_prstatus,pi_prstatuscode,pi_currency
|
|
|
+ pi_auditman,pi_remark,pi_ioid,pi_iocode,pi_prstatus,pi_prstatuscode,pi_currency,pi_buyerid,pi_buyercode,pi_buyername,pi_sellerid,pi_sellercode,pi_seller
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
pi_address
|
|
|
@@ -196,6 +202,15 @@
|
|
|
<if test="pi_currency != null">
|
|
|
pi_currency,
|
|
|
</if>
|
|
|
+ <if test="pi_buyerid != null">
|
|
|
+ pi_buyerid,
|
|
|
+ </if>
|
|
|
+ <if test="pi_buyercode != null">
|
|
|
+ pi_buyercode,
|
|
|
+ </if>
|
|
|
+ <if test="pi_buyername != null">
|
|
|
+ pi_buyername,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
@@ -318,6 +333,15 @@
|
|
|
<if test="pi_currency != null">
|
|
|
#{pi_currency,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="pi_buyerid != null">
|
|
|
+ #{pi_buyerid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pi_buyercode != null">
|
|
|
+ #{pi_buyercode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pi_buyername != null">
|
|
|
+ #{pi_buyername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -417,6 +441,15 @@
|
|
|
<if test="pi_currency != null">
|
|
|
pi_currency = #{pi_currency,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="pi_said != null">
|
|
|
+ pi_buyerid = #{pi_buyerid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="pi_currency != null">
|
|
|
+ pi_buyercode = #{pi_buyercode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pi_currency != null">
|
|
|
+ pi_buyername = #{pi_buyername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where pi_id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|