|
@@ -6,24 +6,24 @@
|
|
|
userBeans, orderType, orderSubmitType, confirmFlag, onlinePayFlag, splitFlag, payFlag,
|
|
|
receiptStatus, payStatus, zeroCostFlag, sendOutStatus, refundType, affirmPaymentFlag,
|
|
|
productCount, presentCount, promotionalGiftsCount, hasActProduct, promotionFullReduction,
|
|
|
- secondHandOrderFlag, invoiceFlag, freePostFlag, freight, productTotalFee, orderTotalFee,
|
|
|
- payTotalFee, payableAmount, balancePayFee, couponAmount, status, confirmTime, payTime, rebateFlag,
|
|
|
- clauseID, clauseName)
|
|
|
+ svipFullReduction,secondHandOrderFlag, invoiceFlag, freePostFlag, freight, productTotalFee,
|
|
|
+ orderTotalFee,payTotalFee, payableAmount, balancePayFee, couponAmount, status, confirmTime,
|
|
|
+ payTime, rebateFlag,clauseID, clauseName)
|
|
|
VALUES (#{orderSource},#{orderNo},#{userId},#{clubId},#{buyUserId},#{spId},#{orderTime},#{updateDate},#{delFlag},
|
|
|
#{userBeans},#{orderType},#{orderSubmitType},#{confirmFlag},#{onlinePayFlag},#{splitFlag},#{payFlag},
|
|
|
#{receiptStatus},#{payStatus},#{zeroCostFlag},#{sendOutStatus},#{refundType},#{affirmPaymentFlag},
|
|
|
- #{productCount},#{presentCount},#{promotionalGiftsCount},#{hasActProduct},#{promotionFullReduction},
|
|
|
+ #{productCount},#{presentCount},#{promotionalGiftsCount},#{hasActProduct},#{promotionFullReduction},#{svipFullReduction},
|
|
|
#{secondHandOrderFlag},#{invoiceFlag},#{postageFlag},#{postage},#{productTotalFee},#{orderTotalFee},
|
|
|
#{payTotalFee},#{payableAmount},#{balancePayFee},#{couponAmount},#{status},#{confirmTime},#{payTime},#{rebateFlag},
|
|
|
#{clauseId},#{clauseName})
|
|
|
</insert>
|
|
|
<insert id="insertShopOrder" keyColumn="shopOrderID" keyProperty="shopOrderId" parameterType="com.caimei365.order.model.po.OrderShopPo" useGeneratedKeys="true">
|
|
|
INSERT INTO cm_shop_order (shopOrderNo, orderID, orderNo, shopID, note, userID, clubID,
|
|
|
- spID, orderPromotionsId, promotionFullReduction, brokerage, canRefundAmount, itemCount,
|
|
|
+ spID, orderPromotionsId, promotionFullReduction, svipShopReduction, brokerage, canRefundAmount, itemCount,
|
|
|
totalAmount, productAmount, needPayAmount, shopProductAmount, shopPostFee, shopTaxFee,
|
|
|
shouldPayShopAmount, orderTime, orderSubmitType, splitFlag, payStatus, payedShopAmount)
|
|
|
VALUES (#{shopOrderNo},#{orderId},#{orderNo},#{shopId}, #{note},#{userId},#{clubId},
|
|
|
- #{spId},#{orderPromotionsId},#{promotionFullReduction},#{brokerage},#{canRefundAmount},#{itemCount},
|
|
|
+ #{spId},#{orderPromotionsId},#{promotionFullReduction},#{svipShopReduction},#{brokerage},#{canRefundAmount},#{itemCount},
|
|
|
#{totalAmount},#{productAmount},#{needPayAmount},#{shopProductAmount},#{shopPostFee},#{shopTaxFee},
|
|
|
#{shouldPayShopAmount},#{orderTime},#{orderSubmitType},#{splitFlag},#{payStatus},#{payedShopAmount})
|
|
|
</insert>
|
|
@@ -33,13 +33,14 @@
|
|
|
totalAmount, totalFee, shouldPayFee, productUnit, num, presentNum, discountFee, includedTax,
|
|
|
invoiceType, taxRate, addedValueTax, totalAddedValueTax, singleShouldPayTotalTax, shouldPayTotalTax,
|
|
|
shopProductAmount, singleShopFee, shopFee, singleOtherFee, otherFee, singleCmFee, cmFee,
|
|
|
- payStatus, buyAgainFlag, , isActProduct, productType)
|
|
|
+ payStatus, buyAgainFlag, notOutStore, isActProduct, productType, svipProductFlag,svipPriceFlag,
|
|
|
+ svipDiscount)
|
|
|
VALUES (#{orderId},#{orderNo},#{shopOrderId},#{shopOrderNo},#{orderPromotionsId},#{productId},#{shopId},#{name},
|
|
|
#{image},#{price},#{price},#{shopName},#{costPrice},#{normalPrice},#{ladderPriceFlag},#{discountPrice},#{discount},
|
|
|
#{totalAmount},#{totalFee},#{shouldPayFee},#{productUnit},#{num},#{presentNum},#{discountFee},#{includedTax},
|
|
|
#{invoiceType},#{taxRate},#{addedValueTax},#{totalAddedValueTax},#{singleShouldPayTotalTax},#{shouldPayTotalTax},
|
|
|
#{shopProductAmount},#{singleShopFee},#{shopFee},#{singleOtherFee},#{otherFee},#{singleCmFee},#{cmFee},
|
|
|
- #{payStatus},#{buyAgainFlag},#{notOutStore},#{actProduct},#{productType})
|
|
|
+ #{payStatus},#{buyAgainFlag},#{notOutStore},#{actProduct},#{productType},#{svipProductFlag},#{svipPriceFlag},#{svipDiscount})
|
|
|
</insert>
|
|
|
<insert id="insertOrderPromotions" keyColumn="id" keyProperty="id" parameterType="com.caimei365.order.model.vo.PromotionsVo" useGeneratedKeys="true">
|
|
|
INSERT INTO cm_promotions_order (orderId, promotionsId, name, description, type, mode, touchPrice, reducedPrice, status, beginTime, endTime)
|