From 1c506371acbb461dd66773d40835fde6bfd67caf Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 31 三月 2026 17:36:52 +0800
Subject: [PATCH] 显示料号

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

diff --git a/src/main/resources/mapper/production/ProductOrderMapper.xml b/src/main/resources/mapper/production/ProductOrderMapper.xml
index fdcb54e..f4db954 100644
--- a/src/main/resources/mapper/production/ProductOrderMapper.xml
+++ b/src/main/resources/mapper/production/ProductOrderMapper.xml
@@ -20,6 +20,7 @@
         p.product_name as product_category,
         pm.model as specification_model,
         pm.unit,
+        pm.material_code as materialCode,
         ppr.process_route_code,
         pb.bom_no,
         ROUND(po.complete_quantity / po.quantity * 100, 2) AS completionStatus,
@@ -64,6 +65,7 @@
                 and po.create_time between #{c.startTime} and #{c.endTime}
             </if>
         </where>
+        order by po.priority
     </select>
     <select id="listProcessRoute" resultType="com.ruoyi.production.pojo.ProcessRoute">
         select pr.*
@@ -81,7 +83,8 @@
                p.product_name,
                pp.name as  process_name,
                pm.product_id,
-               pm.model
+               pm.model,
+               pm.material_code as materialCode
         from
             product_structure ps
                 left join product_model pm on ps.product_model_id = pm.id

--
Gitblit v1.9.3