From 660cdcaa6c03624912dc4ef94a3b7856d1bc79bc Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期五, 30 五月 2025 08:34:12 +0800
Subject: [PATCH] 完善排班删除功能

---
 pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml
index 0fbe098..a57b77b 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml
@@ -423,12 +423,18 @@
     </select>
 
     <select id="selectByPlanName" resultType="cn.hutool.json.JSONObject">
-        select ap.id planId,ap.name planName,ap.`status`,pn.id nodeId,pn.content from pr_assembly_plan ap
+        select ap.id planId,
+        ap.name planName,
+        ap.`status`,
+        pn.id nodeId,
+        pn.content
+        from pr_assembly_plan ap
         left join pr_production_node pn on ap.process_id = pn.process_id
         where status != -1
         <if test="planName != null and planName!= ''">
             and ap.name like concat('%', #{planName}, '%')
         </if>
+        order by ap.id desc, pn.id asc
     </select>
 
     <select id="queryPlanList" resultType="cn.hutool.json.JSONObject">

--
Gitblit v1.8.0