From 77f4df1a6f92be12aa0ee8597acbf094f8a88120 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 02 七月 2026 15:15:56 +0800
Subject: [PATCH] 采购台账:新增或编辑重复添加协调审批记录问题修复&编辑时添加产品报错问题修复

---
 src/main/resources/mapper/sales/SalesLedgerProductMapper.xml |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/sales/SalesLedgerProductMapper.xml b/src/main/resources/mapper/sales/SalesLedgerProductMapper.xml
index 1b8ebdf..7c4492a 100644
--- a/src/main/resources/mapper/sales/SalesLedgerProductMapper.xml
+++ b/src/main/resources/mapper/sales/SalesLedgerProductMapper.xml
@@ -35,6 +35,7 @@
         END as has_sufficient_stock,
         (IFNULL(T1.quantity, 0) - IFNULL(t3.shipped_quantity, 0) - IFNULL(t5.pending_approval_quantity, 0)) as no_quantity,
         IFNULL(t6.return_quantity, 0) as return_quantity,
+        IFNULL(t4.approved_stock_in_num, 0) as approved_stock_in_num,
         IFNULL(t5.pending_approval_quantity, 0) as pending_approval_quantity,
         CASE
          WHEN IFNULL(t3.shipped_quantity, 0) = 0 AND IFNULL(t5.pending_approval_quantity, 0) = 0 THEN '寰呭彂璐�'

--
Gitblit v1.9.3