From 07968530fd2a7c0d818adc8a89c96a9499dbbee6 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期一, 19 一月 2026 16:17:38 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API

---
 WebAPI/Controllers/QC_ManagementController.cs |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/WebAPI/Controllers/QC_ManagementController.cs b/WebAPI/Controllers/QC_ManagementController.cs
index 82ca164..58d3d97 100644
--- a/WebAPI/Controllers/QC_ManagementController.cs
+++ b/WebAPI/Controllers/QC_ManagementController.cs
@@ -1353,7 +1353,13 @@
                 {
                     //鍒ゆ柇鍗曟嵁鏄惁宸茬粡瀹℃牳
                     DataSet ds;
-                    string sql = "select * from  Gy_QCCheckProjectMain  where HInterID = " + HInterID;
+                    string sql;
+                    if(HInterID=="0")
+                    {
+                        sql = "select top 1 * from  Gy_QCCheckProjectMain  order by HInterID desc";
+                    }
+                    else
+                     sql = "select * from  Gy_QCCheckProjectMain  where HInterID = " + HInterID;
                     ds = oCN.RunProcReturn(sql, oBill.MvarItemKey);
                     if (ds.Tables[0].Rows[0]["HChecker"] != null && ds.Tables[0].Rows[0]["HChecker"].ToString() != "")
                     {

--
Gitblit v1.9.1