From c3ad7025d45c0cd270396e83e6ba0e200d64c575 Mon Sep 17 00:00:00 2001
From: ch <37327@LLOOCCY>
Date: 星期日, 31 七月 2022 14:59:32 +0800
Subject: [PATCH] 修改了 生产任务单维护根据单据号倒序排列  以及流转卡 已经有下游进出站单后,不允许删除

---
 WebAPI/Controllers/BaseSet/Gy_CustomerController.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/WebAPI/Controllers/BaseSet/Gy_CustomerController.cs b/WebAPI/Controllers/BaseSet/Gy_CustomerController.cs
index ac746cc..5f65cea 100644
--- a/WebAPI/Controllers/BaseSet/Gy_CustomerController.cs
+++ b/WebAPI/Controllers/BaseSet/Gy_CustomerController.cs
@@ -41,13 +41,14 @@
                 string sql1 = string.Format(@"select * from h_v_Gy_CustomerList where 缁勭粐鍚嶇О='" + Organization + "'");
                 if (sWhere == null || sWhere.Equals(""))
                 {
-                    ds = oCN.RunProcReturn(sql1 + sWhere + " order by HItemID desc", "h_v_Gy_CustomerList");
+                    ds = oCN.RunProcReturn(sql1 + sWhere + " order by 瀹㈡埛浠g爜 ", "h_v_Gy_CustomerList");
                 }
                 else
                 {
-                    string sql = sql1 + sWhere + " order by HItemID desc";
+                    string sql = sql1 + sWhere + " order by 瀹㈡埛浠g爜 ";
                     ds = oCN.RunProcReturn(sql, "h_v_Gy_CustomerList");
                 }
+
                 objJsonResult.code = "1";
                 objJsonResult.count = 1;
                 objJsonResult.Message = "Sucess锛�";

--
Gitblit v1.9.1