AccWebRefundOrderMapper.xml 3.3 KB
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.sibu.orderHelper.integral.web.dao.AccOrderRefundDao">
	<insert id="addAccOrderRefund">
		INSERT  INTO  acc_order_refund(acc_order_refund_id,refund_id,refund_code,order_id,order_code,order_from,member_id,refund_type,refund_goods_status,
		refund_reason_id,refund_reason,refund_money,order_money,refund_remark,refund_status,refund_status_last_update_dt,
		apply_date,refund_money_success_flag,refund_date,buyer_username,buyer_phone,refund_seller_phone,refund_seller_address,
		refund_seller_name,finish_date,refund_integral,refund_goods_deliver_id,refund_goods_deliver_name,refund_goods_waybill,
		refund_goods_remark,refund_tips,receive_goods_flag,receive_goods_dt,deduction_product_vb,deduction_product_vb_refund_status,
		deduction_product_vb_refund_dt,profit_refund_status,profit_refund_dt,refund_freight,refund_to_account_type,refund_alipay_account,
		refund_alipay_account_real_name,refund_bank_account,refund_bank_account_real_name,refund_bank_branch_full_name,change_goods_waybill,
		change_goods_deliver_name,change_goods_finish_flag,order_checking_id,supplier_id,supplier_name)
		VALUES
		<foreach collection="list" item="c" separator=",">
			(#{c.accOrderRefundId},#{c.refundId},#{c.refundCode},#{c.orderId},#{c.orderCode},#{c.orderFrom},#{c.memberId},#{c.refundType},#{c.refundGoodsStatus},
			#{c.refundReasonId},#{c.refundReason},#{c.refundMoney},#{c.orderMoney},#{c.refundRemark},#{c.refundStatus},#{c.refundStatusLastUpdateDt},
			#{c.applyDate},#{c.refundMoneySuccessFlag},#{c.refundDate},#{c.buyerUsername},#{c.buyerPhone},#{c.refundSellerPhone},#{c.refundSellerAddress},
			#{c.refundSellerName},#{c.finishDate},#{c.refundIntegral},#{c.refundGoodsDeliverId},#{c.refundGoodsDeliverName},#{c.refundGoodsWaybill},
			#{c.refundGoodsRemark},#{c.refundTips},#{c.receiveGoodsFlag},#{c.receiveGoodsDt},#{c.deductionProductVb},#{c.deductionProductVbRefundStatus},
			#{c.deductionProductVbRefundDt},#{c.profitRefundStatus},#{c.profitRefundDt},#{c.refundFreight},#{c.refundToAccountType},#{c.refundAlipayAccount},
			#{c.refundAlipayAccountRealName},#{c.refundBankAccount},#{c.refundBankAccountRealName},#{c.refundBankBranchFullName},#{c.changeGoodsWaybill},
			#{c.changeGoodsDeliverName},#{c.changeGoodsFinishFlag},#{c.orderCheckingId},#{c.supplierId},#{c.supplierName})
		</foreach>
	</insert>


	<insert id="addAccOrderRefundDetail">
		INSERT  INTO  acc_refund_order_item(acc_refund_order_item_id,id,refund_id,order_id,order1_id,member_id,sort_index,product_id,quantity,integral,line_integral,price,
		line_price,sku_id,erp_code,spec_detail,name,thumb_img,market_price,discount_price,discount_line_price,deduction_product_vb,deduction_line_vb,order_checking_id)
		VALUES
		<foreach collection="list" item="c" separator=",">
			(#{c.accRefundOrderItemId},#{c.id},#{c.refundId},#{c.orderId},#{c.order1Id},#{c.memberId},#{c.sortIndex},#{c.productId},#{c.quantity},#{c.integral},#{c.lineIntegral},#{c.price},
			#{c.linePrice},#{c.skuId},#{c.erpCode},#{c.specDetail},
			#{c.name},#{c.thumbImg},#{c.marketPrice},#{c.discountPrice},#{c.discountLinePrice},#{c.deductionProductVb},#{c.deductionLineVb},#{c.orderCheckingId}
			)
		</foreach>
	</insert>


</mapper>