From 43e3fe43675a68c375313abfbeee84ad60e6d9e3 Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期二, 03 二月 2026 10:09:17 +0800
Subject: [PATCH] yys 成品库存修改
---
src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml b/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml
index 7d3e77c..259c619 100644
--- a/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml
+++ b/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml
@@ -308,7 +308,7 @@
SUM(t1.total_price) AS totalPrice,
t1.unit_price,
SUM(t1.inbound_num) AS inboundNum,
- SUM(t1.inbound_num) AS inboundNum0,
+ (SUM(t1.inbound_num) - IFNULL(SUM(t4.total_outbound_num), 0)) AS inboundNum0,
MAX(t1.create_time) AS create_time,
MAX(t1.update_time) AS update_time,
GROUP_CONCAT(DISTINCT t1.create_by) AS create_by,
@@ -328,8 +328,8 @@
WHERE type = 2
GROUP BY procurement_record_storage_id
) t4 ON t1.id = t4.procurement_record_storage_id
- WHERE t1.type = 2
<where>
+ t1.type = 2
<if test="req.customerName != null and req.customerName != ''">
and t3.customer_name like concat('%',#{req.customerName},'%')
</if>
--
Gitblit v1.9.3