From 12e793c30f8aa9c32a8fbfa6cc2b80cec7ba2a7a Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期一, 20 二月 2023 19:55:03 +0800
Subject: [PATCH] 工艺路线删除添加存货档案关联工艺路线控制

---
 VueWebApi/DLL/DAL/ProductionManagementDAL.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/VueWebApi/DLL/DAL/ProductionManagementDAL.cs b/VueWebApi/DLL/DAL/ProductionManagementDAL.cs
index 7fffab8..68a619c 100644
--- a/VueWebApi/DLL/DAL/ProductionManagementDAL.cs
+++ b/VueWebApi/DLL/DAL/ProductionManagementDAL.cs
@@ -790,7 +790,7 @@
                         inner join TFlw_Rteqp E on B.step_code=E.step_code
                         inner join TEqpInfo  Q on E.eqp_code=Q.code
                         inner join TEqpType T on Q.eqptype_code=T.code
-                        where A.materiel_code=@partcode and A.route_code=@routecode and B.step_code=@stepcode)";
+                        where A.materiel_code=@partcode and A.route_code=@routecode and B.step_code=@stepcode) order by file_version desc";
                 dynamicParams.Add("@partcode", partcode);
                 dynamicParams.Add("@routecode", routecode);
                 dynamicParams.Add("@stepcode", stepcode);

--
Gitblit v1.9.3