From 91a5aa9b867fdebf20c48613e26a13f76bd6392d Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期二, 13 一月 2026 10:29:42 +0800
Subject: [PATCH] 修改库存管理统计

---
 src/main/resources/mapper/production/ProductOrderMapper.xml |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/production/ProductOrderMapper.xml b/src/main/resources/mapper/production/ProductOrderMapper.xml
index 616d12f..d4ffc40 100644
--- a/src/main/resources/mapper/production/ProductOrderMapper.xml
+++ b/src/main/resources/mapper/production/ProductOrderMapper.xml
@@ -37,6 +37,18 @@
             </if>
         </where>
     </select>
+    <select id="productMainByOrderId" resultType="com.ruoyi.production.dto.ProductOrderDto">
+        select
+            po.*,
+            pwo.work_order_no,
+            pwo.report_work,
+            pwo.status,
+            pwo.quantity,
+            pwo.plan_quantity
+        from product_order po
+        left join product_work_order pwo on po.id = pwo.product_order_id
+        where po.id = #{c.id}
+    </select>
 
 
 </mapper>

--
Gitblit v1.9.3