|
@@ -168,9 +168,12 @@
|
168
|
168
|
<if test = "bo.refundNo != null and bo.refundNo != ''">
|
169
|
169
|
AND t2.refund_no = #{bo.refundNo}
|
170
|
170
|
</if>
|
171
|
|
- <if test = "bo.payStatus != null and bo.payStatus != ''">
|
|
171
|
+ <if test = "bo.payStatus == 'paid'">
|
172
|
172
|
AND t.pay_status = #{bo.payStatus}
|
173
|
173
|
</if>
|
|
174
|
+ <if test = "bo.payStatus == 'refunded'">
|
|
175
|
+ AND t.pay_status IN ('refunded','change')
|
|
176
|
+ </if>
|
174
|
177
|
<if test = "bo.payStartTime != null and bo.payStartTime != ''">
|
175
|
178
|
AND t2.pay_time >= STR_TO_DATE(#{bo.payStartTime}, '%Y-%m-%d %H:%i:%s')
|
176
|
179
|
</if>
|