|
@@ -172,12 +172,14 @@
|
172
|
172
|
<if test = "bo.refundNo != null and bo.refundNo != ''">
|
173
|
173
|
AND t2.refund_no = #{bo.refundNo}
|
174
|
174
|
</if>
|
175
|
|
- <if test = "bo.payStatus == 'paid'">
|
176
|
|
- AND t.pay_status = #{bo.payStatus}
|
177
|
|
- </if>
|
178
|
|
- <if test = "bo.payStatus == 'refunded'">
|
179
|
|
- AND t.pay_status IN ('refunded','change')
|
180
|
|
- </if>
|
|
175
|
+ <choose>
|
|
176
|
+ <when test="bo.payStatus == 'refunded'">
|
|
177
|
+ AND t.pay_status IN ('refunded','change')
|
|
178
|
+ </when>
|
|
179
|
+ <otherwise>
|
|
180
|
+ AND t.pay_status = #{bo.payStatus}
|
|
181
|
+ </otherwise>
|
|
182
|
+ </choose>
|
181
|
183
|
<if test = "bo.payStartTime != null and bo.payStartTime != ''">
|
182
|
184
|
AND t2.pay_time >= STR_TO_DATE(#{bo.payStartTime}, '%Y-%m-%d %H:%i:%s')
|
183
|
185
|
</if>
|