查看退款订单

This commit is contained in:
gong
2025-12-19 19:55:50 +08:00
parent 9736100cc5
commit d363c580bd

View File

@@ -26,7 +26,16 @@
and o.order_no = #{param.orderNo}
</if>
<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 test="param.orderStartTime != null and param.orderEndTime != null ">
and o.pay_time BETWEEN #{param.orderStartTime} and #{param.orderEndTime}