|
@@ -150,7 +150,8 @@
|
|
|
</update>
|
|
|
<update id="updateShopOrderPayStatus">
|
|
|
UPDATE cm_shop_order
|
|
|
- SET payStatus = #{payStatus}
|
|
|
+ SET payStatus = #{payStatus},
|
|
|
+ receiptStatus = #{receiptStatus}
|
|
|
WHERE shopOrderID = #{shopOrderId}
|
|
|
</update>
|
|
|
<update id="updateShopRebateAmount">
|
|
@@ -678,7 +679,7 @@
|
|
|
LEFT JOIN shop s ON cso.shopID = s.shopID
|
|
|
LEFT JOIN cm_order_product cop ON cso.shopOrderId = cop.shopOrderId
|
|
|
<where>
|
|
|
- cso.orderType != 3 and cso.delFlag = '0' and ( s.AccountOwnership = 0 or s.bankAccount is null)
|
|
|
+ cso.orderType != 2 and cso.delFlag = '0' and ( s.AccountOwnership = 0 or s.bankAccount is null)
|
|
|
<if test="organizeId == 0">
|
|
|
AND cso.organizeID = 0
|
|
|
</if>
|
|
@@ -688,14 +689,15 @@
|
|
|
<if test="shopOrderId != null">
|
|
|
AND cso.shopOrderId = #{shopOrderId}
|
|
|
</if>
|
|
|
- AND cso.receiptStatus IN
|
|
|
- <foreach collection="receiptStatusArr" open="(" close=")" item="receiptStatus" separator=",">
|
|
|
- #{receiptStatus}
|
|
|
- </foreach>
|
|
|
- AND cso.shopStatus IN
|
|
|
- <foreach collection="orderStatusList" open="(" close=")" item="status" separator=",">
|
|
|
- #{status}
|
|
|
- </foreach>
|
|
|
+ AND (cso.receiptStatus IN
|
|
|
+ <foreach collection="receiptStatusArr" open="(" close=")" item="receiptStatus" separator=",">
|
|
|
+ #{receiptStatus}
|
|
|
+ </foreach>
|
|
|
+ AND cso.shopStatus IN
|
|
|
+ <foreach collection="orderStatusList" open="(" close=")" item="status" separator=",">
|
|
|
+ #{status}
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
<if test="userIds != null and userIds.size() > 0">
|
|
|
AND cso.userID IN
|
|
|
<foreach collection="userIds" open="(" close=")" separator="," item="val">
|