|
@@ -291,6 +291,7 @@
|
|
|
"shouldPayProduct",
|
|
|
co.status AS status,
|
|
|
co.postageOrderFlag AS postageOrderFlag,
|
|
|
+ co.orderSource AS orderSource,
|
|
|
c.name as clubName,
|
|
|
(SELECT IF(COUNT(orderId)>0,1,0) FROM cm_returned_purchase
|
|
|
WHERE STATUS = 1
|
|
@@ -301,15 +302,15 @@
|
|
|
left join cm_order_product cop on co.orderID = cop.orderID
|
|
|
left join club c on co.userId = c.userId
|
|
|
<where>
|
|
|
+ co.organizeId = #{organizeId}
|
|
|
+
|
|
|
<if test="orderId != null">
|
|
|
AND co.orderId = #{orderId}
|
|
|
</if>
|
|
|
<if test="orderNo != null and orderNo != ''">
|
|
|
AND co.orderNo = #{orderNo}
|
|
|
</if>
|
|
|
- <if test="organizeId != null">
|
|
|
- AND co.organizeId = #{organizeId}
|
|
|
- </if>
|
|
|
+
|
|
|
<if test="status != null and status != ''">
|
|
|
<choose>
|
|
|
<when test="status == '99'.toString()">
|