From 4c2d6fc7aeb7fe0cc44b2735514d47ff2ace18fa Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期一, 19 一月 2026 16:06:25 +0800
Subject: [PATCH] 1

---
 WebAPI/Controllers/WebAPIController.cs |   64 +++++++++++++++++++++++++++++++
 1 files changed, 63 insertions(+), 1 deletions(-)

diff --git a/WebAPI/Controllers/WebAPIController.cs b/WebAPI/Controllers/WebAPIController.cs
index a45a798..e83bff7 100644
--- a/WebAPI/Controllers/WebAPIController.cs
+++ b/WebAPI/Controllers/WebAPIController.cs
@@ -20070,7 +20070,7 @@
                 List<object> columnNameList = new List<object>();
 
                 SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
-                string sql = "Select * from h_v_Gy_GetSampleSchemeListView where 1 = 1 " + sWhere + "Order by hmainid ";
+                string sql = "Select * from h_v_Gy_GetSampleSchemeListView where 1 = 1 and HUSEORGID = "+OrganizationID + sWhere + "Order by hmainid ";
                 ds = oCN.RunProcReturn(sql, "h_v_Gy_GetSampleSchemeListView");
 
                 //娣诲姞鍒楀悕
@@ -23175,5 +23175,67 @@
             }
         }
         #endregion
+
+        #region 鐢ㄤ簬杩炴帴鐨勫仴搴峰害妫�楠岋紝鍙鑳借闂�氳繖涓帴鍙o紝鍒欒〃鏄庤繛鎺ュ彲鐢�
+        [Route("Health")]
+        [HttpGet]
+        public IHttpActionResult CheckHealth()
+        {
+            // 杩斿洖 200 鐘舵�佺爜 纭鍋ュ悍鐘舵��
+            return Ok();
+        }
+        #endregion
+
+        #region 鐧诲綍鐢ㄦ埛涓庤澶嘋lientID 鐨勫叧绯� 鍐欏叆鏁版嵁搴�
+        [Route("Web/SetGy_UserClientIdConnection")]
+        [HttpPost]
+        public object SetGy_UserClientIdConnection([FromBody] JObject msg)
+        {
+            DataSet ds;
+            oCN.BeginTran();
+            try
+            {
+                LogService.Write($@"exec h_p_SetGy_UserClientIdRelation 
+                @HUserbm=N'{msg["HUserbm"].ToString()}',
+	            @HUserName=N'{msg["HUserName"].ToString()}',
+	            @HClientID=N'{msg["HClientID"].ToString()}',
+                @HOnline={msg["HOnline"].ToString()}
+                ", "h_p_SetGy_UserClientIdRelation");
+                ds = oCN.RunProcReturn($@"exec h_p_SetGy_UserClientIdRelation 
+                @HUserbm=N'{msg["HUserbm"].ToString()}',
+	            @HUserName=N'{msg["HUserName"].ToString()}',
+	            @HClientID=N'{msg["HClientID"].ToString()}',
+                @HOnline={msg["HOnline"].ToString()}
+                ", "h_p_SetGy_UserClientIdRelation");
+                
+                if(ds.Tables[0].Rows[0]["HStatus"].ToString() == "1")
+                {
+                    oCN.Commit();
+                    objJsonResult.code = "1";
+                    objJsonResult.count = 1;
+                    objJsonResult.Message = "淇濆瓨璁惧淇℃伅鎴愬姛锛�";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                else
+                {
+                    oCN.RollBack();
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "淇濆瓨璁惧淇℃伅澶辫触锛�" + ds.Tables[0].Rows[0]["msg"];
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+            }catch(Exception e)
+            {
+                oCN.RollBack();
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "淇濆瓨璁惧淇℃伅澶辫触锛�" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+        #endregion
     }
 }

--
Gitblit v1.9.1