From d15462274ecea7f7fe3dfc4b81278bc647e8cd26 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期一, 30 三月 2026 11:03:13 +0800
Subject: [PATCH] 发货库存校验2.0

---
 src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml b/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml
index c378c6a..fed517d 100644
--- a/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml
+++ b/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml
@@ -9,6 +9,7 @@
             t2.id,
             t3.id as recordId,
             t2.specification_model,
+            t2.product_model_id,
             t2.unit,
             t2.quantity,
             t2.min_stock,
@@ -35,6 +36,7 @@
         t2.product_category,
         t1.id,
         t1.sales_ledger_product_id,
+        t1.product_model_id,
         t1.create_user,
         t2.specification_model,
         t2.unit,
@@ -48,7 +50,9 @@
         t1.create_time,
         t1.update_time,
         t1.create_by,
-        t2.warn_num
+        t2.warn_num,
+        t1.out_stock_quantity as outStockQuantity,
+        t1.shortage_description as shortageDescription
         from  procurement_record_storage t1
                   left join sales_ledger_product t2 on t2.id = t1.sales_ledger_product_id
                   left join purchase_ledger t3 on t3.id = t2.sales_ledger_id
@@ -163,4 +167,4 @@
                   left join sales_ledger_product t2 on t2.id = t1.sales_ledger_product_id
                   left join purchase_ledger t3 on t3.id = t2.sales_ledger_id
     </select>
-</mapper>
\ No newline at end of file
+</mapper>

--
Gitblit v1.9.3