|
@@ -475,10 +475,10 @@
|
|
LEFT JOIN user u ON o.userID = u.userID
|
|
LEFT JOIN user u ON o.userID = u.userID
|
|
LEFT JOIN cm_order_product cop ON o.orderID = cop.orderID
|
|
LEFT JOIN cm_order_product cop ON o.orderID = cop.orderID
|
|
<where>
|
|
<where>
|
|
- <if test="excludeOrderId != null and excludeOrderId != ''">
|
|
|
|
|
|
+ <if test="excludeOrderId != null">
|
|
AND o.orderID != #{excludeOrderId}
|
|
AND o.orderID != #{excludeOrderId}
|
|
</if>
|
|
</if>
|
|
- <if test="orderId != null and orderId != ''">
|
|
|
|
|
|
+ <if test="orderId != null">
|
|
AND o.orderID = #{orderId}
|
|
AND o.orderID = #{orderId}
|
|
</if>
|
|
</if>
|
|
AND o.delFlag = '0'
|
|
AND o.delFlag = '0'
|
|
@@ -676,7 +676,7 @@
|
|
LEFT JOIN user u ON u.userID = cso.userID
|
|
LEFT JOIN user u ON u.userID = cso.userID
|
|
WHERE cso.delFlag = 0
|
|
WHERE cso.delFlag = 0
|
|
AND (cror.delFlag = 0 OR cror.id IS NULL)
|
|
AND (cror.delFlag = 0 OR cror.id IS NULL)
|
|
- <if test="shopName != null">
|
|
|
|
|
|
+ <if test="orderId != null">
|
|
AND cso.orderID = #{orderId}
|
|
AND cso.orderID = #{orderId}
|
|
</if>
|
|
</if>
|
|
<if test="shopName != null and shopName != ''">
|
|
<if test="shopName != null and shopName != ''">
|