From c459808efab29dc1b8439fbb90556bdb16f4c88b Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期三, 01 四月 2026 22:40:59 +0800
Subject: [PATCH] feat: 优化支付时显示任务ID

---
 dryad-payment/src/main/resources/mapper/PaymentOrderMapper.xml |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/dryad-payment/src/main/resources/mapper/PaymentOrderMapper.xml b/dryad-payment/src/main/resources/mapper/PaymentOrderMapper.xml
index 063c689..989080e 100644
--- a/dryad-payment/src/main/resources/mapper/PaymentOrderMapper.xml
+++ b/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>

--
Gitblit v1.9.1