|
@@ -1277,4 +1277,1022 @@
|
|
|
WHERE a.shopOrderId = #{onlineShopOrderId}
|
|
|
ORDER BY a.shopOrderNo DESC
|
|
|
</select>
|
|
|
+
|
|
|
+ <resultMap type="com.caimei.modules.order.entity.NewShopOrder" id="CmShopOrderResult">
|
|
|
+ <result property="shopOrderID" column="shopOrderID" />
|
|
|
+ <result property="shopOrderNo" column="shopOrderNo" />
|
|
|
+ <result property="orderNo" column="orderNo" />
|
|
|
+ <result property="orderID" column="orderID" />
|
|
|
+ <result property="organizeID" column="organizeID" />
|
|
|
+ <result property="isColdChina" column="isColdChina" />
|
|
|
+ <result property="userID" column="userID" />
|
|
|
+ <result property="shopID" column="shopID" />
|
|
|
+ <result property="orderPromotionsId" column="orderPromotionsId" />
|
|
|
+ <result property="orderType" column="orderType" />
|
|
|
+ <result property="orderSubmitType" column="orderSubmitType" />
|
|
|
+ <result property="presentNum" column="presentNum" />
|
|
|
+ <result property="itemCount" column="itemCount" />
|
|
|
+ <result property="outStoreNum" column="outStoreNum" />
|
|
|
+ <result property="outStoreTimes" column="outStoreTimes" />
|
|
|
+ <result property="townID" column="townID" />
|
|
|
+ <result property="note" column="note" />
|
|
|
+ <result property="eachDiscount" column="eachDiscount" />
|
|
|
+ <result property="realPay" column="realPay" />
|
|
|
+ <result property="receiptAmount" column="receiptAmount" />
|
|
|
+ <result property="accountAmount" column="accountAmount" />
|
|
|
+ <result property="productAmount" column="productAmount" />
|
|
|
+ <result property="totalAmount" column="totalAmount" />
|
|
|
+ <result property="needPayAmount" column="needPayAmount" />
|
|
|
+ <result property="discountAmount" column="discountAmount" />
|
|
|
+ <result property="preferential" column="preferential" />
|
|
|
+ <result property="promotionFullReduction" column="promotionFullReduction" />
|
|
|
+ <result property="payFlag" column="payFlag" />
|
|
|
+ <result property="orderTime" column="orderTime" />
|
|
|
+ <result property="payTime" column="payTime" />
|
|
|
+ <result property="finishTime" column="finishTime" />
|
|
|
+ <result property="autoOverTimeMills" column="autoOverTimeMills" />
|
|
|
+ <result property="settleStatus" column="settleStatus" />
|
|
|
+ <result property="payStatus" column="payStatus" />
|
|
|
+ <result property="receiptStatus" column="receiptStatus" />
|
|
|
+ <result property="sendOutStatus" column="sendOutStatus" />
|
|
|
+ <result property="refundStatus" column="refundStatus" />
|
|
|
+ <result property="returnGoodsStatus" column="returnGoodsStatus" />
|
|
|
+ <result property="receiveGoodsTime" column="receiveGoodsTime" />
|
|
|
+ <result property="autoReceiveTimeMills" column="autoReceiveTimeMills" />
|
|
|
+ <result property="totalAddedValueTax" column="totalAddedValueTax" />
|
|
|
+ <result property="canRefundAmount" column="canRefundAmount" />
|
|
|
+ <result property="refundAmount" column="refundAmount" />
|
|
|
+ <result property="clubID" column="clubID" />
|
|
|
+ <result property="spID" column="spID" />
|
|
|
+ <result property="mainSpID" column="mainSpID" />
|
|
|
+ <result property="orderBeanAmount" column="orderBeanAmount" />
|
|
|
+ <result property="useBeanAmount" column="useBeanAmount" />
|
|
|
+ <result property="useBeanFlag" column="useBeanFlag" />
|
|
|
+ <result property="canRefundFlag" column="canRefundFlag" />
|
|
|
+ <result property="useBalanceFlag" column="useBalanceFlag" />
|
|
|
+ <result property="canRefundBeans" column="canRefundBeans" />
|
|
|
+ <result property="freePostageFee" column="freePostageFee" />
|
|
|
+ <result property="freePostageTicketID" column="freePostageTicketID" />
|
|
|
+ <result property="brokerage" column="brokerage" />
|
|
|
+ <result property="delFlag" column="delFlag" />
|
|
|
+ <result property="refundsAmount" column="refundsAmount" />
|
|
|
+ <result property="orderStatusFlag" column="orderStatusFlag" />
|
|
|
+ <result property="buyStatus" column="buyStatus" />
|
|
|
+ <result property="deliveryTimeMills" column="deliveryTimeMills" />
|
|
|
+ <result property="orderDeliveryID" column="orderDeliveryID" />
|
|
|
+ <result property="splitFlag" column="splitFlag" />
|
|
|
+ <result property="paying" column="paying" />
|
|
|
+ <result property="shopProductAmount" column="shopProductAmount" />
|
|
|
+ <result property="shopPostFee" column="shopPostFee" />
|
|
|
+ <result property="secondHandOrderFlag" column="secondHandOrderFlag" />
|
|
|
+ <result property="shopPostFlag" column="shopPostFlag" />
|
|
|
+ <result property="shopTaxFee" column="shopTaxFee" />
|
|
|
+ <result property="payCmAmount" column="payCmAmount" />
|
|
|
+ <result property="shouldPayShopAmount" column="shouldPayShopAmount" />
|
|
|
+ <result property="payedShopAmount" column="payedShopAmount" />
|
|
|
+ <result property="shopOtherFee" column="shopOtherFee" />
|
|
|
+ <result property="receiptedFlag" column="receiptedFlag" />
|
|
|
+ <result property="receiptedType" column="receiptedType" />
|
|
|
+ <result property="costType" column="costType" />
|
|
|
+ <result property="proportional" column="proportional" />
|
|
|
+ <result property="modifyShouldPayNote" column="modifyShouldPayNote" />
|
|
|
+ <result property="modifyShouldPayUserID" column="modifyShouldPayUserID" />
|
|
|
+ <result property="modifyShouldPayDate" column="modifyShouldPayDate" />
|
|
|
+ <result property="zeroCostFlag" column="zeroCostFlag" />
|
|
|
+ <result property="differenceType" column="differenceType" />
|
|
|
+ <result property="differencePrice" column="differencePrice" />
|
|
|
+ <result property="svipShopReduction" column="svipShopReduction" />
|
|
|
+ <result property="splitCode" column="splitCode" />
|
|
|
+ <result property="paySuccessCounter" column="paySuccessCounter" />
|
|
|
+ <result property="onlinePayWays" column="onlinePayWays" />
|
|
|
+ <result property="status" column="shopStatus" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectCmShopOrderVo">
|
|
|
+ select
|
|
|
+ cm_shop_order.shopOrderID,
|
|
|
+ cm_shop_order.shopOrderNo,
|
|
|
+ cm_shop_order.orderNo,
|
|
|
+ cm_shop_order.orderID,
|
|
|
+ cm_shop_order.organizeID,
|
|
|
+ cm_shop_order.isColdChina,
|
|
|
+ cm_shop_order.userID,
|
|
|
+ cm_shop_order.shopID,
|
|
|
+ cm_shop_order.orderPromotionsId,
|
|
|
+ cm_shop_order.orderType,
|
|
|
+ cm_shop_order.orderSubmitType,
|
|
|
+ cm_shop_order.presentNum,
|
|
|
+ cm_shop_order.itemCount,
|
|
|
+ cm_shop_order.outStoreNum,
|
|
|
+ cm_shop_order.outStoreTimes,
|
|
|
+ cm_shop_order.townID,
|
|
|
+ cm_shop_order.note,
|
|
|
+ cm_shop_order.eachDiscount,
|
|
|
+ cm_shop_order.realPay,
|
|
|
+ cm_shop_order.receiptAmount,
|
|
|
+ cm_shop_order.accountAmount,
|
|
|
+ cm_shop_order.productAmount,
|
|
|
+ cm_shop_order.totalAmount,
|
|
|
+ cm_shop_order.needPayAmount,
|
|
|
+ cm_shop_order.discountAmount,
|
|
|
+ cm_shop_order.preferential,
|
|
|
+ cm_shop_order.promotionFullReduction,
|
|
|
+ cm_shop_order.payFlag,
|
|
|
+ cm_shop_order.orderTime,
|
|
|
+ cm_shop_order.payTime,
|
|
|
+ cm_shop_order.finishTime,
|
|
|
+ cm_shop_order.autoOverTimeMills,
|
|
|
+ cm_shop_order.settleStatus,
|
|
|
+ cm_shop_order.payStatus,
|
|
|
+ cm_shop_order.receiptStatus,
|
|
|
+ cm_shop_order.sendOutStatus,
|
|
|
+ cm_shop_order.refundStatus,
|
|
|
+ cm_shop_order.returnGoodsStatus,
|
|
|
+ cm_shop_order.receiveGoodsTime,
|
|
|
+ cm_shop_order.autoReceiveTimeMills,
|
|
|
+ cm_shop_order.totalAddedValueTax,
|
|
|
+ cm_shop_order.canRefundAmount,
|
|
|
+ cm_shop_order.refundAmount,
|
|
|
+ cm_shop_order.clubID,
|
|
|
+ cm_shop_order.spID,
|
|
|
+ cm_shop_order.mainSpID,
|
|
|
+ cm_shop_order.orderBeanAmount,
|
|
|
+ cm_shop_order.useBeanAmount,
|
|
|
+ cm_shop_order.useBeanFlag,
|
|
|
+ cm_shop_order.canRefundFlag,
|
|
|
+ cm_shop_order.useBalanceFlag,
|
|
|
+ cm_shop_order.canRefundBeans,
|
|
|
+ cm_shop_order.freePostageFee,
|
|
|
+ cm_shop_order.freePostageTicketID,
|
|
|
+ cm_shop_order.brokerage,
|
|
|
+ cm_shop_order.delFlag,
|
|
|
+ cm_shop_order.refundsAmount,
|
|
|
+ cm_shop_order.orderStatusFlag,
|
|
|
+ cm_shop_order.buyStatus,
|
|
|
+ cm_shop_order.deliveryTimeMills,
|
|
|
+ cm_shop_order.orderDeliveryID,
|
|
|
+ cm_shop_order.splitFlag,
|
|
|
+ cm_shop_order.paying,
|
|
|
+ cm_shop_order.shopProductAmount,
|
|
|
+ cm_shop_order.shopPostFee,
|
|
|
+ cm_shop_order.secondHandOrderFlag,
|
|
|
+ cm_shop_order.shopPostFlag,
|
|
|
+ cm_shop_order.shopTaxFee,
|
|
|
+ cm_shop_order.payCmAmount,
|
|
|
+ cm_shop_order.shouldPayShopAmount,
|
|
|
+ cm_shop_order.payedShopAmount,
|
|
|
+ cm_shop_order.shopOtherFee,
|
|
|
+ cm_shop_order.receiptedFlag,
|
|
|
+ cm_shop_order.receiptedType,
|
|
|
+ cm_shop_order.costType,
|
|
|
+ cm_shop_order.proportional,
|
|
|
+ cm_shop_order.modifyShouldPayNote,
|
|
|
+ cm_shop_order.modifyShouldPayUserID,
|
|
|
+ cm_shop_order.modifyShouldPayDate,
|
|
|
+ cm_shop_order.zeroCostFlag,
|
|
|
+ cm_shop_order.differenceType,
|
|
|
+ cm_shop_order.differencePrice,
|
|
|
+ cm_shop_order.svipShopReduction,
|
|
|
+ cm_shop_order.splitCode,
|
|
|
+ cm_shop_order.paySuccessCounter,
|
|
|
+ cm_shop_order.onlinePayWays,
|
|
|
+ cm_shop_order.shopStatus
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="getByCmShopOrder" parameterType="com.caimei.modules.order.entity.NewShopOrder" resultMap="CmShopOrderResult">
|
|
|
+ <include refid="selectCmShopOrderVo"/>
|
|
|
+ from cm_shop_order AS cm_shop_order
|
|
|
+ <where> cm_shop_order.delFlag = 0
|
|
|
+ <if test="shopOrderID != null and shopOrderID != ''">
|
|
|
+ and cm_shop_order.shopOrderID
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('=')==-1">
|
|
|
+ = #{shopOrderID}
|
|
|
+ </if>
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('=')!=-1">
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
+ <foreach item="shopOrderIDIn" collection="shopOrderID.substring(shopOrderID.toUpperCase().indexOf('=')+1,shopOrderID.length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
+ #{shopOrderIDIn}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
+ <if test="shopOrderNo != null and shopOrderNo != ''"> and cm_shop_order.shopOrderNo = #{shopOrderNo}</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''"> and cm_shop_order.orderNo = #{orderNo}</if>
|
|
|
+ <if test="orderID != null "> and cm_shop_order.orderID = #{orderID}</if>
|
|
|
+ <if test="organizeID != null "> and cm_shop_order.organizeID = #{organizeID}</if>
|
|
|
+ <if test="isColdChina != null "> and cm_shop_order.isColdChina = #{isColdChina}</if>
|
|
|
+ <if test="userID != null "> and cm_shop_order.userID = #{userID}</if>
|
|
|
+ <if test="shopID != null "> and cm_shop_order.shopID = #{shopID}</if>
|
|
|
+ <if test="orderPromotionsId != null "> and cm_shop_order.orderPromotionsId = #{orderPromotionsId}</if>
|
|
|
+ <if test="orderType != null "> and cm_shop_order.orderType = #{orderType}</if>
|
|
|
+ <if test="orderSubmitType != null "> and cm_shop_order.orderSubmitType = #{orderSubmitType}</if>
|
|
|
+ <if test="presentNum != null "> and cm_shop_order.presentNum = #{presentNum}</if>
|
|
|
+ <if test="itemCount != null "> and cm_shop_order.itemCount = #{itemCount}</if>
|
|
|
+ <if test="outStoreNum != null "> and cm_shop_order.outStoreNum = #{outStoreNum}</if>
|
|
|
+ <if test="outStoreTimes != null "> and cm_shop_order.outStoreTimes = #{outStoreTimes}</if>
|
|
|
+ <if test="townID != null "> and cm_shop_order.townID = #{townID}</if>
|
|
|
+ <if test="note != null and note != ''"> and cm_shop_order.note = #{note}</if>
|
|
|
+ <if test="eachDiscount != null "> and cm_shop_order.eachDiscount = #{eachDiscount}</if>
|
|
|
+ <if test="realPay != null "> and cm_shop_order.realPay = #{realPay}</if>
|
|
|
+ <if test="receiptAmount != null "> and cm_shop_order.receiptAmount = #{receiptAmount}</if>
|
|
|
+ <if test="accountAmount != null "> and cm_shop_order.accountAmount = #{accountAmount}</if>
|
|
|
+ <if test="productAmount != null "> and cm_shop_order.productAmount = #{productAmount}</if>
|
|
|
+ <if test="totalAmount != null "> and cm_shop_order.totalAmount = #{totalAmount}</if>
|
|
|
+ <if test="needPayAmount != null "> and cm_shop_order.needPayAmount = #{needPayAmount}</if>
|
|
|
+ <if test="discountAmount != null "> and cm_shop_order.discountAmount = #{discountAmount}</if>
|
|
|
+ <if test="preferential != null "> and cm_shop_order.preferential = #{preferential}</if>
|
|
|
+ <if test="promotionFullReduction != null "> and cm_shop_order.promotionFullReduction = #{promotionFullReduction}</if>
|
|
|
+ <if test="payFlag != null and payFlag != ''"> and cm_shop_order.payFlag = #{payFlag}</if>
|
|
|
+ <if test="orderTime != null and orderTime != ''"> and cm_shop_order.orderTime = #{orderTime}</if>
|
|
|
+ <if test="payTime != null and payTime != ''"> and cm_shop_order.payTime = #{payTime}</if>
|
|
|
+ <if test="finishTime != null and finishTime != ''"> and cm_shop_order.finishTime = #{finishTime}</if>
|
|
|
+ <if test="autoOverTimeMills != null "> and cm_shop_order.autoOverTimeMills = #{autoOverTimeMills}</if>
|
|
|
+ <if test="settleStatus != null and settleStatus != ''"> and cm_shop_order.settleStatus = #{settleStatus}</if>
|
|
|
+ <if test="payStatus != null and payStatus != ''"> and cm_shop_order.payStatus = #{payStatus}</if>
|
|
|
+ <if test="receiptStatus != null and receiptStatus != ''"> and cm_shop_order.receiptStatus = #{receiptStatus}</if>
|
|
|
+ <if test="sendOutStatus != null and sendOutStatus != ''"> and cm_shop_order.sendOutStatus = #{sendOutStatus}</if>
|
|
|
+ <if test="refundStatus != null "> and cm_shop_order.refundStatus = #{refundStatus}</if>
|
|
|
+ <if test="returnGoodsStatus != null "> and cm_shop_order.returnGoodsStatus = #{returnGoodsStatus}</if>
|
|
|
+ <if test="receiveGoodsTime != null and receiveGoodsTime != ''"> and cm_shop_order.receiveGoodsTime = #{receiveGoodsTime}</if>
|
|
|
+ <if test="autoReceiveTimeMills != null "> and cm_shop_order.autoReceiveTimeMills = #{autoReceiveTimeMills}</if>
|
|
|
+ <if test="totalAddedValueTax != null "> and cm_shop_order.totalAddedValueTax = #{totalAddedValueTax}</if>
|
|
|
+ <if test="canRefundAmount != null "> and cm_shop_order.canRefundAmount = #{canRefundAmount}</if>
|
|
|
+ <if test="refundAmount != null "> and cm_shop_order.refundAmount = #{refundAmount}</if>
|
|
|
+ <if test="clubID != null "> and cm_shop_order.clubID = #{clubID}</if>
|
|
|
+ <if test="spID != null "> and cm_shop_order.spID = #{spID}</if>
|
|
|
+ <if test="mainSpID != null "> and cm_shop_order.mainSpID = #{mainSpID}</if>
|
|
|
+ <if test="orderBeanAmount != null "> and cm_shop_order.orderBeanAmount = #{orderBeanAmount}</if>
|
|
|
+ <if test="useBeanAmount != null "> and cm_shop_order.useBeanAmount = #{useBeanAmount}</if>
|
|
|
+ <if test="useBeanFlag != null "> and cm_shop_order.useBeanFlag = #{useBeanFlag}</if>
|
|
|
+ <if test="canRefundFlag != null "> and cm_shop_order.canRefundFlag = #{canRefundFlag}</if>
|
|
|
+ <if test="useBalanceFlag != null "> and cm_shop_order.useBalanceFlag = #{useBalanceFlag}</if>
|
|
|
+ <if test="canRefundBeans != null "> and cm_shop_order.canRefundBeans = #{canRefundBeans}</if>
|
|
|
+ <if test="freePostageFee != null "> and cm_shop_order.freePostageFee = #{freePostageFee}</if>
|
|
|
+ <if test="freePostageTicketID != null "> and cm_shop_order.freePostageTicketID = #{freePostageTicketID}</if>
|
|
|
+ <if test="brokerage != null "> and cm_shop_order.brokerage = #{brokerage}</if>
|
|
|
+ <if test="delFlag != null and delFlag != ''"> and cm_shop_order.delFlag = #{delFlag}</if>
|
|
|
+ <if test="refundsAmount != null "> and cm_shop_order.refundsAmount = #{refundsAmount}</if>
|
|
|
+ <if test="orderStatusFlag != null and orderStatusFlag != ''"> and cm_shop_order.orderStatusFlag = #{orderStatusFlag}</if>
|
|
|
+ <if test="buyStatus != null and buyStatus != ''"> and cm_shop_order.buyStatus = #{buyStatus}</if>
|
|
|
+ <if test="deliveryTimeMills != null and deliveryTimeMills != ''"> and cm_shop_order.deliveryTimeMills = #{deliveryTimeMills}</if>
|
|
|
+ <if test="orderDeliveryID != null "> and cm_shop_order.orderDeliveryID = #{orderDeliveryID}</if>
|
|
|
+ <if test="splitFlag != null and splitFlag != ''"> and cm_shop_order.splitFlag = #{splitFlag}</if>
|
|
|
+ <if test="paying != null and paying != ''"> and cm_shop_order.paying = #{paying}</if>
|
|
|
+ <if test="shopProductAmount != null "> and cm_shop_order.shopProductAmount = #{shopProductAmount}</if>
|
|
|
+ <if test="shopPostFee != null "> and cm_shop_order.shopPostFee = #{shopPostFee}</if>
|
|
|
+ <if test="secondHandOrderFlag != null and secondHandOrderFlag != ''"> and cm_shop_order.secondHandOrderFlag = #{secondHandOrderFlag}</if>
|
|
|
+ <if test="shopPostFlag != null and shopPostFlag != ''"> and cm_shop_order.shopPostFlag = #{shopPostFlag}</if>
|
|
|
+ <if test="shopTaxFee != null "> and cm_shop_order.shopTaxFee = #{shopTaxFee}</if>
|
|
|
+ <if test="payCmAmount != null "> and cm_shop_order.payCmAmount = #{payCmAmount}</if>
|
|
|
+ <if test="shouldPayShopAmount != null "> and cm_shop_order.shouldPayShopAmount = #{shouldPayShopAmount}</if>
|
|
|
+ <if test="payedShopAmount != null "> and cm_shop_order.payedShopAmount = #{payedShopAmount}</if>
|
|
|
+ <if test="shopOtherFee != null "> and cm_shop_order.shopOtherFee = #{shopOtherFee}</if>
|
|
|
+ <if test="receiptedFlag != null and receiptedFlag != ''"> and cm_shop_order.receiptedFlag = #{receiptedFlag}</if>
|
|
|
+ <if test="receiptedType != null and receiptedType != ''"> and cm_shop_order.receiptedType = #{receiptedType}</if>
|
|
|
+ <if test="costType != null and costType != ''"> and cm_shop_order.costType = #{costType}</if>
|
|
|
+ <if test="proportional != null "> and cm_shop_order.proportional = #{proportional}</if>
|
|
|
+ <if test="modifyShouldPayNote != null and modifyShouldPayNote != ''"> and cm_shop_order.modifyShouldPayNote = #{modifyShouldPayNote}</if>
|
|
|
+ <if test="modifyShouldPayUserID != null "> and cm_shop_order.modifyShouldPayUserID = #{modifyShouldPayUserID}</if>
|
|
|
+ <if test="modifyShouldPayDate != null "> and cm_shop_order.modifyShouldPayDate = #{modifyShouldPayDate}</if>
|
|
|
+ <if test="zeroCostFlag != null "> and cm_shop_order.zeroCostFlag = #{zeroCostFlag}</if>
|
|
|
+ <if test="differenceType != null and differenceType != ''"> and cm_shop_order.differenceType = #{differenceType}</if>
|
|
|
+ <if test="differencePrice != null "> and cm_shop_order.differencePrice = #{differencePrice}</if>
|
|
|
+ <if test="svipShopReduction != null "> and cm_shop_order.svipShopReduction = #{svipShopReduction}</if>
|
|
|
+ <if test="splitCode != null and splitCode != ''"> and cm_shop_order.splitCode = #{splitCode}</if>
|
|
|
+ <if test="paySuccessCounter != null "> and cm_shop_order.paySuccessCounter = #{paySuccessCounter}</if>
|
|
|
+ <if test="onlinePayWays != null and onlinePayWays != ''"> and cm_shop_order.onlinePayWays = #{onlinePayWays}</if>
|
|
|
+ <if test="shopStatus != null and shopStatus != ''"> and cm_shop_order.shopStatus = #{shopStatus}</if>
|
|
|
+ </where>
|
|
|
+ group by cm_shop_order.shopOrderID
|
|
|
+ order by cm_shop_order.createTime desc
|
|
|
+ limit 0,1
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getCmShopOrderList" parameterType="com.caimei.modules.order.entity.NewShopOrder" resultMap="CmShopOrderResult">
|
|
|
+ <include refid="selectCmShopOrderVo"/>
|
|
|
+ from cm_shop_order AS cm_shop_order
|
|
|
+ <where> cm_shop_order.delFlag = 0
|
|
|
+ <if test="shopOrderID != null and shopOrderID != ''">
|
|
|
+ and cm_shop_order.shopOrderID
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('=')==-1">
|
|
|
+ = #{shopOrderID}
|
|
|
+ </if>
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('=')!=-1">
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
+ <foreach item="shopOrderIDIn" collection="shopOrderID.substring(shopOrderID.toUpperCase().indexOf('=')+1,shopOrderID.length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
+ #{shopOrderIDIn}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
+ <if test="shopOrderNo != null and shopOrderNo != ''"> and cm_shop_order.shopOrderNo = #{shopOrderNo}</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''"> and cm_shop_order.orderNo = #{orderNo}</if>
|
|
|
+ <if test="orderID != null "> and cm_shop_order.orderID = #{orderID}</if>
|
|
|
+ <if test="organizeID != null "> and cm_shop_order.organizeID = #{organizeID}</if>
|
|
|
+ <if test="isColdChina != null "> and cm_shop_order.isColdChina = #{isColdChina}</if>
|
|
|
+ <if test="userID != null "> and cm_shop_order.userID = #{userID}</if>
|
|
|
+ <if test="shopID != null "> and cm_shop_order.shopID = #{shopID}</if>
|
|
|
+ <if test="orderPromotionsId != null "> and cm_shop_order.orderPromotionsId = #{orderPromotionsId}</if>
|
|
|
+ <if test="orderType != null "> and cm_shop_order.orderType = #{orderType}</if>
|
|
|
+ <if test="orderSubmitType != null "> and cm_shop_order.orderSubmitType = #{orderSubmitType}</if>
|
|
|
+ <if test="presentNum != null "> and cm_shop_order.presentNum = #{presentNum}</if>
|
|
|
+ <if test="itemCount != null "> and cm_shop_order.itemCount = #{itemCount}</if>
|
|
|
+ <if test="outStoreNum != null "> and cm_shop_order.outStoreNum = #{outStoreNum}</if>
|
|
|
+ <if test="outStoreTimes != null "> and cm_shop_order.outStoreTimes = #{outStoreTimes}</if>
|
|
|
+ <if test="townID != null "> and cm_shop_order.townID = #{townID}</if>
|
|
|
+ <if test="note != null and note != ''"> and cm_shop_order.note = #{note}</if>
|
|
|
+ <if test="eachDiscount != null "> and cm_shop_order.eachDiscount = #{eachDiscount}</if>
|
|
|
+ <if test="realPay != null "> and cm_shop_order.realPay = #{realPay}</if>
|
|
|
+ <if test="receiptAmount != null "> and cm_shop_order.receiptAmount = #{receiptAmount}</if>
|
|
|
+ <if test="accountAmount != null "> and cm_shop_order.accountAmount = #{accountAmount}</if>
|
|
|
+ <if test="productAmount != null "> and cm_shop_order.productAmount = #{productAmount}</if>
|
|
|
+ <if test="totalAmount != null "> and cm_shop_order.totalAmount = #{totalAmount}</if>
|
|
|
+ <if test="needPayAmount != null "> and cm_shop_order.needPayAmount = #{needPayAmount}</if>
|
|
|
+ <if test="discountAmount != null "> and cm_shop_order.discountAmount = #{discountAmount}</if>
|
|
|
+ <if test="preferential != null "> and cm_shop_order.preferential = #{preferential}</if>
|
|
|
+ <if test="promotionFullReduction != null "> and cm_shop_order.promotionFullReduction = #{promotionFullReduction}</if>
|
|
|
+ <if test="payFlag != null and payFlag != ''"> and cm_shop_order.payFlag = #{payFlag}</if>
|
|
|
+ <if test="orderTime != null and orderTime != ''"> and cm_shop_order.orderTime = #{orderTime}</if>
|
|
|
+ <if test="payTime != null and payTime != ''"> and cm_shop_order.payTime = #{payTime}</if>
|
|
|
+ <if test="finishTime != null and finishTime != ''"> and cm_shop_order.finishTime = #{finishTime}</if>
|
|
|
+ <if test="autoOverTimeMills != null "> and cm_shop_order.autoOverTimeMills = #{autoOverTimeMills}</if>
|
|
|
+ <if test="settleStatus != null and settleStatus != ''"> and cm_shop_order.settleStatus = #{settleStatus}</if>
|
|
|
+ <if test="payStatus != null and payStatus != ''"> and cm_shop_order.payStatus = #{payStatus}</if>
|
|
|
+ <if test="receiptStatus != null and receiptStatus != ''"> and cm_shop_order.receiptStatus = #{receiptStatus}</if>
|
|
|
+ <if test="sendOutStatus != null and sendOutStatus != ''"> and cm_shop_order.sendOutStatus = #{sendOutStatus}</if>
|
|
|
+ <if test="refundStatus != null "> and cm_shop_order.refundStatus = #{refundStatus}</if>
|
|
|
+ <if test="returnGoodsStatus != null "> and cm_shop_order.returnGoodsStatus = #{returnGoodsStatus}</if>
|
|
|
+ <if test="receiveGoodsTime != null and receiveGoodsTime != ''"> and cm_shop_order.receiveGoodsTime = #{receiveGoodsTime}</if>
|
|
|
+ <if test="autoReceiveTimeMills != null "> and cm_shop_order.autoReceiveTimeMills = #{autoReceiveTimeMills}</if>
|
|
|
+ <if test="totalAddedValueTax != null "> and cm_shop_order.totalAddedValueTax = #{totalAddedValueTax}</if>
|
|
|
+ <if test="canRefundAmount != null "> and cm_shop_order.canRefundAmount = #{canRefundAmount}</if>
|
|
|
+ <if test="refundAmount != null "> and cm_shop_order.refundAmount = #{refundAmount}</if>
|
|
|
+ <if test="clubID != null "> and cm_shop_order.clubID = #{clubID}</if>
|
|
|
+ <if test="spID != null "> and cm_shop_order.spID = #{spID}</if>
|
|
|
+ <if test="mainSpID != null "> and cm_shop_order.mainSpID = #{mainSpID}</if>
|
|
|
+ <if test="orderBeanAmount != null "> and cm_shop_order.orderBeanAmount = #{orderBeanAmount}</if>
|
|
|
+ <if test="useBeanAmount != null "> and cm_shop_order.useBeanAmount = #{useBeanAmount}</if>
|
|
|
+ <if test="useBeanFlag != null "> and cm_shop_order.useBeanFlag = #{useBeanFlag}</if>
|
|
|
+ <if test="canRefundFlag != null "> and cm_shop_order.canRefundFlag = #{canRefundFlag}</if>
|
|
|
+ <if test="useBalanceFlag != null "> and cm_shop_order.useBalanceFlag = #{useBalanceFlag}</if>
|
|
|
+ <if test="canRefundBeans != null "> and cm_shop_order.canRefundBeans = #{canRefundBeans}</if>
|
|
|
+ <if test="freePostageFee != null "> and cm_shop_order.freePostageFee = #{freePostageFee}</if>
|
|
|
+ <if test="freePostageTicketID != null "> and cm_shop_order.freePostageTicketID = #{freePostageTicketID}</if>
|
|
|
+ <if test="brokerage != null "> and cm_shop_order.brokerage = #{brokerage}</if>
|
|
|
+ <if test="delFlag != null and delFlag != ''"> and cm_shop_order.delFlag = #{delFlag}</if>
|
|
|
+ <if test="refundsAmount != null "> and cm_shop_order.refundsAmount = #{refundsAmount}</if>
|
|
|
+ <if test="orderStatusFlag != null and orderStatusFlag != ''"> and cm_shop_order.orderStatusFlag = #{orderStatusFlag}</if>
|
|
|
+ <if test="buyStatus != null and buyStatus != ''"> and cm_shop_order.buyStatus = #{buyStatus}</if>
|
|
|
+ <if test="deliveryTimeMills != null and deliveryTimeMills != ''"> and cm_shop_order.deliveryTimeMills = #{deliveryTimeMills}</if>
|
|
|
+ <if test="orderDeliveryID != null "> and cm_shop_order.orderDeliveryID = #{orderDeliveryID}</if>
|
|
|
+ <if test="splitFlag != null and splitFlag != ''"> and cm_shop_order.splitFlag = #{splitFlag}</if>
|
|
|
+ <if test="paying != null and paying != ''"> and cm_shop_order.paying = #{paying}</if>
|
|
|
+ <if test="shopProductAmount != null "> and cm_shop_order.shopProductAmount = #{shopProductAmount}</if>
|
|
|
+ <if test="shopPostFee != null "> and cm_shop_order.shopPostFee = #{shopPostFee}</if>
|
|
|
+ <if test="secondHandOrderFlag != null and secondHandOrderFlag != ''"> and cm_shop_order.secondHandOrderFlag = #{secondHandOrderFlag}</if>
|
|
|
+ <if test="shopPostFlag != null and shopPostFlag != ''"> and cm_shop_order.shopPostFlag = #{shopPostFlag}</if>
|
|
|
+ <if test="shopTaxFee != null "> and cm_shop_order.shopTaxFee = #{shopTaxFee}</if>
|
|
|
+ <if test="payCmAmount != null "> and cm_shop_order.payCmAmount = #{payCmAmount}</if>
|
|
|
+ <if test="shouldPayShopAmount != null "> and cm_shop_order.shouldPayShopAmount = #{shouldPayShopAmount}</if>
|
|
|
+ <if test="payedShopAmount != null "> and cm_shop_order.payedShopAmount = #{payedShopAmount}</if>
|
|
|
+ <if test="shopOtherFee != null "> and cm_shop_order.shopOtherFee = #{shopOtherFee}</if>
|
|
|
+ <if test="receiptedFlag != null and receiptedFlag != ''"> and cm_shop_order.receiptedFlag = #{receiptedFlag}</if>
|
|
|
+ <if test="receiptedType != null and receiptedType != ''"> and cm_shop_order.receiptedType = #{receiptedType}</if>
|
|
|
+ <if test="costType != null and costType != ''"> and cm_shop_order.costType = #{costType}</if>
|
|
|
+ <if test="proportional != null "> and cm_shop_order.proportional = #{proportional}</if>
|
|
|
+ <if test="modifyShouldPayNote != null and modifyShouldPayNote != ''"> and cm_shop_order.modifyShouldPayNote = #{modifyShouldPayNote}</if>
|
|
|
+ <if test="modifyShouldPayUserID != null "> and cm_shop_order.modifyShouldPayUserID = #{modifyShouldPayUserID}</if>
|
|
|
+ <if test="modifyShouldPayDate != null "> and cm_shop_order.modifyShouldPayDate = #{modifyShouldPayDate}</if>
|
|
|
+ <if test="zeroCostFlag != null "> and cm_shop_order.zeroCostFlag = #{zeroCostFlag}</if>
|
|
|
+ <if test="differenceType != null and differenceType != ''"> and cm_shop_order.differenceType = #{differenceType}</if>
|
|
|
+ <if test="differencePrice != null "> and cm_shop_order.differencePrice = #{differencePrice}</if>
|
|
|
+ <if test="svipShopReduction != null "> and cm_shop_order.svipShopReduction = #{svipShopReduction}</if>
|
|
|
+ <if test="splitCode != null and splitCode != ''"> and cm_shop_order.splitCode = #{splitCode}</if>
|
|
|
+ <if test="paySuccessCounter != null "> and cm_shop_order.paySuccessCounter = #{paySuccessCounter}</if>
|
|
|
+ <if test="onlinePayWays != null and onlinePayWays != ''"> and cm_shop_order.onlinePayWays = #{onlinePayWays}</if>
|
|
|
+ <if test="shopStatus != null and shopStatus != ''"> and cm_shop_order.shopStatus = #{shopStatus}</if>
|
|
|
+ </where>
|
|
|
+ group by cm_shop_order.shopOrderID
|
|
|
+ order by cm_shop_order.createTime desc
|
|
|
+ </select>
|
|
|
+ <select id="getCmShopOrderCount" parameterType="com.caimei.modules.order.entity.NewShopOrder" resultType="String">
|
|
|
+ select count(1)
|
|
|
+ from cm_shop_order AS cm_shop_order
|
|
|
+ <where> cm_shop_order.delFlag = 0
|
|
|
+ <if test="shopOrderID != null and shopOrderID != ''">
|
|
|
+ and cm_shop_order.shopOrderID
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('=')==-1">
|
|
|
+ = #{shopOrderID}
|
|
|
+ </if>
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('=')!=-1">
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
+ <foreach item="shopOrderIDIn" collection="shopOrderID.substring(shopOrderID.toUpperCase().indexOf('=')+1,shopOrderID.length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
+ #{shopOrderIDIn}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
+ <if test="shopOrderNo != null and shopOrderNo != ''"> and cm_shop_order.shopOrderNo = #{shopOrderNo}</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''"> and cm_shop_order.orderNo = #{orderNo}</if>
|
|
|
+ <if test="orderID != null "> and cm_shop_order.orderID = #{orderID}</if>
|
|
|
+ <if test="organizeID != null "> and cm_shop_order.organizeID = #{organizeID}</if>
|
|
|
+ <if test="isColdChina != null "> and cm_shop_order.isColdChina = #{isColdChina}</if>
|
|
|
+ <if test="userID != null "> and cm_shop_order.userID = #{userID}</if>
|
|
|
+ <if test="shopID != null "> and cm_shop_order.shopID = #{shopID}</if>
|
|
|
+ <if test="orderPromotionsId != null "> and cm_shop_order.orderPromotionsId = #{orderPromotionsId}</if>
|
|
|
+ <if test="orderType != null "> and cm_shop_order.orderType = #{orderType}</if>
|
|
|
+ <if test="orderSubmitType != null "> and cm_shop_order.orderSubmitType = #{orderSubmitType}</if>
|
|
|
+ <if test="presentNum != null "> and cm_shop_order.presentNum = #{presentNum}</if>
|
|
|
+ <if test="itemCount != null "> and cm_shop_order.itemCount = #{itemCount}</if>
|
|
|
+ <if test="outStoreNum != null "> and cm_shop_order.outStoreNum = #{outStoreNum}</if>
|
|
|
+ <if test="outStoreTimes != null "> and cm_shop_order.outStoreTimes = #{outStoreTimes}</if>
|
|
|
+ <if test="townID != null "> and cm_shop_order.townID = #{townID}</if>
|
|
|
+ <if test="note != null and note != ''"> and cm_shop_order.note = #{note}</if>
|
|
|
+ <if test="eachDiscount != null "> and cm_shop_order.eachDiscount = #{eachDiscount}</if>
|
|
|
+ <if test="realPay != null "> and cm_shop_order.realPay = #{realPay}</if>
|
|
|
+ <if test="receiptAmount != null "> and cm_shop_order.receiptAmount = #{receiptAmount}</if>
|
|
|
+ <if test="accountAmount != null "> and cm_shop_order.accountAmount = #{accountAmount}</if>
|
|
|
+ <if test="productAmount != null "> and cm_shop_order.productAmount = #{productAmount}</if>
|
|
|
+ <if test="totalAmount != null "> and cm_shop_order.totalAmount = #{totalAmount}</if>
|
|
|
+ <if test="needPayAmount != null "> and cm_shop_order.needPayAmount = #{needPayAmount}</if>
|
|
|
+ <if test="discountAmount != null "> and cm_shop_order.discountAmount = #{discountAmount}</if>
|
|
|
+ <if test="preferential != null "> and cm_shop_order.preferential = #{preferential}</if>
|
|
|
+ <if test="promotionFullReduction != null "> and cm_shop_order.promotionFullReduction = #{promotionFullReduction}</if>
|
|
|
+ <if test="payFlag != null and payFlag != ''"> and cm_shop_order.payFlag = #{payFlag}</if>
|
|
|
+ <if test="orderTime != null and orderTime != ''"> and cm_shop_order.orderTime = #{orderTime}</if>
|
|
|
+ <if test="payTime != null and payTime != ''"> and cm_shop_order.payTime = #{payTime}</if>
|
|
|
+ <if test="finishTime != null and finishTime != ''"> and cm_shop_order.finishTime = #{finishTime}</if>
|
|
|
+ <if test="autoOverTimeMills != null "> and cm_shop_order.autoOverTimeMills = #{autoOverTimeMills}</if>
|
|
|
+ <if test="settleStatus != null and settleStatus != ''"> and cm_shop_order.settleStatus = #{settleStatus}</if>
|
|
|
+ <if test="payStatus != null and payStatus != ''"> and cm_shop_order.payStatus = #{payStatus}</if>
|
|
|
+ <if test="receiptStatus != null and receiptStatus != ''"> and cm_shop_order.receiptStatus = #{receiptStatus}</if>
|
|
|
+ <if test="sendOutStatus != null and sendOutStatus != ''"> and cm_shop_order.sendOutStatus = #{sendOutStatus}</if>
|
|
|
+ <if test="refundStatus != null "> and cm_shop_order.refundStatus = #{refundStatus}</if>
|
|
|
+ <if test="returnGoodsStatus != null "> and cm_shop_order.returnGoodsStatus = #{returnGoodsStatus}</if>
|
|
|
+ <if test="receiveGoodsTime != null and receiveGoodsTime != ''"> and cm_shop_order.receiveGoodsTime = #{receiveGoodsTime}</if>
|
|
|
+ <if test="autoReceiveTimeMills != null "> and cm_shop_order.autoReceiveTimeMills = #{autoReceiveTimeMills}</if>
|
|
|
+ <if test="totalAddedValueTax != null "> and cm_shop_order.totalAddedValueTax = #{totalAddedValueTax}</if>
|
|
|
+ <if test="canRefundAmount != null "> and cm_shop_order.canRefundAmount = #{canRefundAmount}</if>
|
|
|
+ <if test="refundAmount != null "> and cm_shop_order.refundAmount = #{refundAmount}</if>
|
|
|
+ <if test="clubID != null "> and cm_shop_order.clubID = #{clubID}</if>
|
|
|
+ <if test="spID != null "> and cm_shop_order.spID = #{spID}</if>
|
|
|
+ <if test="mainSpID != null "> and cm_shop_order.mainSpID = #{mainSpID}</if>
|
|
|
+ <if test="orderBeanAmount != null "> and cm_shop_order.orderBeanAmount = #{orderBeanAmount}</if>
|
|
|
+ <if test="useBeanAmount != null "> and cm_shop_order.useBeanAmount = #{useBeanAmount}</if>
|
|
|
+ <if test="useBeanFlag != null "> and cm_shop_order.useBeanFlag = #{useBeanFlag}</if>
|
|
|
+ <if test="canRefundFlag != null "> and cm_shop_order.canRefundFlag = #{canRefundFlag}</if>
|
|
|
+ <if test="useBalanceFlag != null "> and cm_shop_order.useBalanceFlag = #{useBalanceFlag}</if>
|
|
|
+ <if test="canRefundBeans != null "> and cm_shop_order.canRefundBeans = #{canRefundBeans}</if>
|
|
|
+ <if test="freePostageFee != null "> and cm_shop_order.freePostageFee = #{freePostageFee}</if>
|
|
|
+ <if test="freePostageTicketID != null "> and cm_shop_order.freePostageTicketID = #{freePostageTicketID}</if>
|
|
|
+ <if test="brokerage != null "> and cm_shop_order.brokerage = #{brokerage}</if>
|
|
|
+ <if test="delFlag != null and delFlag != ''"> and cm_shop_order.delFlag = #{delFlag}</if>
|
|
|
+ <if test="refundsAmount != null "> and cm_shop_order.refundsAmount = #{refundsAmount}</if>
|
|
|
+ <if test="orderStatusFlag != null and orderStatusFlag != ''"> and cm_shop_order.orderStatusFlag = #{orderStatusFlag}</if>
|
|
|
+ <if test="buyStatus != null and buyStatus != ''"> and cm_shop_order.buyStatus = #{buyStatus}</if>
|
|
|
+ <if test="deliveryTimeMills != null and deliveryTimeMills != ''"> and cm_shop_order.deliveryTimeMills = #{deliveryTimeMills}</if>
|
|
|
+ <if test="orderDeliveryID != null "> and cm_shop_order.orderDeliveryID = #{orderDeliveryID}</if>
|
|
|
+ <if test="splitFlag != null and splitFlag != ''"> and cm_shop_order.splitFlag = #{splitFlag}</if>
|
|
|
+ <if test="paying != null and paying != ''"> and cm_shop_order.paying = #{paying}</if>
|
|
|
+ <if test="shopProductAmount != null "> and cm_shop_order.shopProductAmount = #{shopProductAmount}</if>
|
|
|
+ <if test="shopPostFee != null "> and cm_shop_order.shopPostFee = #{shopPostFee}</if>
|
|
|
+ <if test="secondHandOrderFlag != null and secondHandOrderFlag != ''"> and cm_shop_order.secondHandOrderFlag = #{secondHandOrderFlag}</if>
|
|
|
+ <if test="shopPostFlag != null and shopPostFlag != ''"> and cm_shop_order.shopPostFlag = #{shopPostFlag}</if>
|
|
|
+ <if test="shopTaxFee != null "> and cm_shop_order.shopTaxFee = #{shopTaxFee}</if>
|
|
|
+ <if test="payCmAmount != null "> and cm_shop_order.payCmAmount = #{payCmAmount}</if>
|
|
|
+ <if test="shouldPayShopAmount != null "> and cm_shop_order.shouldPayShopAmount = #{shouldPayShopAmount}</if>
|
|
|
+ <if test="payedShopAmount != null "> and cm_shop_order.payedShopAmount = #{payedShopAmount}</if>
|
|
|
+ <if test="shopOtherFee != null "> and cm_shop_order.shopOtherFee = #{shopOtherFee}</if>
|
|
|
+ <if test="receiptedFlag != null and receiptedFlag != ''"> and cm_shop_order.receiptedFlag = #{receiptedFlag}</if>
|
|
|
+ <if test="receiptedType != null and receiptedType != ''"> and cm_shop_order.receiptedType = #{receiptedType}</if>
|
|
|
+ <if test="costType != null and costType != ''"> and cm_shop_order.costType = #{costType}</if>
|
|
|
+ <if test="proportional != null "> and cm_shop_order.proportional = #{proportional}</if>
|
|
|
+ <if test="modifyShouldPayNote != null and modifyShouldPayNote != ''"> and cm_shop_order.modifyShouldPayNote = #{modifyShouldPayNote}</if>
|
|
|
+ <if test="modifyShouldPayUserID != null "> and cm_shop_order.modifyShouldPayUserID = #{modifyShouldPayUserID}</if>
|
|
|
+ <if test="modifyShouldPayDate != null "> and cm_shop_order.modifyShouldPayDate = #{modifyShouldPayDate}</if>
|
|
|
+ <if test="zeroCostFlag != null "> and cm_shop_order.zeroCostFlag = #{zeroCostFlag}</if>
|
|
|
+ <if test="differenceType != null and differenceType != ''"> and cm_shop_order.differenceType = #{differenceType}</if>
|
|
|
+ <if test="differencePrice != null "> and cm_shop_order.differencePrice = #{differencePrice}</if>
|
|
|
+ <if test="svipShopReduction != null "> and cm_shop_order.svipShopReduction = #{svipShopReduction}</if>
|
|
|
+ <if test="splitCode != null and splitCode != ''"> and cm_shop_order.splitCode = #{splitCode}</if>
|
|
|
+ <if test="paySuccessCounter != null "> and cm_shop_order.paySuccessCounter = #{paySuccessCounter}</if>
|
|
|
+ <if test="onlinePayWays != null and onlinePayWays != ''"> and cm_shop_order.onlinePayWays = #{onlinePayWays}</if>
|
|
|
+ <if test="shopStatus != null and shopStatus != ''"> and cm_shop_order.shopStatus = #{shopStatus}</if>
|
|
|
+ </where>
|
|
|
+ group by cm_shop_order.shopOrderID
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getCmShopOrderByShopOrderID" parameterType="String" resultMap="CmShopOrderResult">
|
|
|
+ <include refid="selectCmShopOrderVo"/>
|
|
|
+ from cm_shop_order AS cm_shop_order
|
|
|
+ where cm_shop_order.delFlag = 0 and cm_shop_order.shopOrderID = #{shopOrderID}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getByIds" parameterType="com.caimei.modules.order.entity.NewShopOrder" resultType="String">
|
|
|
+ select shopOrderID
|
|
|
+ from cm_shop_order AS cm_shop_order
|
|
|
+ <where> cm_shop_order.delFlag = 0
|
|
|
+ <if test="shopOrderID != null and shopOrderID != ''">
|
|
|
+ and cm_shop_order.shopOrderID
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('=')==-1">
|
|
|
+ = #{shopOrderID}
|
|
|
+ </if>
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('=')!=-1">
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
+ <foreach item="shopOrderIDIn" collection="shopOrderID.substring(shopOrderID.toUpperCase().indexOf('=')+1,shopOrderID.length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
+ #{shopOrderIDIn}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
+ <if test="shopOrderNo != null and shopOrderNo != ''"> and cm_shop_order.shopOrderNo = #{shopOrderNo}</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''"> and cm_shop_order.orderNo = #{orderNo}</if>
|
|
|
+ <if test="orderID != null "> and cm_shop_order.orderID = #{orderID}</if>
|
|
|
+ <if test="organizeID != null "> and cm_shop_order.organizeID = #{organizeID}</if>
|
|
|
+ <if test="isColdChina != null "> and cm_shop_order.isColdChina = #{isColdChina}</if>
|
|
|
+ <if test="userID != null "> and cm_shop_order.userID = #{userID}</if>
|
|
|
+ <if test="shopID != null "> and cm_shop_order.shopID = #{shopID}</if>
|
|
|
+ <if test="orderPromotionsId != null "> and cm_shop_order.orderPromotionsId = #{orderPromotionsId}</if>
|
|
|
+ <if test="orderType != null "> and cm_shop_order.orderType = #{orderType}</if>
|
|
|
+ <if test="orderSubmitType != null "> and cm_shop_order.orderSubmitType = #{orderSubmitType}</if>
|
|
|
+ <if test="presentNum != null "> and cm_shop_order.presentNum = #{presentNum}</if>
|
|
|
+ <if test="itemCount != null "> and cm_shop_order.itemCount = #{itemCount}</if>
|
|
|
+ <if test="outStoreNum != null "> and cm_shop_order.outStoreNum = #{outStoreNum}</if>
|
|
|
+ <if test="outStoreTimes != null "> and cm_shop_order.outStoreTimes = #{outStoreTimes}</if>
|
|
|
+ <if test="townID != null "> and cm_shop_order.townID = #{townID}</if>
|
|
|
+ <if test="note != null and note != ''"> and cm_shop_order.note = #{note}</if>
|
|
|
+ <if test="eachDiscount != null "> and cm_shop_order.eachDiscount = #{eachDiscount}</if>
|
|
|
+ <if test="realPay != null "> and cm_shop_order.realPay = #{realPay}</if>
|
|
|
+ <if test="receiptAmount != null "> and cm_shop_order.receiptAmount = #{receiptAmount}</if>
|
|
|
+ <if test="accountAmount != null "> and cm_shop_order.accountAmount = #{accountAmount}</if>
|
|
|
+ <if test="productAmount != null "> and cm_shop_order.productAmount = #{productAmount}</if>
|
|
|
+ <if test="totalAmount != null "> and cm_shop_order.totalAmount = #{totalAmount}</if>
|
|
|
+ <if test="needPayAmount != null "> and cm_shop_order.needPayAmount = #{needPayAmount}</if>
|
|
|
+ <if test="discountAmount != null "> and cm_shop_order.discountAmount = #{discountAmount}</if>
|
|
|
+ <if test="preferential != null "> and cm_shop_order.preferential = #{preferential}</if>
|
|
|
+ <if test="promotionFullReduction != null "> and cm_shop_order.promotionFullReduction = #{promotionFullReduction}</if>
|
|
|
+ <if test="payFlag != null and payFlag != ''"> and cm_shop_order.payFlag = #{payFlag}</if>
|
|
|
+ <if test="orderTime != null and orderTime != ''"> and cm_shop_order.orderTime = #{orderTime}</if>
|
|
|
+ <if test="payTime != null and payTime != ''"> and cm_shop_order.payTime = #{payTime}</if>
|
|
|
+ <if test="finishTime != null and finishTime != ''"> and cm_shop_order.finishTime = #{finishTime}</if>
|
|
|
+ <if test="autoOverTimeMills != null "> and cm_shop_order.autoOverTimeMills = #{autoOverTimeMills}</if>
|
|
|
+ <if test="settleStatus != null and settleStatus != ''"> and cm_shop_order.settleStatus = #{settleStatus}</if>
|
|
|
+ <if test="payStatus != null and payStatus != ''"> and cm_shop_order.payStatus = #{payStatus}</if>
|
|
|
+ <if test="receiptStatus != null and receiptStatus != ''"> and cm_shop_order.receiptStatus = #{receiptStatus}</if>
|
|
|
+ <if test="sendOutStatus != null and sendOutStatus != ''"> and cm_shop_order.sendOutStatus = #{sendOutStatus}</if>
|
|
|
+ <if test="refundStatus != null "> and cm_shop_order.refundStatus = #{refundStatus}</if>
|
|
|
+ <if test="returnGoodsStatus != null "> and cm_shop_order.returnGoodsStatus = #{returnGoodsStatus}</if>
|
|
|
+ <if test="receiveGoodsTime != null and receiveGoodsTime != ''"> and cm_shop_order.receiveGoodsTime = #{receiveGoodsTime}</if>
|
|
|
+ <if test="autoReceiveTimeMills != null "> and cm_shop_order.autoReceiveTimeMills = #{autoReceiveTimeMills}</if>
|
|
|
+ <if test="totalAddedValueTax != null "> and cm_shop_order.totalAddedValueTax = #{totalAddedValueTax}</if>
|
|
|
+ <if test="canRefundAmount != null "> and cm_shop_order.canRefundAmount = #{canRefundAmount}</if>
|
|
|
+ <if test="refundAmount != null "> and cm_shop_order.refundAmount = #{refundAmount}</if>
|
|
|
+ <if test="clubID != null "> and cm_shop_order.clubID = #{clubID}</if>
|
|
|
+ <if test="spID != null "> and cm_shop_order.spID = #{spID}</if>
|
|
|
+ <if test="mainSpID != null "> and cm_shop_order.mainSpID = #{mainSpID}</if>
|
|
|
+ <if test="orderBeanAmount != null "> and cm_shop_order.orderBeanAmount = #{orderBeanAmount}</if>
|
|
|
+ <if test="useBeanAmount != null "> and cm_shop_order.useBeanAmount = #{useBeanAmount}</if>
|
|
|
+ <if test="useBeanFlag != null "> and cm_shop_order.useBeanFlag = #{useBeanFlag}</if>
|
|
|
+ <if test="canRefundFlag != null "> and cm_shop_order.canRefundFlag = #{canRefundFlag}</if>
|
|
|
+ <if test="useBalanceFlag != null "> and cm_shop_order.useBalanceFlag = #{useBalanceFlag}</if>
|
|
|
+ <if test="canRefundBeans != null "> and cm_shop_order.canRefundBeans = #{canRefundBeans}</if>
|
|
|
+ <if test="freePostageFee != null "> and cm_shop_order.freePostageFee = #{freePostageFee}</if>
|
|
|
+ <if test="freePostageTicketID != null "> and cm_shop_order.freePostageTicketID = #{freePostageTicketID}</if>
|
|
|
+ <if test="brokerage != null "> and cm_shop_order.brokerage = #{brokerage}</if>
|
|
|
+ <if test="delFlag != null and delFlag != ''"> and cm_shop_order.delFlag = #{delFlag}</if>
|
|
|
+ <if test="refundsAmount != null "> and cm_shop_order.refundsAmount = #{refundsAmount}</if>
|
|
|
+ <if test="orderStatusFlag != null and orderStatusFlag != ''"> and cm_shop_order.orderStatusFlag = #{orderStatusFlag}</if>
|
|
|
+ <if test="buyStatus != null and buyStatus != ''"> and cm_shop_order.buyStatus = #{buyStatus}</if>
|
|
|
+ <if test="deliveryTimeMills != null and deliveryTimeMills != ''"> and cm_shop_order.deliveryTimeMills = #{deliveryTimeMills}</if>
|
|
|
+ <if test="orderDeliveryID != null "> and cm_shop_order.orderDeliveryID = #{orderDeliveryID}</if>
|
|
|
+ <if test="splitFlag != null and splitFlag != ''"> and cm_shop_order.splitFlag = #{splitFlag}</if>
|
|
|
+ <if test="paying != null and paying != ''"> and cm_shop_order.paying = #{paying}</if>
|
|
|
+ <if test="shopProductAmount != null "> and cm_shop_order.shopProductAmount = #{shopProductAmount}</if>
|
|
|
+ <if test="shopPostFee != null "> and cm_shop_order.shopPostFee = #{shopPostFee}</if>
|
|
|
+ <if test="secondHandOrderFlag != null and secondHandOrderFlag != ''"> and cm_shop_order.secondHandOrderFlag = #{secondHandOrderFlag}</if>
|
|
|
+ <if test="shopPostFlag != null and shopPostFlag != ''"> and cm_shop_order.shopPostFlag = #{shopPostFlag}</if>
|
|
|
+ <if test="shopTaxFee != null "> and cm_shop_order.shopTaxFee = #{shopTaxFee}</if>
|
|
|
+ <if test="payCmAmount != null "> and cm_shop_order.payCmAmount = #{payCmAmount}</if>
|
|
|
+ <if test="shouldPayShopAmount != null "> and cm_shop_order.shouldPayShopAmount = #{shouldPayShopAmount}</if>
|
|
|
+ <if test="payedShopAmount != null "> and cm_shop_order.payedShopAmount = #{payedShopAmount}</if>
|
|
|
+ <if test="shopOtherFee != null "> and cm_shop_order.shopOtherFee = #{shopOtherFee}</if>
|
|
|
+ <if test="receiptedFlag != null and receiptedFlag != ''"> and cm_shop_order.receiptedFlag = #{receiptedFlag}</if>
|
|
|
+ <if test="receiptedType != null and receiptedType != ''"> and cm_shop_order.receiptedType = #{receiptedType}</if>
|
|
|
+ <if test="costType != null and costType != ''"> and cm_shop_order.costType = #{costType}</if>
|
|
|
+ <if test="proportional != null "> and cm_shop_order.proportional = #{proportional}</if>
|
|
|
+ <if test="modifyShouldPayNote != null and modifyShouldPayNote != ''"> and cm_shop_order.modifyShouldPayNote = #{modifyShouldPayNote}</if>
|
|
|
+ <if test="modifyShouldPayUserID != null "> and cm_shop_order.modifyShouldPayUserID = #{modifyShouldPayUserID}</if>
|
|
|
+ <if test="modifyShouldPayDate != null "> and cm_shop_order.modifyShouldPayDate = #{modifyShouldPayDate}</if>
|
|
|
+ <if test="zeroCostFlag != null "> and cm_shop_order.zeroCostFlag = #{zeroCostFlag}</if>
|
|
|
+ <if test="differenceType != null and differenceType != ''"> and cm_shop_order.differenceType = #{differenceType}</if>
|
|
|
+ <if test="differencePrice != null "> and cm_shop_order.differencePrice = #{differencePrice}</if>
|
|
|
+ <if test="svipShopReduction != null "> and cm_shop_order.svipShopReduction = #{svipShopReduction}</if>
|
|
|
+ <if test="splitCode != null and splitCode != ''"> and cm_shop_order.splitCode = #{splitCode}</if>
|
|
|
+ <if test="paySuccessCounter != null "> and cm_shop_order.paySuccessCounter = #{paySuccessCounter}</if>
|
|
|
+ <if test="onlinePayWays != null and onlinePayWays != ''"> and cm_shop_order.onlinePayWays = #{onlinePayWays}</if>
|
|
|
+ <if test="shopStatus != null and shopStatus != ''"> and cm_shop_order.shopStatus = #{shopStatus}</if>
|
|
|
+ </where>
|
|
|
+ group by cm_shop_order.shopOrderID
|
|
|
+ </select>
|
|
|
+ <select id="getById" parameterType="com.caimei.modules.order.entity.NewShopOrder" resultType="String">
|
|
|
+ select shopOrderID
|
|
|
+ from cm_shop_order AS cm_shop_order
|
|
|
+ <where> cm_shop_order.delFlag = 0
|
|
|
+ <if test="shopOrderID != null and shopOrderID != ''">
|
|
|
+ and cm_shop_order.shopOrderID
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('=')==-1">
|
|
|
+ = #{shopOrderID}
|
|
|
+ </if>
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('=')!=-1">
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
+ <if test="shopOrderID.toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
+ <foreach item="shopOrderIDIn" collection="shopOrderID.substring(shopOrderID.toUpperCase().indexOf('=')+1,shopOrderID.length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
+ #{shopOrderIDIn}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
+ <if test="shopOrderNo != null and shopOrderNo != ''"> and cm_shop_order.shopOrderNo = #{shopOrderNo}</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''"> and cm_shop_order.orderNo = #{orderNo}</if>
|
|
|
+ <if test="orderID != null "> and cm_shop_order.orderID = #{orderID}</if>
|
|
|
+ <if test="organizeID != null "> and cm_shop_order.organizeID = #{organizeID}</if>
|
|
|
+ <if test="isColdChina != null "> and cm_shop_order.isColdChina = #{isColdChina}</if>
|
|
|
+ <if test="userID != null "> and cm_shop_order.userID = #{userID}</if>
|
|
|
+ <if test="shopID != null "> and cm_shop_order.shopID = #{shopID}</if>
|
|
|
+ <if test="orderPromotionsId != null "> and cm_shop_order.orderPromotionsId = #{orderPromotionsId}</if>
|
|
|
+ <if test="orderType != null "> and cm_shop_order.orderType = #{orderType}</if>
|
|
|
+ <if test="orderSubmitType != null "> and cm_shop_order.orderSubmitType = #{orderSubmitType}</if>
|
|
|
+ <if test="presentNum != null "> and cm_shop_order.presentNum = #{presentNum}</if>
|
|
|
+ <if test="itemCount != null "> and cm_shop_order.itemCount = #{itemCount}</if>
|
|
|
+ <if test="outStoreNum != null "> and cm_shop_order.outStoreNum = #{outStoreNum}</if>
|
|
|
+ <if test="outStoreTimes != null "> and cm_shop_order.outStoreTimes = #{outStoreTimes}</if>
|
|
|
+ <if test="townID != null "> and cm_shop_order.townID = #{townID}</if>
|
|
|
+ <if test="note != null and note != ''"> and cm_shop_order.note = #{note}</if>
|
|
|
+ <if test="eachDiscount != null "> and cm_shop_order.eachDiscount = #{eachDiscount}</if>
|
|
|
+ <if test="realPay != null "> and cm_shop_order.realPay = #{realPay}</if>
|
|
|
+ <if test="receiptAmount != null "> and cm_shop_order.receiptAmount = #{receiptAmount}</if>
|
|
|
+ <if test="accountAmount != null "> and cm_shop_order.accountAmount = #{accountAmount}</if>
|
|
|
+ <if test="productAmount != null "> and cm_shop_order.productAmount = #{productAmount}</if>
|
|
|
+ <if test="totalAmount != null "> and cm_shop_order.totalAmount = #{totalAmount}</if>
|
|
|
+ <if test="needPayAmount != null "> and cm_shop_order.needPayAmount = #{needPayAmount}</if>
|
|
|
+ <if test="discountAmount != null "> and cm_shop_order.discountAmount = #{discountAmount}</if>
|
|
|
+ <if test="preferential != null "> and cm_shop_order.preferential = #{preferential}</if>
|
|
|
+ <if test="promotionFullReduction != null "> and cm_shop_order.promotionFullReduction = #{promotionFullReduction}</if>
|
|
|
+ <if test="payFlag != null and payFlag != ''"> and cm_shop_order.payFlag = #{payFlag}</if>
|
|
|
+ <if test="orderTime != null and orderTime != ''"> and cm_shop_order.orderTime = #{orderTime}</if>
|
|
|
+ <if test="payTime != null and payTime != ''"> and cm_shop_order.payTime = #{payTime}</if>
|
|
|
+ <if test="finishTime != null and finishTime != ''"> and cm_shop_order.finishTime = #{finishTime}</if>
|
|
|
+ <if test="autoOverTimeMills != null "> and cm_shop_order.autoOverTimeMills = #{autoOverTimeMills}</if>
|
|
|
+ <if test="settleStatus != null and settleStatus != ''"> and cm_shop_order.settleStatus = #{settleStatus}</if>
|
|
|
+ <if test="payStatus != null and payStatus != ''"> and cm_shop_order.payStatus = #{payStatus}</if>
|
|
|
+ <if test="receiptStatus != null and receiptStatus != ''"> and cm_shop_order.receiptStatus = #{receiptStatus}</if>
|
|
|
+ <if test="sendOutStatus != null and sendOutStatus != ''"> and cm_shop_order.sendOutStatus = #{sendOutStatus}</if>
|
|
|
+ <if test="refundStatus != null "> and cm_shop_order.refundStatus = #{refundStatus}</if>
|
|
|
+ <if test="returnGoodsStatus != null "> and cm_shop_order.returnGoodsStatus = #{returnGoodsStatus}</if>
|
|
|
+ <if test="receiveGoodsTime != null and receiveGoodsTime != ''"> and cm_shop_order.receiveGoodsTime = #{receiveGoodsTime}</if>
|
|
|
+ <if test="autoReceiveTimeMills != null "> and cm_shop_order.autoReceiveTimeMills = #{autoReceiveTimeMills}</if>
|
|
|
+ <if test="totalAddedValueTax != null "> and cm_shop_order.totalAddedValueTax = #{totalAddedValueTax}</if>
|
|
|
+ <if test="canRefundAmount != null "> and cm_shop_order.canRefundAmount = #{canRefundAmount}</if>
|
|
|
+ <if test="refundAmount != null "> and cm_shop_order.refundAmount = #{refundAmount}</if>
|
|
|
+ <if test="clubID != null "> and cm_shop_order.clubID = #{clubID}</if>
|
|
|
+ <if test="spID != null "> and cm_shop_order.spID = #{spID}</if>
|
|
|
+ <if test="mainSpID != null "> and cm_shop_order.mainSpID = #{mainSpID}</if>
|
|
|
+ <if test="orderBeanAmount != null "> and cm_shop_order.orderBeanAmount = #{orderBeanAmount}</if>
|
|
|
+ <if test="useBeanAmount != null "> and cm_shop_order.useBeanAmount = #{useBeanAmount}</if>
|
|
|
+ <if test="useBeanFlag != null "> and cm_shop_order.useBeanFlag = #{useBeanFlag}</if>
|
|
|
+ <if test="canRefundFlag != null "> and cm_shop_order.canRefundFlag = #{canRefundFlag}</if>
|
|
|
+ <if test="useBalanceFlag != null "> and cm_shop_order.useBalanceFlag = #{useBalanceFlag}</if>
|
|
|
+ <if test="canRefundBeans != null "> and cm_shop_order.canRefundBeans = #{canRefundBeans}</if>
|
|
|
+ <if test="freePostageFee != null "> and cm_shop_order.freePostageFee = #{freePostageFee}</if>
|
|
|
+ <if test="freePostageTicketID != null "> and cm_shop_order.freePostageTicketID = #{freePostageTicketID}</if>
|
|
|
+ <if test="brokerage != null "> and cm_shop_order.brokerage = #{brokerage}</if>
|
|
|
+ <if test="delFlag != null and delFlag != ''"> and cm_shop_order.delFlag = #{delFlag}</if>
|
|
|
+ <if test="refundsAmount != null "> and cm_shop_order.refundsAmount = #{refundsAmount}</if>
|
|
|
+ <if test="orderStatusFlag != null and orderStatusFlag != ''"> and cm_shop_order.orderStatusFlag = #{orderStatusFlag}</if>
|
|
|
+ <if test="buyStatus != null and buyStatus != ''"> and cm_shop_order.buyStatus = #{buyStatus}</if>
|
|
|
+ <if test="deliveryTimeMills != null and deliveryTimeMills != ''"> and cm_shop_order.deliveryTimeMills = #{deliveryTimeMills}</if>
|
|
|
+ <if test="orderDeliveryID != null "> and cm_shop_order.orderDeliveryID = #{orderDeliveryID}</if>
|
|
|
+ <if test="splitFlag != null and splitFlag != ''"> and cm_shop_order.splitFlag = #{splitFlag}</if>
|
|
|
+ <if test="paying != null and paying != ''"> and cm_shop_order.paying = #{paying}</if>
|
|
|
+ <if test="shopProductAmount != null "> and cm_shop_order.shopProductAmount = #{shopProductAmount}</if>
|
|
|
+ <if test="shopPostFee != null "> and cm_shop_order.shopPostFee = #{shopPostFee}</if>
|
|
|
+ <if test="secondHandOrderFlag != null and secondHandOrderFlag != ''"> and cm_shop_order.secondHandOrderFlag = #{secondHandOrderFlag}</if>
|
|
|
+ <if test="shopPostFlag != null and shopPostFlag != ''"> and cm_shop_order.shopPostFlag = #{shopPostFlag}</if>
|
|
|
+ <if test="shopTaxFee != null "> and cm_shop_order.shopTaxFee = #{shopTaxFee}</if>
|
|
|
+ <if test="payCmAmount != null "> and cm_shop_order.payCmAmount = #{payCmAmount}</if>
|
|
|
+ <if test="shouldPayShopAmount != null "> and cm_shop_order.shouldPayShopAmount = #{shouldPayShopAmount}</if>
|
|
|
+ <if test="payedShopAmount != null "> and cm_shop_order.payedShopAmount = #{payedShopAmount}</if>
|
|
|
+ <if test="shopOtherFee != null "> and cm_shop_order.shopOtherFee = #{shopOtherFee}</if>
|
|
|
+ <if test="receiptedFlag != null and receiptedFlag != ''"> and cm_shop_order.receiptedFlag = #{receiptedFlag}</if>
|
|
|
+ <if test="receiptedType != null and receiptedType != ''"> and cm_shop_order.receiptedType = #{receiptedType}</if>
|
|
|
+ <if test="costType != null and costType != ''"> and cm_shop_order.costType = #{costType}</if>
|
|
|
+ <if test="proportional != null "> and cm_shop_order.proportional = #{proportional}</if>
|
|
|
+ <if test="modifyShouldPayNote != null and modifyShouldPayNote != ''"> and cm_shop_order.modifyShouldPayNote = #{modifyShouldPayNote}</if>
|
|
|
+ <if test="modifyShouldPayUserID != null "> and cm_shop_order.modifyShouldPayUserID = #{modifyShouldPayUserID}</if>
|
|
|
+ <if test="modifyShouldPayDate != null "> and cm_shop_order.modifyShouldPayDate = #{modifyShouldPayDate}</if>
|
|
|
+ <if test="zeroCostFlag != null "> and cm_shop_order.zeroCostFlag = #{zeroCostFlag}</if>
|
|
|
+ <if test="differenceType != null and differenceType != ''"> and cm_shop_order.differenceType = #{differenceType}</if>
|
|
|
+ <if test="differencePrice != null "> and cm_shop_order.differencePrice = #{differencePrice}</if>
|
|
|
+ <if test="svipShopReduction != null "> and cm_shop_order.svipShopReduction = #{svipShopReduction}</if>
|
|
|
+ <if test="splitCode != null and splitCode != ''"> and cm_shop_order.splitCode = #{splitCode}</if>
|
|
|
+ <if test="paySuccessCounter != null "> and cm_shop_order.paySuccessCounter = #{paySuccessCounter}</if>
|
|
|
+ <if test="onlinePayWays != null and onlinePayWays != ''"> and cm_shop_order.onlinePayWays = #{onlinePayWays}</if>
|
|
|
+ <if test="shopStatus != null and shopStatus != ''"> and cm_shop_order.shopStatus = #{shopStatus}</if>
|
|
|
+ </where>
|
|
|
+ group by cm_shop_order.shopOrderID
|
|
|
+ limit 0,1
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="addCmShopOrder" parameterType="com.caimei.modules.order.entity.NewShopOrder" useGeneratedKeys="true" keyProperty="shopOrderID">
|
|
|
+ insert into cm_shop_order
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="shopOrderID != null and shopOrderID != ''">shopOrderID,</if>
|
|
|
+ <if test="shopOrderNo != null and shopOrderNo != ''">shopOrderNo,</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''">orderNo,</if>
|
|
|
+ <if test="orderID != null">orderID,</if>
|
|
|
+ <if test="organizeID != null">organizeID,</if>
|
|
|
+ <if test="isColdChina != null">isColdChina,</if>
|
|
|
+ <if test="userID != null">userID,</if>
|
|
|
+ <if test="shopID != null">shopID,</if>
|
|
|
+ <if test="orderPromotionsId != null">orderPromotionsId,</if>
|
|
|
+ <if test="orderType != null">orderType,</if>
|
|
|
+ <if test="orderSubmitType != null">orderSubmitType,</if>
|
|
|
+ <if test="presentNum != null">presentNum,</if>
|
|
|
+ <if test="itemCount != null">itemCount,</if>
|
|
|
+ <if test="outStoreNum != null">outStoreNum,</if>
|
|
|
+ <if test="outStoreTimes != null">outStoreTimes,</if>
|
|
|
+ <if test="townID != null">townID,</if>
|
|
|
+ <if test="note != null and note != ''">note,</if>
|
|
|
+ <if test="eachDiscount != null">eachDiscount,</if>
|
|
|
+ <if test="realPay != null">realPay,</if>
|
|
|
+ <if test="receiptAmount != null">receiptAmount,</if>
|
|
|
+ <if test="accountAmount != null">accountAmount,</if>
|
|
|
+ <if test="productAmount != null">productAmount,</if>
|
|
|
+ <if test="totalAmount != null">totalAmount,</if>
|
|
|
+ <if test="needPayAmount != null">needPayAmount,</if>
|
|
|
+ <if test="discountAmount != null">discountAmount,</if>
|
|
|
+ <if test="preferential != null">preferential,</if>
|
|
|
+ <if test="promotionFullReduction != null">promotionFullReduction,</if>
|
|
|
+ <if test="payFlag != null and payFlag != ''">payFlag,</if>
|
|
|
+ <if test="orderTime != null and orderTime != ''">orderTime,</if>
|
|
|
+ <if test="payTime != null and payTime != ''">payTime,</if>
|
|
|
+ <if test="finishTime != null and finishTime != ''">finishTime,</if>
|
|
|
+ <if test="autoOverTimeMills != null">autoOverTimeMills,</if>
|
|
|
+ <if test="settleStatus != null and settleStatus != ''">settleStatus,</if>
|
|
|
+ <if test="payStatus != null and payStatus != ''">payStatus,</if>
|
|
|
+ <if test="receiptStatus != null and receiptStatus != ''">receiptStatus,</if>
|
|
|
+ <if test="sendOutStatus != null and sendOutStatus != ''">sendOutStatus,</if>
|
|
|
+ <if test="refundStatus != null">refundStatus,</if>
|
|
|
+ <if test="returnGoodsStatus != null">returnGoodsStatus,</if>
|
|
|
+ <if test="receiveGoodsTime != null and receiveGoodsTime != ''">receiveGoodsTime,</if>
|
|
|
+ <if test="autoReceiveTimeMills != null">autoReceiveTimeMills,</if>
|
|
|
+ <if test="totalAddedValueTax != null">totalAddedValueTax,</if>
|
|
|
+ <if test="canRefundAmount != null">canRefundAmount,</if>
|
|
|
+ <if test="refundAmount != null">refundAmount,</if>
|
|
|
+ <if test="clubID != null">clubID,</if>
|
|
|
+ <if test="spID != null">spID,</if>
|
|
|
+ <if test="mainSpID != null">mainSpID,</if>
|
|
|
+ <if test="orderBeanAmount != null">orderBeanAmount,</if>
|
|
|
+ <if test="useBeanAmount != null">useBeanAmount,</if>
|
|
|
+ <if test="useBeanFlag != null">useBeanFlag,</if>
|
|
|
+ <if test="canRefundFlag != null">canRefundFlag,</if>
|
|
|
+ <if test="useBalanceFlag != null">useBalanceFlag,</if>
|
|
|
+ <if test="canRefundBeans != null">canRefundBeans,</if>
|
|
|
+ <if test="freePostageFee != null">freePostageFee,</if>
|
|
|
+ <if test="freePostageTicketID != null">freePostageTicketID,</if>
|
|
|
+ <if test="brokerage != null">brokerage,</if>
|
|
|
+ <if test="delFlag != null and delFlag != ''">delFlag,</if>
|
|
|
+ <if test="refundsAmount != null">refundsAmount,</if>
|
|
|
+ <if test="orderStatusFlag != null and orderStatusFlag != ''">orderStatusFlag,</if>
|
|
|
+ <if test="buyStatus != null and buyStatus != ''">buyStatus,</if>
|
|
|
+ <if test="deliveryTimeMills != null and deliveryTimeMills != ''">deliveryTimeMills,</if>
|
|
|
+ <if test="orderDeliveryID != null">orderDeliveryID,</if>
|
|
|
+ <if test="splitFlag != null and splitFlag != ''">splitFlag,</if>
|
|
|
+ <if test="paying != null and paying != ''">paying,</if>
|
|
|
+ <if test="shopProductAmount != null">shopProductAmount,</if>
|
|
|
+ <if test="shopPostFee != null">shopPostFee,</if>
|
|
|
+ <if test="secondHandOrderFlag != null and secondHandOrderFlag != ''">secondHandOrderFlag,</if>
|
|
|
+ <if test="shopPostFlag != null and shopPostFlag != ''">shopPostFlag,</if>
|
|
|
+ <if test="shopTaxFee != null">shopTaxFee,</if>
|
|
|
+ <if test="payCmAmount != null">payCmAmount,</if>
|
|
|
+ <if test="shouldPayShopAmount != null">shouldPayShopAmount,</if>
|
|
|
+ <if test="payedShopAmount != null">payedShopAmount,</if>
|
|
|
+ <if test="shopOtherFee != null">shopOtherFee,</if>
|
|
|
+ <if test="receiptedFlag != null and receiptedFlag != ''">receiptedFlag,</if>
|
|
|
+ <if test="receiptedType != null and receiptedType != ''">receiptedType,</if>
|
|
|
+ <if test="costType != null and costType != ''">costType,</if>
|
|
|
+ <if test="proportional != null">proportional,</if>
|
|
|
+ <if test="modifyShouldPayNote != null and modifyShouldPayNote != ''">modifyShouldPayNote,</if>
|
|
|
+ <if test="modifyShouldPayUserID != null">modifyShouldPayUserID,</if>
|
|
|
+ <if test="modifyShouldPayDate != null">modifyShouldPayDate,</if>
|
|
|
+ <if test="zeroCostFlag != null">zeroCostFlag,</if>
|
|
|
+ <if test="differenceType != null and differenceType != ''">differenceType,</if>
|
|
|
+ <if test="differencePrice != null">differencePrice,</if>
|
|
|
+ <if test="svipShopReduction != null">svipShopReduction,</if>
|
|
|
+ <if test="splitCode != null and splitCode != ''">splitCode,</if>
|
|
|
+ <if test="paySuccessCounter != null">paySuccessCounter,</if>
|
|
|
+ <if test="onlinePayWays != null and onlinePayWays != ''">onlinePayWays,</if>
|
|
|
+ <if test="shopStatus != null and shopStatus != ''">shopStatus,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="shopOrderID != null and shopOrderID != ''">#{shopOrderID},</if>
|
|
|
+ <if test="shopOrderNo != null and shopOrderNo != ''">#{shopOrderNo},</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''">#{orderNo},</if>
|
|
|
+ <if test="orderID != null">#{orderID},</if>
|
|
|
+ <if test="organizeID != null">#{organizeID},</if>
|
|
|
+ <if test="isColdChina != null">#{isColdChina},</if>
|
|
|
+ <if test="userID != null">#{userID},</if>
|
|
|
+ <if test="shopID != null">#{shopID},</if>
|
|
|
+ <if test="orderPromotionsId != null">#{orderPromotionsId},</if>
|
|
|
+ <if test="orderType != null">#{orderType},</if>
|
|
|
+ <if test="orderSubmitType != null">#{orderSubmitType},</if>
|
|
|
+ <if test="presentNum != null">#{presentNum},</if>
|
|
|
+ <if test="itemCount != null">#{itemCount},</if>
|
|
|
+ <if test="outStoreNum != null">#{outStoreNum},</if>
|
|
|
+ <if test="outStoreTimes != null">#{outStoreTimes},</if>
|
|
|
+ <if test="townID != null">#{townID},</if>
|
|
|
+ <if test="note != null and note != ''">#{note},</if>
|
|
|
+ <if test="eachDiscount != null">#{eachDiscount},</if>
|
|
|
+ <if test="realPay != null">#{realPay},</if>
|
|
|
+ <if test="receiptAmount != null">#{receiptAmount},</if>
|
|
|
+ <if test="accountAmount != null">#{accountAmount},</if>
|
|
|
+ <if test="productAmount != null">#{productAmount},</if>
|
|
|
+ <if test="totalAmount != null">#{totalAmount},</if>
|
|
|
+ <if test="needPayAmount != null">#{needPayAmount},</if>
|
|
|
+ <if test="discountAmount != null">#{discountAmount},</if>
|
|
|
+ <if test="preferential != null">#{preferential},</if>
|
|
|
+ <if test="promotionFullReduction != null">#{promotionFullReduction},</if>
|
|
|
+ <if test="payFlag != null and payFlag != ''">#{payFlag},</if>
|
|
|
+ <if test="orderTime != null and orderTime != ''">#{orderTime},</if>
|
|
|
+ <if test="payTime != null and payTime != ''">#{payTime},</if>
|
|
|
+ <if test="finishTime != null and finishTime != ''">#{finishTime},</if>
|
|
|
+ <if test="autoOverTimeMills != null">#{autoOverTimeMills},</if>
|
|
|
+ <if test="settleStatus != null and settleStatus != ''">#{settleStatus},</if>
|
|
|
+ <if test="payStatus != null and payStatus != ''">#{payStatus},</if>
|
|
|
+ <if test="receiptStatus != null and receiptStatus != ''">#{receiptStatus},</if>
|
|
|
+ <if test="sendOutStatus != null and sendOutStatus != ''">#{sendOutStatus},</if>
|
|
|
+ <if test="refundStatus != null">#{refundStatus},</if>
|
|
|
+ <if test="returnGoodsStatus != null">#{returnGoodsStatus},</if>
|
|
|
+ <if test="receiveGoodsTime != null and receiveGoodsTime != ''">#{receiveGoodsTime},</if>
|
|
|
+ <if test="autoReceiveTimeMills != null">#{autoReceiveTimeMills},</if>
|
|
|
+ <if test="totalAddedValueTax != null">#{totalAddedValueTax},</if>
|
|
|
+ <if test="canRefundAmount != null">#{canRefundAmount},</if>
|
|
|
+ <if test="refundAmount != null">#{refundAmount},</if>
|
|
|
+ <if test="clubID != null">#{clubID},</if>
|
|
|
+ <if test="spID != null">#{spID},</if>
|
|
|
+ <if test="mainSpID != null">#{mainSpID},</if>
|
|
|
+ <if test="orderBeanAmount != null">#{orderBeanAmount},</if>
|
|
|
+ <if test="useBeanAmount != null">#{useBeanAmount},</if>
|
|
|
+ <if test="useBeanFlag != null">#{useBeanFlag},</if>
|
|
|
+ <if test="canRefundFlag != null">#{canRefundFlag},</if>
|
|
|
+ <if test="useBalanceFlag != null">#{useBalanceFlag},</if>
|
|
|
+ <if test="canRefundBeans != null">#{canRefundBeans},</if>
|
|
|
+ <if test="freePostageFee != null">#{freePostageFee},</if>
|
|
|
+ <if test="freePostageTicketID != null">#{freePostageTicketID},</if>
|
|
|
+ <if test="brokerage != null">#{brokerage},</if>
|
|
|
+ <if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
|
|
+ <if test="refundsAmount != null">#{refundsAmount},</if>
|
|
|
+ <if test="orderStatusFlag != null and orderStatusFlag != ''">#{orderStatusFlag},</if>
|
|
|
+ <if test="buyStatus != null and buyStatus != ''">#{buyStatus},</if>
|
|
|
+ <if test="deliveryTimeMills != null and deliveryTimeMills != ''">#{deliveryTimeMills},</if>
|
|
|
+ <if test="orderDeliveryID != null">#{orderDeliveryID},</if>
|
|
|
+ <if test="splitFlag != null and splitFlag != ''">#{splitFlag},</if>
|
|
|
+ <if test="paying != null and paying != ''">#{paying},</if>
|
|
|
+ <if test="shopProductAmount != null">#{shopProductAmount},</if>
|
|
|
+ <if test="shopPostFee != null">#{shopPostFee},</if>
|
|
|
+ <if test="secondHandOrderFlag != null and secondHandOrderFlag != ''">#{secondHandOrderFlag},</if>
|
|
|
+ <if test="shopPostFlag != null and shopPostFlag != ''">#{shopPostFlag},</if>
|
|
|
+ <if test="shopTaxFee != null">#{shopTaxFee},</if>
|
|
|
+ <if test="payCmAmount != null">#{payCmAmount},</if>
|
|
|
+ <if test="shouldPayShopAmount != null">#{shouldPayShopAmount},</if>
|
|
|
+ <if test="payedShopAmount != null">#{payedShopAmount},</if>
|
|
|
+ <if test="shopOtherFee != null">#{shopOtherFee},</if>
|
|
|
+ <if test="receiptedFlag != null and receiptedFlag != ''">#{receiptedFlag},</if>
|
|
|
+ <if test="receiptedType != null and receiptedType != ''">#{receiptedType},</if>
|
|
|
+ <if test="costType != null and costType != ''">#{costType},</if>
|
|
|
+ <if test="proportional != null">#{proportional},</if>
|
|
|
+ <if test="modifyShouldPayNote != null and modifyShouldPayNote != ''">#{modifyShouldPayNote},</if>
|
|
|
+ <if test="modifyShouldPayUserID != null">#{modifyShouldPayUserID},</if>
|
|
|
+ <if test="modifyShouldPayDate != null">#{modifyShouldPayDate},</if>
|
|
|
+ <if test="zeroCostFlag != null">#{zeroCostFlag},</if>
|
|
|
+ <if test="differenceType != null and differenceType != ''">#{differenceType},</if>
|
|
|
+ <if test="differencePrice != null">#{differencePrice},</if>
|
|
|
+ <if test="svipShopReduction != null">#{svipShopReduction},</if>
|
|
|
+ <if test="splitCode != null and splitCode != ''">#{splitCode},</if>
|
|
|
+ <if test="paySuccessCounter != null">#{paySuccessCounter},</if>
|
|
|
+ <if test="onlinePayWays != null and onlinePayWays != ''">#{onlinePayWays},</if>
|
|
|
+ <if test="shopStatus != null and shopStatus != ''">#{shopStatus},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateCmShopOrder" parameterType="com.caimei.modules.order.entity.NewShopOrder">
|
|
|
+ update cm_shop_order
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="shopOrderNo != null and shopOrderNo != ''">shopOrderNo = #{shopOrderNo},</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''">orderNo = #{orderNo},</if>
|
|
|
+ <if test="orderID != null">orderID = #{orderID},</if>
|
|
|
+ <if test="organizeID != null">organizeID = #{organizeID},</if>
|
|
|
+ <if test="isColdChina != null">isColdChina = #{isColdChina},</if>
|
|
|
+ <if test="userID != null">userID = #{userID},</if>
|
|
|
+ <if test="shopID != null">shopID = #{shopID},</if>
|
|
|
+ <if test="orderPromotionsId != null">orderPromotionsId = #{orderPromotionsId},</if>
|
|
|
+ <if test="orderType != null">orderType = #{orderType},</if>
|
|
|
+ <if test="orderSubmitType != null">orderSubmitType = #{orderSubmitType},</if>
|
|
|
+ <if test="presentNum != null">presentNum = #{presentNum},</if>
|
|
|
+ <if test="itemCount != null">itemCount = #{itemCount},</if>
|
|
|
+ <if test="outStoreNum != null">outStoreNum = #{outStoreNum},</if>
|
|
|
+ <if test="outStoreTimes != null">outStoreTimes = #{outStoreTimes},</if>
|
|
|
+ <if test="townID != null">townID = #{townID},</if>
|
|
|
+ <if test="note != null and note != ''">note = #{note},</if>
|
|
|
+ <if test="eachDiscount != null">eachDiscount = #{eachDiscount},</if>
|
|
|
+ <if test="realPay != null">realPay = #{realPay},</if>
|
|
|
+ <if test="receiptAmount != null">receiptAmount = #{receiptAmount},</if>
|
|
|
+ <if test="accountAmount != null">accountAmount = #{accountAmount},</if>
|
|
|
+ <if test="productAmount != null">productAmount = #{productAmount},</if>
|
|
|
+ <if test="totalAmount != null">totalAmount = #{totalAmount},</if>
|
|
|
+ <if test="needPayAmount != null">needPayAmount = #{needPayAmount},</if>
|
|
|
+ <if test="discountAmount != null">discountAmount = #{discountAmount},</if>
|
|
|
+ <if test="preferential != null">preferential = #{preferential},</if>
|
|
|
+ <if test="promotionFullReduction != null">promotionFullReduction = #{promotionFullReduction},</if>
|
|
|
+ <if test="payFlag != null and payFlag != ''">payFlag = #{payFlag},</if>
|
|
|
+ <if test="orderTime != null and orderTime != ''">orderTime = #{orderTime},</if>
|
|
|
+ <if test="payTime != null and payTime != ''">payTime = #{payTime},</if>
|
|
|
+ <if test="finishTime != null and finishTime != ''">finishTime = #{finishTime},</if>
|
|
|
+ <if test="autoOverTimeMills != null">autoOverTimeMills = #{autoOverTimeMills},</if>
|
|
|
+ <if test="settleStatus != null and settleStatus != ''">settleStatus = #{settleStatus},</if>
|
|
|
+ <if test="payStatus != null and payStatus != ''">payStatus = #{payStatus},</if>
|
|
|
+ <if test="receiptStatus != null and receiptStatus != ''">receiptStatus = #{receiptStatus},</if>
|
|
|
+ <if test="sendOutStatus != null and sendOutStatus != ''">sendOutStatus = #{sendOutStatus},</if>
|
|
|
+ <if test="refundStatus != null">refundStatus = #{refundStatus},</if>
|
|
|
+ <if test="returnGoodsStatus != null">returnGoodsStatus = #{returnGoodsStatus},</if>
|
|
|
+ <if test="receiveGoodsTime != null and receiveGoodsTime != ''">receiveGoodsTime = #{receiveGoodsTime},</if>
|
|
|
+ <if test="autoReceiveTimeMills != null">autoReceiveTimeMills = #{autoReceiveTimeMills},</if>
|
|
|
+ <if test="totalAddedValueTax != null">totalAddedValueTax = #{totalAddedValueTax},</if>
|
|
|
+ <if test="canRefundAmount != null">canRefundAmount = #{canRefundAmount},</if>
|
|
|
+ <if test="refundAmount != null">refundAmount = #{refundAmount},</if>
|
|
|
+ <if test="clubID != null">clubID = #{clubID},</if>
|
|
|
+ <if test="spID != null">spID = #{spID},</if>
|
|
|
+ <if test="mainSpID != null">mainSpID = #{mainSpID},</if>
|
|
|
+ <if test="orderBeanAmount != null">orderBeanAmount = #{orderBeanAmount},</if>
|
|
|
+ <if test="useBeanAmount != null">useBeanAmount = #{useBeanAmount},</if>
|
|
|
+ <if test="useBeanFlag != null">useBeanFlag = #{useBeanFlag},</if>
|
|
|
+ <if test="canRefundFlag != null">canRefundFlag = #{canRefundFlag},</if>
|
|
|
+ <if test="useBalanceFlag != null">useBalanceFlag = #{useBalanceFlag},</if>
|
|
|
+ <if test="canRefundBeans != null">canRefundBeans = #{canRefundBeans},</if>
|
|
|
+ <if test="freePostageFee != null">freePostageFee = #{freePostageFee},</if>
|
|
|
+ <if test="freePostageTicketID != null">freePostageTicketID = #{freePostageTicketID},</if>
|
|
|
+ <if test="brokerage != null">brokerage = #{brokerage},</if>
|
|
|
+ <if test="delFlag != null and delFlag != ''">delFlag = #{delFlag},</if>
|
|
|
+ <if test="refundsAmount != null">refundsAmount = #{refundsAmount},</if>
|
|
|
+ <if test="orderStatusFlag != null and orderStatusFlag != ''">orderStatusFlag = #{orderStatusFlag},</if>
|
|
|
+ <if test="buyStatus != null and buyStatus != ''">buyStatus = #{buyStatus},</if>
|
|
|
+ <if test="deliveryTimeMills != null and deliveryTimeMills != ''">deliveryTimeMills = #{deliveryTimeMills},</if>
|
|
|
+ <if test="orderDeliveryID != null">orderDeliveryID = #{orderDeliveryID},</if>
|
|
|
+ <if test="splitFlag != null and splitFlag != ''">splitFlag = #{splitFlag},</if>
|
|
|
+ <if test="paying != null and paying != ''">paying = #{paying},</if>
|
|
|
+ <if test="shopProductAmount != null">shopProductAmount = #{shopProductAmount},</if>
|
|
|
+ <if test="shopPostFee != null">shopPostFee = #{shopPostFee},</if>
|
|
|
+ <if test="secondHandOrderFlag != null and secondHandOrderFlag != ''">secondHandOrderFlag = #{secondHandOrderFlag},</if>
|
|
|
+ <if test="shopPostFlag != null and shopPostFlag != ''">shopPostFlag = #{shopPostFlag},</if>
|
|
|
+ <if test="shopTaxFee != null">shopTaxFee = #{shopTaxFee},</if>
|
|
|
+ <if test="payCmAmount != null">payCmAmount = #{payCmAmount},</if>
|
|
|
+ <if test="shouldPayShopAmount != null">shouldPayShopAmount = #{shouldPayShopAmount},</if>
|
|
|
+ <if test="payedShopAmount != null">payedShopAmount = #{payedShopAmount},</if>
|
|
|
+ <if test="shopOtherFee != null">shopOtherFee = #{shopOtherFee},</if>
|
|
|
+ <if test="receiptedFlag != null and receiptedFlag != ''">receiptedFlag = #{receiptedFlag},</if>
|
|
|
+ <if test="receiptedType != null and receiptedType != ''">receiptedType = #{receiptedType},</if>
|
|
|
+ <if test="costType != null and costType != ''">costType = #{costType},</if>
|
|
|
+ <if test="proportional != null">proportional = #{proportional},</if>
|
|
|
+ <if test="modifyShouldPayNote != null and modifyShouldPayNote != ''">modifyShouldPayNote = #{modifyShouldPayNote},</if>
|
|
|
+ <if test="modifyShouldPayUserID != null">modifyShouldPayUserID = #{modifyShouldPayUserID},</if>
|
|
|
+ <if test="modifyShouldPayDate != null">modifyShouldPayDate = #{modifyShouldPayDate},</if>
|
|
|
+ <if test="zeroCostFlag != null">zeroCostFlag = #{zeroCostFlag},</if>
|
|
|
+ <if test="differenceType != null and differenceType != ''">differenceType = #{differenceType},</if>
|
|
|
+ <if test="differencePrice != null">differencePrice = #{differencePrice},</if>
|
|
|
+ <if test="svipShopReduction != null">svipShopReduction = #{svipShopReduction},</if>
|
|
|
+ <if test="splitCode != null and splitCode != ''">splitCode = #{splitCode},</if>
|
|
|
+ <if test="paySuccessCounter != null">paySuccessCounter = #{paySuccessCounter},</if>
|
|
|
+ <if test="onlinePayWays != null and onlinePayWays != ''">onlinePayWays = #{onlinePayWays},</if>
|
|
|
+ <if test="shopStatus != null and shopStatus != ''">shopStatus = #{shopStatus},</if>
|
|
|
+ </trim>
|
|
|
+ where shopOrderID = #{shopOrderID}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <update id="updateDelCmShopOrderByShopOrderIDs" parameterType="String">
|
|
|
+ update cm_shop_order set delFlag=#{delFlag} where shopOrderID in
|
|
|
+ <foreach item="shopOrderID" collection="shopOrderIDs" open="(" separator="," close=")">
|
|
|
+ #{shopOrderID}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="delCmShopOrderByShopOrderID" parameterType="String">
|
|
|
+ delete
|
|
|
+ from cm_shop_order where shopOrderID = #{shopOrderID}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="delCmShopOrderByShopOrderIDs" parameterType="String">
|
|
|
+ delete from cm_shop_order where shopOrderID in
|
|
|
+ <foreach item="shopOrderID" collection="shopOrderIDs" open="(" separator="," close=")">
|
|
|
+ #{shopOrderID}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
</mapper>
|