|
|
@@ -268,59 +268,59 @@
|
|
|
<foreach collection="list" item="item" index="index" separator=";">
|
|
|
update productdetail
|
|
|
<set >
|
|
|
- <if test="pd_prodid != null" >
|
|
|
- pd_prodid = #{pd_prodid,jdbcType=INTEGER},
|
|
|
+ <if test="item.pd_prodid != null" >
|
|
|
+ pd_prodid = #{item.pd_prodid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="pd_prodcode != null" >
|
|
|
- pd_prodcode = #{pd_prodcode,jdbcType=VARCHAR},
|
|
|
+ <if test="item.pd_prodcode != null" >
|
|
|
+ pd_prodcode = #{item.pd_prodcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="pd_detno != null" >
|
|
|
- pd_detno = #{pd_detno,jdbcType=INTEGER},
|
|
|
+ <if test="item.pd_detno != null" >
|
|
|
+ pd_detno = #{item.pd_detno,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="pd_whcode != null" >
|
|
|
- pd_whcode = #{pd_whcode,jdbcType=VARCHAR},
|
|
|
+ <if test="item.pd_whcode != null" >
|
|
|
+ pd_whcode = #{item.pd_whcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="pd_whname != null" >
|
|
|
- pd_whname = #{pd_whname,jdbcType=VARCHAR},
|
|
|
+ <if test="item.pd_whname != null" >
|
|
|
+ pd_whname = #{item.pd_whname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="pd_whid != null" >
|
|
|
- pd_whid = #{pd_whid,jdbcType=INTEGER},
|
|
|
+ <if test="item.pd_whid != null" >
|
|
|
+ pd_whid = #{item.pd_whid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="pd_price != null" >
|
|
|
- pd_price = #{pd_price,jdbcType=DOUBLE},
|
|
|
+ <if test="item.pd_price != null" >
|
|
|
+ pd_price = #{item.pd_price,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
- <if test="pd_amount != null" >
|
|
|
- pd_amount = #{pd_amount,jdbcType=DOUBLE},
|
|
|
+ <if test="item.pd_amount != null" >
|
|
|
+ pd_amount = #{item.pd_amount,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
- <if test="companyId != null" >
|
|
|
- companyId = #{companyId,jdbcType=INTEGER},
|
|
|
+ <if test="item.companyId != null" >
|
|
|
+ companyId = #{item.companyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="updaterId != null" >
|
|
|
- updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
+ <if test="item.updaterId != null" >
|
|
|
+ updaterId = #{item.updaterId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="updateTime != null" >
|
|
|
- updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ <if test="item.updateTime != null" >
|
|
|
+ updateTime = #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
- <if test="pd_text1 != null" >
|
|
|
- pd_text1 = #{pd_text1,jdbcType=VARCHAR},
|
|
|
+ <if test="item.pd_text1 != null" >
|
|
|
+ pd_text1 = #{item.pd_text1,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="pd_text2 != null" >
|
|
|
- pd_text2 = #{pd_text2,jdbcType=VARCHAR},
|
|
|
+ <if test="item.pd_text2 != null" >
|
|
|
+ pd_text2 = #{item.pd_text2,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="pd_text3 != null" >
|
|
|
- pd_text3 = #{pd_text3,jdbcType=VARCHAR},
|
|
|
+ <if test="item.pd_text3 != null" >
|
|
|
+ pd_text3 = #{item.pd_text3,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="pd_text4 != null" >
|
|
|
- pd_text4 = #{pd_text4,jdbcType=VARCHAR},
|
|
|
+ <if test="item.pd_text4 != null" >
|
|
|
+ pd_text4 = #{item.pd_text4,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="pd_text5 != null" >
|
|
|
- pd_text5 = #{pd_text5,jdbcType=VARCHAR},
|
|
|
+ <if test="item.pd_text5 != null" >
|
|
|
+ pd_text5 = #{item.pd_text5,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="pd_num != null" >
|
|
|
- pd_num = #{pd_num,jdbcType=DOUBLE},
|
|
|
+ <if test="item.pd_num != null" >
|
|
|
+ pd_num = #{item.pd_num,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
</set>
|
|
|
- where id = #{id}
|
|
|
+ where id = #{item.id}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
<select id="selectProdidByPrimaryKey" resultType="java.lang.Long">
|