|
|
@@ -29,6 +29,7 @@
|
|
|
<result column="pd_text4" property="pd_text4" jdbcType="VARCHAR" />
|
|
|
<result column="pd_text5" property="pd_text5" jdbcType="VARCHAR" />
|
|
|
<result column="pd_yqty" property="pd_yqty" jdbcType="DOUBLE" />
|
|
|
+ <result column="pd_remark" property="pd_remark" jdbcType="VARCHAR" />
|
|
|
<association property="productDTO" javaType="com.usoftchina.saas.document.dto.ProductDTO">
|
|
|
<id column="pr_id" property="id"/>
|
|
|
<result column="pr_code" property="pr_code"/>
|
|
|
@@ -64,7 +65,7 @@
|
|
|
PD_ID, PD_PUID, PD_CODE, PD_DETNO, PD_PRODID, PD_PRODCODE, PD_UNIT, PD_QTY, PD_PRICE,PD_TAXPRICE,
|
|
|
PD_TOTAL, PD_TAXRATE,PD_TAXTOTAL, PD_ACCEPTQTY, PD_DELIVERY, PD_SALECODE, PD_SALEDETNO, PD_SDID,
|
|
|
companyId, updaterId, updateTime, pd_text1, pd_text2, pd_text3, pd_text4, pd_text5,
|
|
|
- pd_yqty
|
|
|
+ pd_yqty,pd_remark
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
|
|
@@ -164,6 +165,9 @@
|
|
|
<if test="pd_text5 != null">
|
|
|
pd_text5,
|
|
|
</if>
|
|
|
+ <if test="pd_remark != null">
|
|
|
+ pd_remark,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
@@ -245,6 +249,9 @@
|
|
|
<if test="pd_text5 != null">
|
|
|
#{pd_text5,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="pd_remark !=null">
|
|
|
+ #{pd_remark,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -329,6 +336,9 @@
|
|
|
<if test="pd_yqty != null" >
|
|
|
pd_yqty = #{pd_yqty,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
+ <if test="pd_remark != null" >
|
|
|
+ pd_remark = #{pd_remark,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where PD_ID = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -342,7 +352,7 @@
|
|
|
PD_SDID, companyId, updaterId,
|
|
|
updateTime, pd_text1, pd_text2,
|
|
|
pd_text3, pd_text4, pd_text5,
|
|
|
- pd_yqty)
|
|
|
+ pd_yqty,pd_remark)
|
|
|
values
|
|
|
<foreach collection="list" item="item" index="index" open="" close="" separator=",">
|
|
|
(
|
|
|
@@ -354,7 +364,7 @@
|
|
|
#{item.pd_sdid,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER}, #{item.updaterId,jdbcType=INTEGER},
|
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.pd_text1,jdbcType=VARCHAR}, #{item.pd_text2,jdbcType=VARCHAR},
|
|
|
#{item.pd_text3,jdbcType=VARCHAR}, #{item.pd_text4,jdbcType=VARCHAR}, #{item.pd_text5,jdbcType=VARCHAR},
|
|
|
- #{item.pd_yqty,jdbcType=DOUBLE}
|
|
|
+ #{item.pd_yqty,jdbcType=DOUBLE}, #{item.pd_remark,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
@@ -436,6 +446,9 @@
|
|
|
<if test="item.pd_yqty != null" >
|
|
|
pd_yqty = #{item.pd_yqty,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
+ <if test="item.pd_remark !=null">
|
|
|
+ pd_remark = #{item.pd_remark,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where PD_ID = #{item.id,jdbcType=INTEGER}
|
|
|
</foreach>
|