|
@@ -18,18 +18,18 @@
|
|
#{clauseId},#{clauseName})
|
|
#{clauseId},#{clauseName})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertShopOrder" keyColumn="shopOrderID" keyProperty="shopOrderId" parameterType="com.caimei365.order.model.po.OrderShopPo" useGeneratedKeys="true">
|
|
<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, shopName, note, userID, clubID,
|
|
|
|
|
|
+ INSERT INTO cm_shop_order (shopOrderNo, orderID, orderNo, shopID, note, userID, clubID,
|
|
spID, orderPromotionsId, promotionFullReduction, brokerage, canRefundAmount, itemCount,
|
|
spID, orderPromotionsId, promotionFullReduction, brokerage, canRefundAmount, itemCount,
|
|
totalAmount, productAmount, needPayAmount, shopProductAmount, shopPostFee, shopTaxFee,
|
|
totalAmount, productAmount, needPayAmount, shopProductAmount, shopPostFee, shopTaxFee,
|
|
shouldPayShopAmount, orderTime, orderSubmitType, splitFlag)
|
|
shouldPayShopAmount, orderTime, orderSubmitType, splitFlag)
|
|
- VALUES (#{shopOrderNo},#{orderId},#{orderNo},#{shopId},#{shopName},#{note},#{userId},#{clubId},
|
|
|
|
|
|
+ VALUES (#{shopOrderNo},#{orderId},#{orderNo},#{shopId}, #{note},#{userId},#{clubId},
|
|
#{spId},#{orderPromotionsId},#{promotionFullReduction},#{brokerage},#{canRefundAmount},#{itemCount},
|
|
#{spId},#{orderPromotionsId},#{promotionFullReduction},#{brokerage},#{canRefundAmount},#{itemCount},
|
|
#{totalAmount},#{productAmount},#{needPayAmount},#{shopProductAmount},#{shopPostFee},#{shopTaxFee},
|
|
#{totalAmount},#{productAmount},#{needPayAmount},#{shopProductAmount},#{shopPostFee},#{shopTaxFee},
|
|
#{shouldPayShopAmount},#{orderTime},#{orderSubmitType},#{splitFlag})
|
|
#{shouldPayShopAmount},#{orderTime},#{orderSubmitType},#{splitFlag})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertOrderProduct" keyColumn="orderProductID" keyProperty="orderProductId" parameterType="com.caimei365.order.model.po.OrderProductPo" useGeneratedKeys="true">
|
|
<insert id="insertOrderProduct" keyColumn="orderProductID" keyProperty="orderProductId" parameterType="com.caimei365.order.model.po.OrderProductPo" useGeneratedKeys="true">
|
|
INSERT INTO cm_order_product (orderID, orderNo, shopOrderID, shopOrderNo, orderPromotionsId, productId, shopId, name,
|
|
INSERT INTO cm_order_product (orderID, orderNo, shopOrderID, shopOrderNo, orderPromotionsId, productId, shopId, name,
|
|
- image, price, price1, shopName, costPrice, normalPrice, ladderPriceFlag, discountPrice, discount,
|
|
|
|
|
|
+ productImage, price, price1, shopName, costPrice, normalPrice, ladderPriceFlag, discountPrice, discount,
|
|
totalAmount, totalFee, shouldPayFee, productUnit, num, presentNum, discountFee, includedTax,
|
|
totalAmount, totalFee, shouldPayFee, productUnit, num, presentNum, discountFee, includedTax,
|
|
invoiceType, taxRate, addedValueTax, totalAddedValueTax, singleShouldPayTotalTax, shouldPayTotalTax,
|
|
invoiceType, taxRate, addedValueTax, totalAddedValueTax, singleShouldPayTotalTax, shouldPayTotalTax,
|
|
shopProductAmount, singleShopFee, shopFee, singleOtherFee, otherFee, singleCmFee, cmFee,
|
|
shopProductAmount, singleShopFee, shopFee, singleOtherFee, otherFee, singleCmFee, cmFee,
|
|
@@ -46,7 +46,7 @@
|
|
VALUES (#{orderId},#{id},#{name},#{description},#{type},#{mode},#{touchPrice},#{reducedPrice},#{status},#{beginTime},#{endTime})
|
|
VALUES (#{orderId},#{id},#{name},#{description},#{type},#{mode},#{touchPrice},#{reducedPrice},#{status},#{beginTime},#{endTime})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertLadderPrices" keyColumn="id" keyProperty="id" parameterType="com.caimei365.order.model.vo.LadderPriceVo" useGeneratedKeys="true">
|
|
<insert id="insertLadderPrices" keyColumn="id" keyProperty="id" parameterType="com.caimei365.order.model.vo.LadderPriceVo" useGeneratedKeys="true">
|
|
- INSERT INTO (orderProductId, ladderNum, buyNum, buyPrice, createDate)
|
|
|
|
|
|
+ INSERT INTO order_product_ladder_price (orderProductId, ladderNum, buyNum, buyPrice, createDate)
|
|
VALUES (#{orderProductId},#{ladderNum},#{buyNum},#{buyPrice},#{createDate})
|
|
VALUES (#{orderProductId},#{ladderNum},#{buyNum},#{buyPrice},#{createDate})
|
|
</insert>
|
|
</insert>
|
|
<update id="updateShopOrderIds">
|
|
<update id="updateShopOrderIds">
|
|
@@ -59,9 +59,9 @@
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertOrderUserInfo" parameterType="com.caimei365.order.model.po.OrderUserInfoPo">
|
|
<insert id="insertOrderUserInfo" parameterType="com.caimei365.order.model.po.OrderUserInfoPo">
|
|
INSERT INTO bp_order_userinfo (orderId, clubId, userId, name, shouHuoRen, mobile,
|
|
INSERT INTO bp_order_userinfo (orderId, clubId, userId, name, shouHuoRen, mobile,
|
|
- addressId, townId, province, city, town, address)
|
|
|
|
|
|
+ townId, province, city, town, address)
|
|
VALUES (#{orderId}, #{clubId}, #{userId}, #{name}, #{receiver}, #{mobile},
|
|
VALUES (#{orderId}, #{clubId}, #{userId}, #{name}, #{receiver}, #{mobile},
|
|
- #{addressId}, #{townId}, #{province}, #{city}, #{town}, #{address})
|
|
|
|
|
|
+ #{townId}, #{province}, #{city}, #{town}, #{address})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertCouponOrderRecord" parameterType="com.caimei365.order.model.po.CouponOrderRecordPo">
|
|
<insert id="insertCouponOrderRecord" parameterType="com.caimei365.order.model.po.CouponOrderRecordPo">
|
|
INSERT INTO cm_coupon_order_record (orderId, clubCouponId, couponType, couponAmount, touchPrice, createDate)
|
|
INSERT INTO cm_coupon_order_record (orderId, clubCouponId, couponType, couponAmount, touchPrice, createDate)
|