|
@@ -43,7 +43,7 @@
|
|
|
<result column="PD_TOTAL" property="pd_total" jdbcType="DOUBLE" />
|
|
<result column="PD_TOTAL" property="pd_total" jdbcType="DOUBLE" />
|
|
|
<result column="PD_TAXTOTAL" property="pd_taxtotal" jdbcType="DOUBLE" />
|
|
<result column="PD_TAXTOTAL" property="pd_taxtotal" jdbcType="DOUBLE" />
|
|
|
<result column="PD_ACCEPTQTY" property="pd_acceptqty" jdbcType="DOUBLE" />
|
|
<result column="PD_ACCEPTQTY" property="pd_acceptqty" jdbcType="DOUBLE" />
|
|
|
- <result column="PD_DELIVERY" property="pd_delivery" jdbcType="DOUBLE" />
|
|
|
|
|
|
|
+ <result column="PD_DELIVERY" property="pd_delivery" jdbcType="TIMESTAMP" />
|
|
|
<result column="PD_SALECODE" property="pd_salecode" jdbcType="VARCHAR" />
|
|
<result column="PD_SALECODE" property="pd_salecode" jdbcType="VARCHAR" />
|
|
|
<result column="PD_SALEDETNO" property="pd_saledetno" jdbcType="INTEGER" />
|
|
<result column="PD_SALEDETNO" property="pd_saledetno" jdbcType="INTEGER" />
|
|
|
<result column="PD_SDID" property="pd_sdid" jdbcType="INTEGER" />
|
|
<result column="PD_SDID" property="pd_sdid" jdbcType="INTEGER" />
|
|
@@ -80,64 +80,5 @@
|
|
|
</where>
|
|
</where>
|
|
|
order by pu_id
|
|
order by pu_id
|
|
|
</select>
|
|
</select>
|
|
|
- <insert id="batchInsert" parameterType="java.util.List" >
|
|
|
|
|
- insert into purchasedetail ( PD_PUID, PD_CODE,
|
|
|
|
|
- PD_DETNO, PD_PRODID, PD_PRODCODE,
|
|
|
|
|
- PD_UNIT, PD_QTY, PD_PRICE,
|
|
|
|
|
- PD_TOTAL, 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)
|
|
|
|
|
- values
|
|
|
|
|
- <foreach collection="list" item="item" index="index" open="" close="" separator=",">
|
|
|
|
|
- (
|
|
|
|
|
- #{item.pdPuid,jdbcType=INTEGER}, #{item.pdCode,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.pdDetno,jdbcType=INTEGER}, #{item.pdProdid,jdbcType=INTEGER}, #{item.pdProdcode,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.pdUnit,jdbcType=VARCHAR}, #{item.pdQty,jdbcType=DOUBLE}, #{item.pdPrice,jdbcType=DOUBLE},
|
|
|
|
|
- #{item.pdTotal,jdbcType=DOUBLE}, #{item.pdTaxtotal,jdbcType=DOUBLE}, #{item.pdAcceptqty,jdbcType=DOUBLE},
|
|
|
|
|
- #{item.pdDelivery,jdbcType=DOUBLE}, #{item.pdSalecode,jdbcType=VARCHAR}, #{item.pdSaledetno,jdbcType=INTEGER},
|
|
|
|
|
- #{item.pdSdid,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER}, #{item.updaterId,jdbcType=INTEGER},
|
|
|
|
|
- #{item.updateTime,jdbcType=TIMESTAMP}, #{item.pdText1,jdbcType=VARCHAR}, #{item.pdText2,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.pdText3,jdbcType=VARCHAR}, #{item.pdText4,jdbcType=VARCHAR}, #{item.pdText5,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.pdYqty,jdbcType=DOUBLE}
|
|
|
|
|
- )
|
|
|
|
|
- </foreach>
|
|
|
|
|
- </insert>
|
|
|
|
|
- <update id="batchUpdate" parameterType="com.usoftchina.saas.purchase.po.PurchaseDetail" >
|
|
|
|
|
- <foreach collection="list" item="item" index="index" open="" close="" separator=";">
|
|
|
|
|
- update purchasedetail <set>
|
|
|
|
|
- PD_PUID = #{item.pdPuid},
|
|
|
|
|
- PD_CODE = #{item.pdCode},
|
|
|
|
|
- PD_DETNO = #{item.pdDetno},
|
|
|
|
|
- PD_PRODID = #{item.pdProdid},
|
|
|
|
|
- PD_PRODCODE = #{item.pdProdcode},
|
|
|
|
|
- PD_UNIT = #{item.pdUnit},
|
|
|
|
|
- PD_QTY = #{item.pdQty},
|
|
|
|
|
- PD_PRICE = #{item.pdPrice},
|
|
|
|
|
- PD_TOTAL = #{item.pdTotal},
|
|
|
|
|
- PD_TAXTOTAL = #{item.pdTaxtotal},
|
|
|
|
|
- PD_ACCEPTQTY = #{item.pdAcceptqty},
|
|
|
|
|
- PD_DELIVERY = #{item.pdDelivery},
|
|
|
|
|
- PD_SALECODE = #{item.pdSalecode},
|
|
|
|
|
- PD_SALEDETNO = #{item.pdSaledetno},
|
|
|
|
|
- PD_SDID = #{item.pdSdid},
|
|
|
|
|
- companyId = #{item.companyId},
|
|
|
|
|
- updaterId = #{item.updaterId},
|
|
|
|
|
- updateTime = #{item.updateTime},
|
|
|
|
|
- pd_text1 = #{item.pdText1},
|
|
|
|
|
- pd_text2 = #{item.pdText2},
|
|
|
|
|
- pd_text3 = #{item.pdText3},
|
|
|
|
|
- pd_text4 = #{item.pdText4},
|
|
|
|
|
- pd_text5 = #{item.pdText5},
|
|
|
|
|
- pd_yqty = #{item.pdYqty}
|
|
|
|
|
- </set>
|
|
|
|
|
- where PD_ID = #{item.id,jdbcType=INTEGER}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- </update>
|
|
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
|
|
|
|
- delete from purchasedetail
|
|
|
|
|
- where PD_ID = #{id}
|
|
|
|
|
- </delete>
|
|
|
|
|
|
|
+
|
|
|
</mapper>
|
|
</mapper>
|