|
@@ -3,64 +3,6 @@
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.caimei.modules.order.dao.NewShopOrderDao">
|
|
<mapper namespace="com.caimei.modules.order.dao.NewShopOrderDao">
|
|
- <sql id="shopOrderColumns">
|
|
|
|
- a.payCmAmount AS payCmAmount,
|
|
|
|
- a.shopOrderId AS shopOrderId,
|
|
|
|
- a.orderId AS orderId,
|
|
|
|
- a.organizeId AS organizeId,
|
|
|
|
- a.shopOrderNo AS shopOrderNo,
|
|
|
|
- a.orderNo AS orderNo,
|
|
|
|
- a.userId AS userId,
|
|
|
|
- a.shopId AS shopId,
|
|
|
|
- a.itemCount AS itemCount,
|
|
|
|
- a.townId AS townId,
|
|
|
|
- a.productAmount AS productAmount,
|
|
|
|
- a.isColdChina,
|
|
|
|
- a.discountAmount AS discountAmount,
|
|
|
|
- a.totalAmount AS totalAmount,
|
|
|
|
- a.payFlag AS payFlag,
|
|
|
|
- a.payTime AS payTime,
|
|
|
|
- a.finishTime AS finishTime,
|
|
|
|
- a.refundStatus AS refundStatus,
|
|
|
|
- a.needPayAmount AS needPayAmount,
|
|
|
|
- a.canRefundAmount AS canRefundAmount,
|
|
|
|
- a.refundAmount AS refundAmount,
|
|
|
|
- a.clubId AS clubId,
|
|
|
|
- a.spId AS spId,
|
|
|
|
- a.orderBeanAmount AS orderBeanAmount,
|
|
|
|
- a.useBeanAmount AS useBeanAmount,
|
|
|
|
- a.useBeanFlag AS useBeanFlag,
|
|
|
|
- a.canRefundFlag AS canRefundFlag,
|
|
|
|
- a.useBalanceFlag AS useBalanceFlag,
|
|
|
|
- a.canRefundBeans AS canRefundBeans,
|
|
|
|
- a.freePostageFee AS freePostageFee,
|
|
|
|
- a.freePostageTicketId AS freePostageTicketId,
|
|
|
|
- a.brokerage AS brokerage,
|
|
|
|
- a.delFlag AS delFlag,
|
|
|
|
- a.refundsAmount AS refundsAmount,
|
|
|
|
- a.orderStatusFlag AS orderStatusFlag,
|
|
|
|
- a.orderSubmitType AS orderSubmitType,
|
|
|
|
- a.orderTime AS orderTime,
|
|
|
|
- a.presentNum AS presentNum,
|
|
|
|
- a.preferential AS preferential,
|
|
|
|
- a.outStoreNum AS outStoreNum,
|
|
|
|
- IFNULL(a.outStoreTimes, 0) AS outStoreTimes,
|
|
|
|
- a.receiveGoodsTime AS receiveGoodsTime,
|
|
|
|
- a.note AS note,
|
|
|
|
- a.payStatus AS payStatus,
|
|
|
|
- a.sendOutStatus AS sendOutStatus,
|
|
|
|
- a.shopProductAmount AS shopProductAmount,
|
|
|
|
- a.shopPostFee AS shopPostFee,
|
|
|
|
- a.shopTaxFee AS shopTaxFee,
|
|
|
|
- a.shouldPayShopAmount AS shouldPayShopAmount,
|
|
|
|
- a.payedShopAmount AS payedShopAmount,
|
|
|
|
- a.shopOtherFee AS shopOtherFee,
|
|
|
|
- a.paying AS paying,
|
|
|
|
- a.costType AS costType,
|
|
|
|
- a.modifyShouldPayNote AS modifyShouldPayNote,
|
|
|
|
- proportional AS proportional,
|
|
|
|
- a.settleStatus as settleStatus
|
|
|
|
- </sql>
|
|
|
|
|
|
|
|
<update id="update">
|
|
<update id="update">
|
|
update cm_shop_order
|
|
update cm_shop_order
|
|
@@ -220,43 +162,240 @@
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<select id="get" resultType="com.caimei.modules.order.entity.NewShopOrder" useCache="false" flushCache="true">
|
|
<select id="get" resultType="com.caimei.modules.order.entity.NewShopOrder" useCache="false" flushCache="true">
|
|
- select
|
|
|
|
- <include refid="shopOrderColumns"/>
|
|
|
|
|
|
+ select a.refundStatus AS refundStatus,
|
|
|
|
+ ifnull(a.shopPostFee, 0) AS shopPostFee,
|
|
|
|
+ a.paying AS paying,
|
|
|
|
+ ifnull(a.settleStatus, 1) as settleStatus,
|
|
|
|
+ ifnull(a.receiptStatus, 1) as receiptStatus,
|
|
|
|
+ a.shopOrderID AS shopOrderId,
|
|
|
|
+ a.orderID AS orderId,
|
|
|
|
+ a.organizeID AS organizeId,
|
|
|
|
+ a.shopOrderNo AS shopOrderNo,
|
|
|
|
+ a.orderNo AS orderNo,
|
|
|
|
+ a.userID AS userId,
|
|
|
|
+ a.shopID AS shopId,
|
|
|
|
+ a.itemCount AS itemCount,
|
|
|
|
+ a.townID AS townId,
|
|
|
|
+ a.productAmount AS productAmount,
|
|
|
|
+ a.accountAmount AS accountAmount,
|
|
|
|
+ a.totalAmount AS totalAmount,
|
|
|
|
+ a.payTime AS payTime,
|
|
|
|
+ a.needPayAmount AS needPayAmount,
|
|
|
|
+ a.splitCode,
|
|
|
|
+ a.realPay AS realPay,
|
|
|
|
+ a.receiptAmount AS receiptAmount,
|
|
|
|
+ a.refundAmount AS refundAmount,
|
|
|
|
+ a.clubID AS clubId,
|
|
|
|
+ a.spID AS spId,
|
|
|
|
+ a.canRefundFlag AS canRefundFlag,
|
|
|
|
+ a.freePostageFee AS freePostageFee,
|
|
|
|
+ a.brokerage AS brokerage,
|
|
|
|
+ a.refundsAmount AS refundsAmount,
|
|
|
|
+ a.orderStatusFlag AS orderStatusFlag,
|
|
|
|
+ a.orderType AS orderType,
|
|
|
|
+ a.orderTime AS orderTime,
|
|
|
|
+ ifnull(a.presentNum, 0) AS presentNum,
|
|
|
|
+ a.preferential AS preferential,
|
|
|
|
+ a.receiveGoodsTime AS receiveGoodsTime,
|
|
|
|
+ a.note AS note,
|
|
|
|
+ a.payStatus AS payStatus,
|
|
|
|
+ ifnull(a.sendOutStatus, 0) AS sendOutStatus,
|
|
|
|
+ a.shopProductAmount AS shopProductAmount,
|
|
|
|
+ a.shouldPayShopAmount AS shouldPayShopAmount,
|
|
|
|
+ ifnull((select sum(payAmount)
|
|
|
|
+ from cm_pay_shop_record
|
|
|
|
+ where shopOrderId = a.shopOrderId
|
|
|
|
+ and status = 1
|
|
|
|
+ and delFlag = 0), 0) as payedShopAmount,
|
|
|
|
+ ifnull((select sum(payCmAmount)
|
|
|
|
+ from cm_pay_shop_record
|
|
|
|
+ where shopOrderId = a.shopOrderId
|
|
|
|
+ and status = 1
|
|
|
|
+ and delFlag = 0), 0) as payCmAmount,
|
|
|
|
+ a.differenceType AS differenceType,
|
|
|
|
+ ifnull(a.outStoreNum, 0) as outStoreNum,
|
|
|
|
+ ifnull(a.outStoreTimes, 0) as outStoreTimes,
|
|
|
|
+ co.payTotalFee AS payTotalFee,
|
|
|
|
+ co.status AS status,
|
|
|
|
+ co.receiptStatus as orderReceiptStatus,
|
|
|
|
+ a.isColdChina,
|
|
|
|
+ bou.name AS buyer,
|
|
|
|
+ s.name AS shopName,
|
|
|
|
+ c.name AS clubName,
|
|
|
|
+ if(co.freePostFlag = 1, co.freight, co.freePostFlag) as freight,
|
|
|
|
+ (select IFNULL(sum(associateAmount), 0)
|
|
|
|
+ from cm_receipt_order_relation crpr
|
|
|
|
+ left join cm_discern_receipt b on crpr.receiptID = b.id
|
|
|
|
+ where crpr.orderID = a.orderId
|
|
|
|
+ AND b.receiptStatus = 3
|
|
|
|
+ AND b.delFlag = 0) as receiptTotalFee
|
|
from cm_shop_order a
|
|
from cm_shop_order a
|
|
|
|
+ left join cm_order co on a.orderId = co.orderID
|
|
|
|
+ left join bp_order_userinfo bou on bou.orderId = a.orderID
|
|
|
|
+ left join shop s on a.shopID = s.shopID
|
|
|
|
+ left join club c on a.userId = c.userID
|
|
where a.shopOrderId = #{shopOrderId}
|
|
where a.shopOrderId = #{shopOrderId}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findByShopOrderId" resultType="com.caimei.modules.order.entity.NewShopOrder">
|
|
<select id="findByShopOrderId" resultType="com.caimei.modules.order.entity.NewShopOrder">
|
|
- select
|
|
|
|
- <include refid="shopOrderColumns"/>
|
|
|
|
- ,co.payTotalFee
|
|
|
|
|
|
+ select a.shopOrderID AS shopOrderId,
|
|
|
|
+ a.orderID AS orderId,
|
|
|
|
+ a.organizeID AS organizeId,
|
|
|
|
+ a.shopOrderNo AS shopOrderNo,
|
|
|
|
+ a.orderNo AS orderNo,
|
|
|
|
+ a.userID AS userId,
|
|
|
|
+ a.shopID AS shopId,
|
|
|
|
+ a.itemCount AS itemCount,
|
|
|
|
+ a.townID AS townId,
|
|
|
|
+ a.productAmount AS productAmount,
|
|
|
|
+ a.accountAmount AS accountAmount,
|
|
|
|
+ a.totalAmount AS totalAmount,
|
|
|
|
+ a.payTime AS payTime,
|
|
|
|
+ a.needPayAmount AS needPayAmount,
|
|
|
|
+ a.splitCode,
|
|
|
|
+ a.realPay AS realPay,
|
|
|
|
+ a.receiptAmount AS receiptAmount,
|
|
|
|
+ a.receiptStatus as receiptStatus,
|
|
|
|
+ a.refundAmount AS refundAmount,
|
|
|
|
+ a.clubID AS clubId,
|
|
|
|
+ a.spID AS spId,
|
|
|
|
+ a.canRefundFlag AS canRefundFlag,
|
|
|
|
+ a.freePostageFee AS freePostageFee,
|
|
|
|
+ a.brokerage AS brokerage,
|
|
|
|
+ a.refundsAmount AS refundsAmount,
|
|
|
|
+ a.orderStatusFlag AS orderStatusFlag,
|
|
|
|
+ a.orderType AS orderType,
|
|
|
|
+ a.orderTime AS orderTime,
|
|
|
|
+ a.presentNum AS presentNum,
|
|
|
|
+ a.preferential AS preferential,
|
|
|
|
+ a.receiveGoodsTime AS receiveGoodsTime,
|
|
|
|
+ a.note AS note,
|
|
|
|
+ a.payStatus AS payStatus,
|
|
|
|
+ a.sendOutStatus AS sendOutStatus,
|
|
|
|
+ a.shopProductAmount AS shopProductAmount,
|
|
|
|
+ ifnull(a.shopPostFee, 0) AS shopPostFee,
|
|
|
|
+ a.shouldPayShopAmount AS shouldPayShopAmount,
|
|
|
|
+ ifnull((select sum(payAmount)
|
|
|
|
+ from cm_pay_shop_record
|
|
|
|
+ where shopOrderId = a.shopOrderId
|
|
|
|
+ and status = 1
|
|
|
|
+ and delFlag = 0), 0) as payedShopAmount,
|
|
|
|
+ ifnull((select sum(payCmAmount)
|
|
|
|
+ from cm_pay_shop_record
|
|
|
|
+ where shopOrderId = a.shopOrderId
|
|
|
|
+ and status = 1
|
|
|
|
+ and delFlag = 0), 0) as payCmAmount,
|
|
|
|
+ a.paying AS paying,
|
|
|
|
+ a.settleStatus AS settleStatus,
|
|
|
|
+ a.differenceType AS differenceType,
|
|
|
|
+ co.payTotalFee AS payTotalFee,
|
|
|
|
+ co.status AS status,
|
|
|
|
+ co.receiptStatus as orderReceiptStatus,
|
|
|
|
+ a.isColdChina,
|
|
|
|
+ bou.name AS buyer,
|
|
|
|
+ s.name AS shopName,
|
|
|
|
+ c.name AS clubName,
|
|
|
|
+ if(co.freePostFlag = 1, co.freight, co.freePostFlag) as freight,
|
|
|
|
+ (select IFNULL(sum(associateAmount), 0)
|
|
|
|
+ from cm_receipt_order_relation crpr
|
|
|
|
+ left join cm_discern_receipt b on crpr.receiptID = b.id
|
|
|
|
+ where crpr.orderID = a.orderId
|
|
|
|
+ AND b.receiptStatus = 3
|
|
|
|
+ AND b.delFlag = 0) as receiptTotalFee
|
|
from cm_shop_order a
|
|
from cm_shop_order a
|
|
- left join cm_order co on a.orderId = co.orderId
|
|
|
|
|
|
+ left join bp_order_userinfo bou on bou.orderId = a.orderID
|
|
|
|
+ left join cm_order co on co.orderID = a.orderID
|
|
|
|
+ left join shop s on s.shopID = a.shopID
|
|
|
|
+ LEFT JOIN club c ON c.userID = a.userID
|
|
|
|
+ LEFT JOIN cm_receipt_order_relation cror ON cror.orderId = co.orderId
|
|
|
|
+ LEFT JOIN cm_discern_receipt cdr ON cror.receiptID = cdr.id
|
|
|
|
+ LEFT JOIN cm_split_account csa on csa.shopOrderId = a.shopOrderID
|
|
where a.shopOrderId = #{shopOrderId}
|
|
where a.shopOrderId = #{shopOrderId}
|
|
|
|
+ group by a.shopOrderId
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findListByOrderId" resultType="com.caimei.modules.order.entity.NewShopOrder">
|
|
<select id="findListByOrderId" resultType="com.caimei.modules.order.entity.NewShopOrder">
|
|
- SELECT<include refid="shopOrderColumns"/>,
|
|
|
|
- b.name as shopName,
|
|
|
|
- (select ifnull(sum(payAmount),0) from cm_pay_shop_record where shopOrderId = a.shopOrderId and status = 1 and
|
|
|
|
- delFlag = 0) as payedShopAmount,
|
|
|
|
- (select ifnull(sum(payCmAmount),0) from cm_pay_shop_record where shopOrderId = a.shopOrderId and status = 1 and
|
|
|
|
- delFlag = 0) as payCmAmount
|
|
|
|
- FROM cm_shop_order a
|
|
|
|
- left join shop b on a.shopId = b.shopId
|
|
|
|
- left join cm_order_product cop on a.shopOrderId = cop.shopOrderId
|
|
|
|
- WHERE a.orderId = #{orderId}
|
|
|
|
- and cop.skuId != 4099
|
|
|
|
- ORDER BY a.shopOrderNo DESC
|
|
|
|
|
|
+ select DISTINCT a.shopOrderID AS shopOrderId,
|
|
|
|
+ a.orderID AS orderId,
|
|
|
|
+ a.organizeID AS organizeId,
|
|
|
|
+ a.shopOrderNo AS shopOrderNo,
|
|
|
|
+ a.orderNo AS orderNo,
|
|
|
|
+ a.userID AS userId,
|
|
|
|
+ a.shopID AS shopId,
|
|
|
|
+ a.itemCount AS itemCount,
|
|
|
|
+ a.townID AS townId,
|
|
|
|
+ a.productAmount AS productAmount,
|
|
|
|
+ a.accountAmount AS accountAmount,
|
|
|
|
+ a.totalAmount AS totalAmount,
|
|
|
|
+ a.payTime AS payTime,
|
|
|
|
+ a.needPayAmount AS needPayAmount,
|
|
|
|
+ a.splitCode,
|
|
|
|
+ a.realPay AS realPay,
|
|
|
|
+ a.receiptAmount AS receiptAmount,
|
|
|
|
+ a.receiptStatus as receiptStatus,
|
|
|
|
+ a.refundAmount AS refundAmount,
|
|
|
|
+ a.clubID AS clubId,
|
|
|
|
+ a.spID AS spId,
|
|
|
|
+ a.canRefundFlag AS canRefundFlag,
|
|
|
|
+ a.freePostageFee AS freePostageFee,
|
|
|
|
+ a.brokerage AS brokerage,
|
|
|
|
+ a.refundsAmount AS refundsAmount,
|
|
|
|
+ a.orderStatusFlag AS orderStatusFlag,
|
|
|
|
+ a.orderType AS orderType,
|
|
|
|
+ a.orderTime AS orderTime,
|
|
|
|
+ a.presentNum AS presentNum,
|
|
|
|
+ a.preferential AS preferential,
|
|
|
|
+ a.receiveGoodsTime AS receiveGoodsTime,
|
|
|
|
+ a.note AS note,
|
|
|
|
+ a.payStatus AS payStatus,
|
|
|
|
+ a.sendOutStatus AS sendOutStatus,
|
|
|
|
+ a.shopProductAmount AS shopProductAmount,
|
|
|
|
+ ifnull(a.shopPostFee, 0) AS shopPostFee,
|
|
|
|
+ a.shouldPayShopAmount AS shouldPayShopAmount,
|
|
|
|
+ ifnull((select sum(payAmount)
|
|
|
|
+ from cm_pay_shop_record
|
|
|
|
+ where shopOrderId = a.shopOrderId
|
|
|
|
+ and status = 1
|
|
|
|
+ and delFlag = 0), 0) as payedShopAmount,
|
|
|
|
+ ifnull((select sum(payCmAmount)
|
|
|
|
+ from cm_pay_shop_record
|
|
|
|
+ where shopOrderId = a.shopOrderId
|
|
|
|
+ and status = 1
|
|
|
|
+ and delFlag = 0), 0) as payCmAmount,
|
|
|
|
+ a.paying AS paying,
|
|
|
|
+ a.settleStatus AS settleStatus,
|
|
|
|
+ a.differenceType AS differenceType,
|
|
|
|
+ co.payTotalFee AS payTotalFee,
|
|
|
|
+ co.status AS status,
|
|
|
|
+ co.receiptStatus as orderReceiptStatus,
|
|
|
|
+ a.isColdChina,
|
|
|
|
+ bou.name AS buyer,
|
|
|
|
+ s.name AS shopName,
|
|
|
|
+ c.name AS clubName,
|
|
|
|
+ if(co.freePostFlag = 1, co.freight, co.freePostFlag) as freight,
|
|
|
|
+ (select IFNULL(sum(associateAmount), 0)
|
|
|
|
+ from cm_receipt_order_relation crpr
|
|
|
|
+ left join cm_discern_receipt b on crpr.receiptID = b.id
|
|
|
|
+ where crpr.orderID = a.orderId
|
|
|
|
+ AND b.receiptStatus = 3
|
|
|
|
+ AND b.delFlag = 0) as receiptTotalFee
|
|
|
|
+ from cm_shop_order a
|
|
|
|
+ left join bp_order_userinfo bou on bou.orderId = a.orderID
|
|
|
|
+ left join cm_order co on co.orderID = a.orderID
|
|
|
|
+ left join shop s on s.shopID = a.shopID
|
|
|
|
+ LEFT JOIN club c ON c.userID = a.userID
|
|
|
|
+ LEFT JOIN cm_receipt_order_relation cror ON cror.orderId = co.orderId
|
|
|
|
+ LEFT JOIN cm_discern_receipt cdr ON cror.receiptID = cdr.id
|
|
|
|
+ LEFT JOIN cm_split_account csa on csa.shopOrderId = a.shopOrderID
|
|
|
|
+ where a.orderId = #{orderId}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findUnPaidShopOrder" resultType="java.lang.Integer">
|
|
<select id="findUnPaidShopOrder" resultType="java.lang.Integer">
|
|
- SELECT COUNT(cso.shopOrderId)
|
|
|
|
- FROM cm_shop_order cso
|
|
|
|
- left join cm_order_product cop on cso.orderID=cop.orderID
|
|
|
|
- WHERE cso.orderID = #{orderId}
|
|
|
|
- AND cop.skuId != 4099
|
|
|
|
- AND cso.payStatus != 3
|
|
|
|
|
|
+ SELECT COUNT(shopOrderId)
|
|
|
|
+ FROM cm_shop_order
|
|
|
|
+ WHERE orderID = #{orderId}
|
|
|
|
+ AND shopID != 998
|
|
|
|
+ AND payStatus != 3
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getPayingStatus" resultType="java.lang.Integer">
|
|
<select id="getPayingStatus" resultType="java.lang.Integer">
|
|
@@ -310,7 +449,7 @@
|
|
a.payStatus AS payStatus,
|
|
a.payStatus AS payStatus,
|
|
a.sendOutStatus AS sendOutStatus,
|
|
a.sendOutStatus AS sendOutStatus,
|
|
a.shopProductAmount AS shopProductAmount,
|
|
a.shopProductAmount AS shopProductAmount,
|
|
- a.shopPostFee AS shopPostFee,
|
|
|
|
|
|
+ ifnull(a.shopPostFee,0) AS shopPostFee,
|
|
a.shouldPayShopAmount AS shouldPayShopAmount,
|
|
a.shouldPayShopAmount AS shouldPayShopAmount,
|
|
ifnull((select sum(payAmount) from cm_pay_shop_record where shopOrderId = a.shopOrderId and status = 1 and
|
|
ifnull((select sum(payAmount) from cm_pay_shop_record where shopOrderId = a.shopOrderId and status = 1 and
|
|
delFlag = 0),0) as payedShopAmount,
|
|
delFlag = 0),0) as payedShopAmount,
|
|
@@ -337,7 +476,6 @@
|
|
from cm_shop_order a
|
|
from cm_shop_order a
|
|
left join bp_order_userinfo bou on bou.orderId = a.orderID
|
|
left join bp_order_userinfo bou on bou.orderId = a.orderID
|
|
left join cm_order co on co.orderID = a.orderID
|
|
left join cm_order co on co.orderID = a.orderID
|
|
- left join cm_order_product cop on co.orderID = cop.orderID
|
|
|
|
left join shop s on s.shopID = a.shopID
|
|
left join shop s on s.shopID = a.shopID
|
|
LEFT JOIN club c ON c.userID = a.userID
|
|
LEFT JOIN club c ON c.userID = a.userID
|
|
LEFT JOIN cm_receipt_order_relation cror ON cror.orderId = co.orderId
|
|
LEFT JOIN cm_receipt_order_relation cror ON cror.orderId = co.orderId
|
|
@@ -393,7 +531,7 @@
|
|
and a.payStatus != 3 and co.status NOT IN (6,7)
|
|
and a.payStatus != 3 and co.status NOT IN (6,7)
|
|
and co.delFlag = 0
|
|
and co.delFlag = 0
|
|
and a.delFlag = 0
|
|
and a.delFlag = 0
|
|
- and cop.skuId != 4099
|
|
|
|
|
|
+ and a.shopID != 998
|
|
and a.paying != 1
|
|
and a.paying != 1
|
|
and co.orderID not in (
|
|
and co.orderID not in (
|
|
SELECT orderID FROM cm_order_product WHERE productID IN
|
|
SELECT orderID FROM cm_order_product WHERE productID IN
|
|
@@ -413,7 +551,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findSettleStatus" resultType="java.lang.Integer">
|
|
<select id="findSettleStatus" resultType="java.lang.Integer">
|
|
- select ifnull(settleStatus,1)
|
|
|
|
|
|
+ select ifnull(settleStatus, 1)
|
|
from cm_shop_order
|
|
from cm_shop_order
|
|
where orderID = #{orderId}
|
|
where orderID = #{orderId}
|
|
</select>
|
|
</select>
|