From c924d59a94fc17d570610cbf2b691481dd0b2e4d Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期五, 16 一月 2026 17:50:09 +0800
Subject: [PATCH] Merge branch 'dev_New' of http://114.132.189.42:9002/r/product-inventory-management-after into dev_New

---
 src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml b/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml
index 9eaf966..51c46b4 100644
--- a/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml
+++ b/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml
@@ -79,8 +79,7 @@
             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 T4 on T1.ticket_registration_id = T4.id
         WHERE
-            T4.id = #{id}
+            T1.sales_ledger_product_id = #{id}
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3