From a345181d12e99c5c16cd1d546b89680f73cc14ea Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 29 八月 2025 17:08:15 +0800
Subject: [PATCH] 手机端扫描二维码能够查看设备情况的接口

---
 src/main/resources/mapper/purchase/PaymentRegistrationMapper.xml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/purchase/PaymentRegistrationMapper.xml b/src/main/resources/mapper/purchase/PaymentRegistrationMapper.xml
index d245389..44707d3 100644
--- a/src/main/resources/mapper/purchase/PaymentRegistrationMapper.xml
+++ b/src/main/resources/mapper/purchase/PaymentRegistrationMapper.xml
@@ -156,13 +156,18 @@
         T1.current_payment_amount,
         T1.payment_method,
         T3.nick_name AS registrant,
-        T1.registrationt_date
+        T1.registrationt_date,
+        t4.purchase_contract_number,
+        t5.invoice_amount,
+        t5.invoice_number
         FROM
         payment_registration T1
+        LEFT JOIN purchase_ledger t4 ON t4.id = T1.purchase_ledger_id
         LEFT JOIN
         supplier_manage T2 ON T1.supplier_id = T2.id
         LEFT JOIN
         sys_user T3 ON T3.user_id = T1.registrant_id
+        left join ticket_registration t5 on t5.purchase_ledger_id = T1.purchase_ledger_id
         <where>
             <if test="params.searchText != null and params.searchText != '' ">
                 AND T2.supplier_name LIKE CONCAT('%',#{params.searchText},'%')

--
Gitblit v1.9.3