查看退款订单
This commit is contained in:
@@ -26,7 +26,16 @@
|
|||||||
and o.order_no = #{param.orderNo}
|
and o.order_no = #{param.orderNo}
|
||||||
</if>
|
</if>
|
||||||
<if test="param.status != null">
|
<if test="param.status != null">
|
||||||
and o.status = #{param.status}
|
<choose>
|
||||||
|
<!-- 当 status 传参为 'ref' 时,匹配 refund 或 refunding -->
|
||||||
|
<when test="param.status == 'ref'">
|
||||||
|
and o.status in ('refund', 'refunding')
|
||||||
|
</when>
|
||||||
|
<!-- 其他非空情况,保持原有的精准匹配逻辑 -->
|
||||||
|
<otherwise>
|
||||||
|
and o.status = #{param.status}
|
||||||
|
</otherwise>
|
||||||
|
</choose>
|
||||||
</if>
|
</if>
|
||||||
<if test="param.orderStartTime != null and param.orderEndTime != null ">
|
<if test="param.orderStartTime != null and param.orderEndTime != null ">
|
||||||
and o.pay_time BETWEEN #{param.orderStartTime} and #{param.orderEndTime}
|
and o.pay_time BETWEEN #{param.orderStartTime} and #{param.orderEndTime}
|
||||||
|
|||||||
Reference in New Issue
Block a user