| | |
| | | LIMIT 1 |
| | | </select> |
| | | |
| | | <!-- 根据条件查询支付订单列表 --> |
| | | <select id="selectList" resultMap="PaymentOrderResult"> |
| | | SELECT * FROM pay_order |
| | | <where> |
| | | <if test="channelTradeNo != null and channelTradeNo != ''"> |
| | | AND channel_trade_no LIKE CONCAT('%', #{channelTradeNo}, '%') |
| | | </if> |
| | | <if test="bizOrderId != null and bizOrderId != ''"> |
| | | AND biz_order_id LIKE CONCAT('%', #{bizOrderId}, '%') |
| | | </if> |
| | | <if test="subject != null and subject != ''"> |
| | | AND subject LIKE CONCAT('%', #{subject}, '%') |
| | | </if> |
| | | <if test="latestTransactionId != null"> |
| | | AND latest_transaction_id = #{latestTransactionId} |
| | | </if> |
| | | </where> |
| | | ORDER BY created_at DESC |
| | | </select> |
| | | |
| | | </mapper> |