wlzboy
2026-04-01 c459808efab29dc1b8439fbb90556bdb16f4c88b
dryad-payment/src/main/resources/mapper/PaymentOrderMapper.xml
@@ -74,4 +74,24 @@
        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>