|
@@ -1344,7 +1344,6 @@
|
|
|
<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" />
|
|
@@ -1387,16 +1386,13 @@
|
|
|
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,
|
|
|
+ ifnull(cm_shop_order.accountAmount,0) AS accountAmount,
|
|
|
+ ifnull(cm_shop_order.productAmount,0) AS productAmount,
|
|
|
+ ifnull(cm_shop_order.totalAmount,0) AS totalAmount,
|
|
|
+ ifnull(cm_shop_order.needPayAmount,0) AS needPayAmount,
|
|
|
+ ifnull(cm_shop_order.discountAmount,0) AS discountAmount,
|
|
|
+ ifnull(cm_shop_order.preferential,0) AS preferential,
|
|
|
+ ifnull(cm_shop_order.promotionFullReduction,0) AS promotionFullReduction,
|
|
|
cm_shop_order.payFlag,
|
|
|
cm_shop_order.orderTime,
|
|
|
cm_shop_order.payTime,
|
|
@@ -1404,13 +1400,13 @@
|
|
|
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.shopStatus,
|
|
|
cm_shop_order.returnGoodsStatus,
|
|
|
cm_shop_order.receiveGoodsTime,
|
|
|
cm_shop_order.autoReceiveTimeMills,
|
|
|
- cm_shop_order.totalAddedValueTax,
|
|
|
+ ifnull(cm_shop_order.totalAddedValueTax,0) AS totalAddedValueTax,
|
|
|
cm_shop_order.canRefundAmount,
|
|
|
cm_shop_order.refundAmount,
|
|
|
cm_shop_order.clubID,
|
|
@@ -1422,59 +1418,64 @@
|
|
|
cm_shop_order.canRefundFlag,
|
|
|
cm_shop_order.useBalanceFlag,
|
|
|
cm_shop_order.canRefundBeans,
|
|
|
- cm_shop_order.freePostageFee,
|
|
|
+ ifnull(cm_shop_order.freePostageFee,0) AS freePostageFee,
|
|
|
cm_shop_order.freePostageTicketID,
|
|
|
- cm_shop_order.brokerage,
|
|
|
+ ifnull(cm_shop_order.brokerage,0) AS brokerage,
|
|
|
cm_shop_order.delFlag,
|
|
|
- cm_shop_order.refundsAmount,
|
|
|
+ ifnull(cm_shop_order.refundsAmount,0) AS refundsAmount,
|
|
|
cm_shop_order.orderStatusFlag,
|
|
|
cm_shop_order.buyStatus,
|
|
|
cm_shop_order.deliveryTimeMills,
|
|
|
+ cm_shop_order.confirmTime,
|
|
|
+ cm_shop_order.updateTime,
|
|
|
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.paying,
|
|
|
+ ifnull(cm_shop_order.shopProductAmount,0) AS shopProductAmount,
|
|
|
+ ifnull(cm_shop_order.shopPostFee,0) AS shopPostFee,
|
|
|
+ cm_shop_order.shopPostFlag,
|
|
|
+ ifnull(cm_shop_order.shopTaxFee,0) AS shopTaxFee,
|
|
|
+ ifnull(cm_shop_order.payCmAmount,0) AS payCmAmount,
|
|
|
+ ifnull(cm_shop_order.shouldPayShopAmount,0) AS shouldPayShopAmount,
|
|
|
+ ifnull(cm_shop_order.payedShopAmount,0) AS payedShopAmount,
|
|
|
+ ifnull(cm_shop_order.shopOtherFee,0) AS shopOtherFee,
|
|
|
cm_shop_order.costType,
|
|
|
- cm_shop_order.proportional,
|
|
|
+ ifnull(cm_shop_order.proportional,0) AS 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,
|
|
|
+ ifnull(cm_shop_order.differencePrice,0) AS differencePrice,
|
|
|
+ ifnull(cm_shop_order.svipShopReduction,0) AS svipShopReduction,
|
|
|
+ ifnull(cm_shop_order.shopRefundAmount,0) AS shopRefundAmount,
|
|
|
cm_shop_order.splitCode,
|
|
|
cm_shop_order.paySuccessCounter,
|
|
|
cm_shop_order.onlinePayWays,
|
|
|
- cm_shop_order.shopStatus
|
|
|
+ cm_shop_order.receiptStatus,
|
|
|
+ ifnull(cm_shop_order.receiptAmount,0) AS receiptAmount,
|
|
|
+ ifnull(cm_shop_order.eachDiscount,0) AS eachDiscount,
|
|
|
+ ifnull(cm_shop_order.realPay,0) AS realPay,
|
|
|
+ cm_shop_order.discountFee,
|
|
|
+ cm_shop_order.fee
|
|
|
</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 != ''">
|
|
|
+ <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>
|
|
|
+ = #{shopOrderID}
|
|
|
+ </if>
|
|
|
+ <if test="shopOrderID.toString().toUpperCase().indexOf('=')!=-1">
|
|
|
+ <if test="shopOrderID.toString().toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
+ <if test="shopOrderID.toString().toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
+ <foreach item="shopOrderIDIn" collection="shopOrderID.toString().substring(shopOrderID.toUpperCase().toString().indexOf('=')+1,shopOrderID.toString().length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
+ #{shopOrderIDIn}
|
|
|
+ </foreach>
|
|
|
</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>
|
|
@@ -1540,7 +1541,6 @@
|
|
|
<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>
|
|
@@ -1561,10 +1561,10 @@
|
|
|
<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>
|
|
|
+ <if test="status != null and status != ''"> and cm_shop_order.shopStatus = #{status}</if>
|
|
|
</where>
|
|
|
group by cm_shop_order.shopOrderID
|
|
|
- order by cm_shop_order.createTime desc
|
|
|
+ order by cm_shop_order.orderTime desc
|
|
|
limit 0,1
|
|
|
</select>
|
|
|
|
|
@@ -1572,18 +1572,16 @@
|
|
|
<include refid="selectCmShopOrderVo"/>
|
|
|
from cm_shop_order AS cm_shop_order
|
|
|
<where> cm_shop_order.delFlag = 0
|
|
|
- <if test="shopOrderID != null and shopOrderID != ''">
|
|
|
+ <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>
|
|
|
+ = #{shopOrderID}
|
|
|
+ </if>
|
|
|
+ <if test="shopOrderID.toString().toUpperCase().indexOf('=')!=-1">
|
|
|
+ <if test="shopOrderID.toString().toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
+ <if test="shopOrderID.toString().toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
+ <foreach item="shopOrderIDIn" collection="shopOrderID.toString().substring(shopOrderID.toUpperCase().toString().indexOf('=')+1,shopOrderID.toString().length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
+ #{shopOrderIDIn}
|
|
|
+ </foreach>
|
|
|
</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>
|
|
@@ -1649,7 +1647,6 @@
|
|
|
<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>
|
|
@@ -1670,10 +1667,10 @@
|
|
|
<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>
|
|
|
+ <if test="status != null and status != ''"> and cm_shop_order.shopStatus = #{status}</if>
|
|
|
</where>
|
|
|
group by cm_shop_order.shopOrderID
|
|
|
- order by cm_shop_order.createTime desc
|
|
|
+ order by cm_shop_order.orderTime desc
|
|
|
</select>
|
|
|
<select id="getCmShopOrderCount" parameterType="com.caimei.modules.order.entity.NewShopOrder" resultType="String">
|
|
|
select count(1)
|
|
@@ -1681,16 +1678,14 @@
|
|
|
<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>
|
|
|
+ = #{shopOrderID}
|
|
|
+ </if>
|
|
|
+ <if test="shopOrderID.toString().toUpperCase().indexOf('=')!=-1">
|
|
|
+ <if test="shopOrderID.toString().toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
+ <if test="shopOrderID.toString().toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
+ <foreach item="shopOrderIDIn" collection="shopOrderID.toString().substring(shopOrderID.toUpperCase().toString().indexOf('=')+1,shopOrderID.toString().length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
+ #{shopOrderIDIn}
|
|
|
+ </foreach>
|
|
|
</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>
|
|
@@ -1756,7 +1751,6 @@
|
|
|
<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>
|
|
@@ -1777,7 +1771,7 @@
|
|
|
<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>
|
|
|
+ <if test="status != null and status != ''"> and cm_shop_order.shopStatus = #{status}</if>
|
|
|
</where>
|
|
|
group by cm_shop_order.shopOrderID
|
|
|
</select>
|
|
@@ -1792,18 +1786,16 @@
|
|
|
select shopOrderID
|
|
|
from cm_shop_order AS cm_shop_order
|
|
|
<where> cm_shop_order.delFlag = 0
|
|
|
- <if test="shopOrderID != null and shopOrderID != ''">
|
|
|
+ <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>
|
|
|
+ = #{shopOrderID}
|
|
|
+ </if>
|
|
|
+ <if test="shopOrderID.toString().toUpperCase().indexOf('=')!=-1">
|
|
|
+ <if test="shopOrderID.toString().toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
+ <if test="shopOrderID.toString().toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
+ <foreach item="shopOrderIDIn" collection="shopOrderID.toString().substring(shopOrderID.toUpperCase().toString().indexOf('=')+1,shopOrderID.toString().length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
+ #{shopOrderIDIn}
|
|
|
+ </foreach>
|
|
|
</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>
|
|
@@ -1869,7 +1861,6 @@
|
|
|
<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>
|
|
@@ -1890,7 +1881,7 @@
|
|
|
<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>
|
|
|
+ <if test="status != null and status != ''"> and cm_shop_order.shopStatus = #{status}</if>
|
|
|
</where>
|
|
|
group by cm_shop_order.shopOrderID
|
|
|
</select>
|
|
@@ -1898,18 +1889,16 @@
|
|
|
select shopOrderID
|
|
|
from cm_shop_order AS cm_shop_order
|
|
|
<where> cm_shop_order.delFlag = 0
|
|
|
- <if test="shopOrderID != null and shopOrderID != ''">
|
|
|
+ <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>
|
|
|
+ = #{shopOrderID}
|
|
|
+ </if>
|
|
|
+ <if test="shopOrderID.toString().toUpperCase().indexOf('=')!=-1">
|
|
|
+ <if test="shopOrderID.toString().toUpperCase().indexOf('NOT')!=-1"> not </if>
|
|
|
+ <if test="shopOrderID.toString().toUpperCase().indexOf('IN')!=-1"> in </if>
|
|
|
+ <foreach item="shopOrderIDIn" collection="shopOrderID.toString().substring(shopOrderID.toUpperCase().toString().indexOf('=')+1,shopOrderID.toString().length()).trim().split(',')" open="(" separator="," close=")">
|
|
|
+ #{shopOrderIDIn}
|
|
|
+ </foreach>
|
|
|
</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>
|
|
@@ -1975,7 +1964,6 @@
|
|
|
<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>
|
|
@@ -1996,7 +1984,7 @@
|
|
|
<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>
|
|
|
+ <if test="status != null and status != ''"> and cm_shop_order.shopStatus = #{status}</if>
|
|
|
</where>
|
|
|
group by cm_shop_order.shopOrderID
|
|
|
limit 0,1
|
|
@@ -2070,7 +2058,6 @@
|
|
|
<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>
|
|
@@ -2091,7 +2078,7 @@
|
|
|
<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>
|
|
|
+ <if test="status != null and status != ''">shopStatus,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="shopOrderID != null and shopOrderID != ''">#{shopOrderID},</if>
|
|
@@ -2159,7 +2146,6 @@
|
|
|
<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>
|
|
@@ -2180,7 +2166,7 @@
|
|
|
<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>
|
|
|
+ <if test="status != null and status != ''">#{status},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -2251,7 +2237,6 @@
|
|
|
<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>
|
|
@@ -2272,7 +2257,7 @@
|
|
|
<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>
|
|
|
+ <if test="status != null and status != ''">shopStatus = #{status},</if>
|
|
|
</trim>
|
|
|
where shopOrderID = #{shopOrderID}
|
|
|
</update>
|