From 20ad0e6c5ae8553c3a1af2b9ba92f6358f1e408b Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期六, 08 八月 2026 16:16:33 +0800
Subject: [PATCH] 质量检测查询修改排序

---
 src/main/resources/mapper/production/ProductWorkOrderMapper.xml      |    1 +
 src/main/resources/mapper/production/ProductOrderMapper.xml          |    1 +
 src/main/resources/mapper/production/ProductionProductMainMapper.xml |    2 +-
 3 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/production/ProductOrderMapper.xml b/src/main/resources/mapper/production/ProductOrderMapper.xml
index 6b993bf..33c2506 100644
--- a/src/main/resources/mapper/production/ProductOrderMapper.xml
+++ b/src/main/resources/mapper/production/ProductOrderMapper.xml
@@ -64,6 +64,7 @@
                 and po.create_time between #{c.startTime} and #{c.endTime}
             </if>
         </where>
+        order by po.nps_no desc
     </select>
     <select id="listProcessRoute" resultType="com.ruoyi.production.pojo.ProcessRoute">
         select pr.*
diff --git a/src/main/resources/mapper/production/ProductWorkOrderMapper.xml b/src/main/resources/mapper/production/ProductWorkOrderMapper.xml
index 60257a2..6b07502 100644
--- a/src/main/resources/mapper/production/ProductWorkOrderMapper.xml
+++ b/src/main/resources/mapper/production/ProductWorkOrderMapper.xml
@@ -61,6 +61,7 @@
         <if test="c.productOrderId != null and c.productOrderId != ''">
             and pwo.product_order_id = #{c.productOrderId}
         </if>
+        order by po.nps_no desc, pwo.work_order_no desc
     </select>
 
     <select id="getProductWorkOrderFlowCard" resultType="com.ruoyi.production.dto.ProductWorkOrderDto">
diff --git a/src/main/resources/mapper/production/ProductionProductMainMapper.xml b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
index a122e90..456bf82 100644
--- a/src/main/resources/mapper/production/ProductionProductMainMapper.xml
+++ b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
@@ -49,7 +49,7 @@
                 and ppm.status = #{c.status}
             </if>
         </where>
-        order by ppm.id
+        order by ppm.id desc 
 
     </select>
     <select id="getOrderByMainId" resultType="com.ruoyi.production.pojo.ProductOrder">

--
Gitblit v1.9.3