|
|
@@ -550,246 +550,61 @@
|
|
|
where pd_id = #{pd_id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<insert id="batchInsert" parameterType="java.util.List" >
|
|
|
+ insert into prodiodetail (pd_piid, pd_inoutno,
|
|
|
+ pd_piclass, pd_pdno, pd_ordercode,
|
|
|
+ pd_orderdetno, pd_prodid, pd_prodcode,
|
|
|
+ pd_unit, pd_inqty, pd_outqty,
|
|
|
+ pd_orderprice, pd_sendprice, pd_price,
|
|
|
+ pd_total, pd_taxrate, pd_netprice,
|
|
|
+ pd_nettotal, pd_whid, pd_whcode,
|
|
|
+ pd_whname, pd_inwhid, pd_inwhcode,
|
|
|
+ pd_inwhname, pd_orderid, pd_sdid,
|
|
|
+ pd_status, companyid, updaterid,
|
|
|
+ updatetime, pd_text1, pd_text2,
|
|
|
+ pd_text3, pd_text4, pd_text5,
|
|
|
+ pd_ym, pd_yqty, pd_ioid,
|
|
|
+ pd_remark) VALUES
|
|
|
<foreach collection="list" item="item" index="index" open="" close="" separator=",">
|
|
|
- insert into prodiodetail
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="item.pd_piid != null">
|
|
|
- pd_piid,
|
|
|
- </if>
|
|
|
- <if test="item.pd_inoutno != null">
|
|
|
- pd_inoutno,
|
|
|
- </if>
|
|
|
- <if test="item.pd_piclass != null">
|
|
|
- pd_piclass,
|
|
|
- </if>
|
|
|
- <if test="item.pd_pdno != null">
|
|
|
- pd_pdno,
|
|
|
- </if>
|
|
|
- <if test="item.pd_ordercode != null">
|
|
|
- pd_ordercode,
|
|
|
- </if>
|
|
|
- <if test="item.pd_orderdetno != null">
|
|
|
- pd_orderdetno,
|
|
|
- </if>
|
|
|
- <if test="item.pd_prodid != null">
|
|
|
- pd_prodid,
|
|
|
- </if>
|
|
|
- <if test="item.pd_prodcode != null">
|
|
|
- pd_prodcode,
|
|
|
- </if>
|
|
|
- <if test="item.pd_unit != null">
|
|
|
- pd_unit,
|
|
|
- </if>
|
|
|
- <if test="item.pd_inqty != null">
|
|
|
- pd_inqty,
|
|
|
- </if>
|
|
|
- <if test="item.pd_outqty != null">
|
|
|
- pd_outqty,
|
|
|
- </if>
|
|
|
- <if test="item.pd_orderprice != null">
|
|
|
- pd_orderprice,
|
|
|
- </if>
|
|
|
- <if test="item.pd_sendprice != null">
|
|
|
- pd_sendprice,
|
|
|
- </if>
|
|
|
- <if test="item.pd_price != null">
|
|
|
- pd_price,
|
|
|
- </if>
|
|
|
- <if test="item.pd_total != null">
|
|
|
- pd_total,
|
|
|
- </if>
|
|
|
- <if test="item.pd_taxrate != null">
|
|
|
- pd_taxrate,
|
|
|
- </if>
|
|
|
- <if test="item.pd_netprice != null">
|
|
|
- pd_netprice,
|
|
|
- </if>
|
|
|
- <if test="item.pd_nettotal != null">
|
|
|
- pd_nettotal,
|
|
|
- </if>
|
|
|
- <if test="item.pd_whid != null">
|
|
|
- pd_whid,
|
|
|
- </if>
|
|
|
- <if test="item.pd_whcode != null">
|
|
|
- pd_whcode,
|
|
|
- </if>
|
|
|
- <if test="item.pd_whname != null">
|
|
|
- pd_whname,
|
|
|
- </if>
|
|
|
- <if test="item.pd_inwhid != null">
|
|
|
- pd_inwhid,
|
|
|
- </if>
|
|
|
- <if test="item.pd_inwhcode != null">
|
|
|
- pd_inwhcode,
|
|
|
- </if>
|
|
|
- <if test="item.pd_inwhname != null">
|
|
|
- pd_inwhname,
|
|
|
- </if>
|
|
|
- <if test="item.pd_orderid != null">
|
|
|
- pd_orderid,
|
|
|
- </if>
|
|
|
- <if test="item.pd_sdid != null">
|
|
|
- pd_sdid,
|
|
|
- </if>
|
|
|
- <if test="item.pd_status != null">
|
|
|
- pd_status,
|
|
|
- </if>
|
|
|
- <if test="item.companyId != null">
|
|
|
- companyid,
|
|
|
- </if>
|
|
|
- <if test="item.updaterId != null">
|
|
|
- updaterid,
|
|
|
- </if>
|
|
|
- <if test="item.updateTime != null">
|
|
|
- updatetime,
|
|
|
- </if>
|
|
|
- <if test="item.pd_text1 != null">
|
|
|
- pd_text1,
|
|
|
- </if>
|
|
|
- <if test="item.pd_text2 != null">
|
|
|
- pd_text2,
|
|
|
- </if>
|
|
|
- <if test="item.pd_text3 != null">
|
|
|
- pd_text3,
|
|
|
- </if>
|
|
|
- <if test="item.pd_text4 != null">
|
|
|
- pd_text4,
|
|
|
- </if>
|
|
|
- <if test="item.pd_text5 != null">
|
|
|
- pd_text5,
|
|
|
- </if>
|
|
|
- <if test="item.pd_ym != null">
|
|
|
- pd_ym,
|
|
|
- </if>
|
|
|
- <if test="item.pd_yqty != null">
|
|
|
- pd_yqty,
|
|
|
- </if>
|
|
|
- <if test="item.pd_remark != null">
|
|
|
- pd_remark,
|
|
|
- </if>
|
|
|
- <if test="item.pd_ioid != null">
|
|
|
- pd_ioid,
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="item.pd_piid != null">
|
|
|
- #{item.pd_piid,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="item.pd_inoutno != null">
|
|
|
- #{item.pd_inoutno,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="item.pd_piclass != null">
|
|
|
- #{item.pd_piclass,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="item.pd_pdno != null">
|
|
|
- #{item.pd_pdno,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="item.pd_ordercode != null">
|
|
|
- #{item.pd_ordercode,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="item.pd_orderdetno != null">
|
|
|
- #{item.pd_orderdetno,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="item.pd_prodid != null">
|
|
|
- #{item.pd_prodid,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="item.pd_prodcode != null">
|
|
|
- #{item.pd_prodcode,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="item.pd_unit != null">
|
|
|
- #{item.pd_unit,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="item.pd_inqty != null">
|
|
|
- #{item.pd_inqty,jdbcType=DOUBLE},
|
|
|
- </if>
|
|
|
- <if test="item.pd_outqty != null">
|
|
|
- #{item.pd_outqty,jdbcType=DOUBLE},
|
|
|
- </if>
|
|
|
- <if test="item.pd_orderprice != null">
|
|
|
- #{item.pd_orderprice,jdbcType=DOUBLE},
|
|
|
- </if>
|
|
|
- <if test="item.pd_sendprice != null">
|
|
|
- #{item.pd_sendprice,jdbcType=DOUBLE},
|
|
|
- </if>
|
|
|
- <if test="item.pd_price != null">
|
|
|
- #{item.pd_price,jdbcType=DOUBLE},
|
|
|
- </if>
|
|
|
- <if test="item.pd_total != null">
|
|
|
- #{item.pd_total,jdbcType=DOUBLE},
|
|
|
- </if>
|
|
|
- <if test="item.pd_taxrate != null">
|
|
|
- #{item.pd_taxrate,jdbcType=DOUBLE},
|
|
|
- </if>
|
|
|
- <if test="item.pd_netprice != null">
|
|
|
- #{item.pd_netprice,jdbcType=DOUBLE},
|
|
|
- </if>
|
|
|
- <if test="item.pd_nettotal != null">
|
|
|
- #{item.pd_nettotal,jdbcType=DOUBLE},
|
|
|
- </if>
|
|
|
- <if test="item.pd_whid != null">
|
|
|
- #{item.pd_whid,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="item.pd_whcode != null">
|
|
|
- #{item.pd_whcode,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="item.pd_whname != null">
|
|
|
- #{item.pd_whname,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="item.pd_inwhid != null">
|
|
|
- #{item.pd_inwhid,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="item.pd_inwhcode != null">
|
|
|
- #{item.pd_inwhcode,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="item.pd_inwhname != null">
|
|
|
- #{item.pd_inwhname,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="item.pd_orderid != null">
|
|
|
- #{item.pd_orderid,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="item.pd_sdid != null">
|
|
|
- #{item.pd_sdid,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="item.pd_status != null">
|
|
|
- #{item.pd_status,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="item.companyId != null">
|
|
|
- #{item.companyId,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="item.updaterId != null">
|
|
|
- #{item.updaterId,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="item.updateTime != null">
|
|
|
- #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="item.pd_text1 != null">
|
|
|
- #{item.pd_text1,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="item.pd_text2 != null">
|
|
|
- #{item.pd_text2,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="item.pd_text3 != null">
|
|
|
- #{item.pd_text3,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="item.pd_text4 != null">
|
|
|
- #{item.pd_text4,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="item.pd_text5 != null">
|
|
|
- #{item.pd_text5,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="item.pd_ym != null">
|
|
|
- #{item.pd_ym,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="item.pd_yqty != null">
|
|
|
- #{item.pd_yqty,jdbcType=DOUBLE},
|
|
|
- </if>
|
|
|
- <if test="item.pd_remark != null">
|
|
|
- #{item.pd_remark,jdbcType=LONGVARCHAR},
|
|
|
- </if>
|
|
|
- <if test="item.pd_ioid != null">
|
|
|
- #{item.pd_ioid,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
+ (
|
|
|
+ #{item.pd_piid,jdbcType=INTEGER},
|
|
|
+ #{item.pd_inoutno,jdbcType=VARCHAR},
|
|
|
+ #{item.pd_piclass,jdbcType=VARCHAR},
|
|
|
+ #{item.pd_pdno,jdbcType=INTEGER},
|
|
|
+ #{item.pd_ordercode,jdbcType=VARCHAR},
|
|
|
+ #{item.pd_orderdetno,jdbcType=INTEGER},
|
|
|
+ #{item.pd_prodid,jdbcType=INTEGER},
|
|
|
+ #{item.pd_prodcode,jdbcType=VARCHAR},
|
|
|
+ #{item.pd_unit,jdbcType=VARCHAR},
|
|
|
+ #{item.pd_inqty,jdbcType=DOUBLE},
|
|
|
+ #{item.pd_outqty,jdbcType=DOUBLE},
|
|
|
+ #{item.pd_orderprice,jdbcType=DOUBLE},
|
|
|
+ #{item.pd_sendprice,jdbcType=DOUBLE},
|
|
|
+ #{item.pd_price,jdbcType=DOUBLE},
|
|
|
+ #{item.pd_total,jdbcType=DOUBLE},
|
|
|
+ #{item.pd_taxrate,jdbcType=DOUBLE},
|
|
|
+ #{item.pd_netprice,jdbcType=DOUBLE},
|
|
|
+ #{item.pd_nettotal,jdbcType=DOUBLE},
|
|
|
+ #{item.pd_whid,jdbcType=INTEGER},
|
|
|
+ #{item.pd_whcode,jdbcType=VARCHAR},
|
|
|
+ #{item.pd_whname,jdbcType=VARCHAR},
|
|
|
+ #{item.pd_inwhid,jdbcType=INTEGER},
|
|
|
+ #{item.pd_inwhcode,jdbcType=VARCHAR},
|
|
|
+ #{item.pd_inwhname,jdbcType=VARCHAR},
|
|
|
+ #{item.pd_orderid,jdbcType=INTEGER},
|
|
|
+ #{item.pd_sdid,jdbcType=INTEGER},
|
|
|
+ #{item.pd_status,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_ym,jdbcType=INTEGER},
|
|
|
+ #{item.pd_yqty,jdbcType=DOUBLE},
|
|
|
+ #{item.pd_remark,jdbcType=LONGVARCHAR},
|
|
|
+ #{item.pd_ioid,jdbcType=INTEGER})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|