From 7e9f46c8cb12e4c59a8bf529a9280067d217fe12 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期四, 02 四月 2026 09:40:45 +0800
Subject: [PATCH] feat: 完成固废消纳量看板接口

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

diff --git a/src/main/resources/mapper/production/ProductionProductMainMapper.xml b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
index 798c2b9..4096bad 100644
--- a/src/main/resources/mapper/production/ProductionProductMainMapper.xml
+++ b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
@@ -106,6 +106,21 @@
             </if>
         </where>
     </select>
+    <select id="selectProductionProductMainDto"
+            resultType="com.ruoyi.production.dto.ProductionProductMainDto">
+        SELECT ppm.id,
+        ppm.product_no,
+        ppm.post_name,
+        ppm.schedule,
+        ppm.reporting_time,
+        ppo.quantity,
+        ppo.scrap_qty,
+        ppo.total_quantity
+        FROM production_product_main ppm
+        left join production_product_output ppo on ppm.id = ppo.product_main_id
+        WHERE product_order_id=#{productOrderId}
+        order by reporting_time
+    </select>
 
     <delete id="deleteByWorkOrderIds" parameterType="java.util.List">
         DELETE FROM production_product_main

--
Gitblit v1.9.3