|
|
|
@ -38,11 +38,12 @@
|
|
|
|
|
<select id="joinQueryList" parameterType="com.glxp.api.req.purchase.PurOrderDetailRequest"
|
|
|
|
|
resultType="com.glxp.api.res.purchase.PurOrderDetailResponse">
|
|
|
|
|
SELECT pur_order_detail.*,
|
|
|
|
|
basic_products.ggxh spec,
|
|
|
|
|
basic_products.ggxh spec,
|
|
|
|
|
basic_products.nameCode nameCode,
|
|
|
|
|
basic_products.measname,
|
|
|
|
|
basic_products.manufactory,
|
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
|
|
basic_corp.`name` supName
|
|
|
|
|
basic_corp.`name` supName
|
|
|
|
|
FROM pur_order_detail
|
|
|
|
|
left JOIN basic_udirel ON pur_order_detail.productId = basic_udirel.id
|
|
|
|
|
left JOIN basic_products ON basic_udirel.uuid = basic_products.uuid
|
|
|
|
@ -98,6 +99,9 @@
|
|
|
|
|
<if test="zczbhhzbapzbh != null">
|
|
|
|
|
zczbhhzbapzbh=#{zczbhhzbapzbh},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="price != null">
|
|
|
|
|
price=#{price},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</update>
|
|
|
|
@ -106,7 +110,7 @@
|
|
|
|
|
<insert id="insertPurOrderDetailEntity" keyProperty="id"
|
|
|
|
|
parameterType="com.glxp.api.entity.purchase.PurOrderDetailEntity">
|
|
|
|
|
REPLACE INTO pur_order_detail
|
|
|
|
|
(orderIdFk, productId, productName, count, supId, zczbhhzbapzbh) values
|
|
|
|
|
(orderIdFk, productId, productName, count, supId, zczbhhzbapzbh, price) values
|
|
|
|
|
|
|
|
|
|
<foreach collection="datas" item="item" index="index" separator=",">
|
|
|
|
|
(#{item.orderIdFk},
|
|
|
|
@ -114,7 +118,7 @@
|
|
|
|
|
#{item.productName},
|
|
|
|
|
#{item.count},
|
|
|
|
|
#{item.supId},
|
|
|
|
|
#{item.zczbhhzbapzbh})
|
|
|
|
|
#{item.zczbhhzbapzbh}, #{item.price})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|