From 4d8b0e7a867484b73c4413a6ff3fe9f7d2853c37 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期一, 11 五月 2026 14:29:31 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API

---
 SyntacticSugar/obj/Debug/SyntacticSugar.csproj.FileListAbsolute.txt      |    5 +
 DAL/bin/Release/DBUtility.dll                                            |    0 
 DAL/bin/Release/Pub_Control.dll                                          |    0 
 DBUtility/bin/Release/Pub_Control.pdb                                    |    0 
 SyntacticSugar/bin/Debug/SyntacticSugar.pdb                              |    0 
 SyntacticSugar/bin/Release/SyntacticSugar.dll                            |    0 
 WebAPI/WebAPI.csproj.user                                                |   28 ------
 DAL/bin/Release/DBUtility.pdb                                            |    0 
 DAL/bin/Release/Model.dll                                                |    0 
 DBUtility/bin/Release/Pub_Class.dll                                      |    0 
 SyntacticSugar/bin/Release/SyntacticSugar.pdb                            |    0 
 SyntacticSugar/obj/Debug/SyntacticSugar.dll                              |    0 
 DBUtility/bin/Release/Pub_Control.dll                                    |    0 
 Model/bin/Release/SQLHelper.pdb                                          |    0 
 DAL/bin/Release/Pub_Control.pdb                                          |    0 
 DAL/bin/Release/DAL.pdb                                                  |    0 
 Model/bin/Release/Pub_Control.pdb                                        |    0 
 sdk_dingding/TopSdk/obj/Release/TopSdk.pdb                               |    0 
 Model/bin/Release/Pub_Class.pdb                                          |    0 
 DAL/bin/Release/DAL.dll                                                  |    0 
 SyntacticSugar/bin/Debug/SyntacticSugar.dll                              |    0 
 DAL/bin/Release/Model.pdb                                                |    0 
 sdk_dingding/TopSdk/bin/Debug/TopSdk.dll                                 |    0 
 sdk_dingding/TopSdk/obj/Release/TopSdk.dll                               |    0 
 Pub_Class/bin/Release/SyntacticSugar.pdb                                 |    0 
 sdk_dingding/TopSdk/bin/Release/TopSdk.dll                               |    0 
 DBUtility/bin/Release/DBUtility.pdb                                      |    0 
 DBUtility/bin/Release/DBUtility.dll                                      |    0 
 sdk_dingding/TopSdk/obj/Debug/TopSdk.dll                                 |    0 
 Pub_Class/bin/Release/SyntacticSugar.dll                                 |    0 
 sdk_dingding/TopSdk/obj/Release/TopSdk.csproj.CoreCompileInputs.cache    |    1 
 Model/bin/Release/Pub_Control.dll                                        |    0 
 WebAPI/Controllers/WebAPIController.cs                                   |  151 +++++++++++++++++++++++++++++++++++++
 sdk_dingding/TopSdk/obj/Release/TopSdk.csproj.AssemblyReference.cache    |    0 
 Pub_Control/bin/Release/Pub_Class.pdb                                    |    0 
 sdk_dingding/TopSdk/bin/Release/TopSdk.pdb                               |    0 
 sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.FileListAbsolute.txt         |    5 +
 Pub_Control/bin/Release/Pub_Class.dll                                    |    0 
 SyntacticSugar/obj/Debug/SyntacticSugar.pdb                              |    0 
 sdk_dingding/TopSdk/obj/Debug/TopSdk.pdb                                 |    0 
 SyntacticSugar/obj/Release/SyntacticSugar.csproj.AssemblyReference.cache |    0 
 Pub_Class/bin/Release/Pub_Class.pdb                                      |    0 
 Pub_Control/bin/Release/Pub_Control.dll                                  |    0 
 DAL/bin/Release/SQLHelper.dll                                            |    0 
 Model/bin/Release/DBUtility.pdb                                          |    0 
 SQLHelper/bin/Release/SQLHelper.dll                                      |    0 
 SyntacticSugar/obj/Release/SyntacticSugar.dll                            |    0 
 SQLHelper/bin/Release/Pub_Class.pdb                                      |    0 
 Pub_Class/bin/Release/Pub_Class.dll                                      |    0 
 SyntacticSugar/obj/Release/SyntacticSugar.pdb                            |    0 
 DAL/bin/Release/SQLHelper.pdb                                            |    0 
 SQLHelper/bin/Release/Pub_Class.dll                                      |    0 
 SQLHelper/bin/Release/SQLHelper.pdb                                      |    0 
 Model/bin/Release/DBUtility.dll                                          |    0 
 DAL/bin/Release/Pub_Class.pdb                                            |    0 
 Pub_Control/bin/Release/Pub_Control.pdb                                  |    0 
 sdk_dingding/TopSdk/bin/Debug/TopSdk.pdb                                 |    0 
 SyntacticSugar/obj/Release/SyntacticSugar.csproj.CoreCompileInputs.cache |    1 
 DBUtility/bin/Release/SQLHelper.dll                                      |    0 
 Model/bin/Release/Model.pdb                                              |    0 
 DBUtility/bin/Release/SQLHelper.pdb                                      |    0 
 DAL/bin/Release/Pub_Class.dll                                            |    0 
 Model/bin/Release/Pub_Class.dll                                          |    0 
 Model/bin/Release/Model.dll                                              |    0 
 DBUtility/bin/Release/Pub_Class.pdb                                      |    0 
 Model/bin/Release/SQLHelper.dll                                          |    0 
 66 files changed, 163 insertions(+), 28 deletions(-)

diff --git a/DAL/bin/Release/DAL.dll b/DAL/bin/Release/DAL.dll
new file mode 100644
index 0000000..0795a81
--- /dev/null
+++ b/DAL/bin/Release/DAL.dll
Binary files differ
diff --git a/DAL/bin/Release/DAL.pdb b/DAL/bin/Release/DAL.pdb
new file mode 100644
index 0000000..3045c20
--- /dev/null
+++ b/DAL/bin/Release/DAL.pdb
Binary files differ
diff --git a/DAL/bin/Release/DBUtility.dll b/DAL/bin/Release/DBUtility.dll
new file mode 100644
index 0000000..b804ab0
--- /dev/null
+++ b/DAL/bin/Release/DBUtility.dll
Binary files differ
diff --git a/DAL/bin/Release/DBUtility.pdb b/DAL/bin/Release/DBUtility.pdb
new file mode 100644
index 0000000..50cfe86
--- /dev/null
+++ b/DAL/bin/Release/DBUtility.pdb
Binary files differ
diff --git a/DAL/bin/Release/Model.dll b/DAL/bin/Release/Model.dll
new file mode 100644
index 0000000..c7bf10f
--- /dev/null
+++ b/DAL/bin/Release/Model.dll
Binary files differ
diff --git a/DAL/bin/Release/Model.pdb b/DAL/bin/Release/Model.pdb
new file mode 100644
index 0000000..c59285f
--- /dev/null
+++ b/DAL/bin/Release/Model.pdb
Binary files differ
diff --git a/DAL/bin/Release/Pub_Class.dll b/DAL/bin/Release/Pub_Class.dll
new file mode 100644
index 0000000..70ca24c
--- /dev/null
+++ b/DAL/bin/Release/Pub_Class.dll
Binary files differ
diff --git a/DAL/bin/Release/Pub_Class.pdb b/DAL/bin/Release/Pub_Class.pdb
new file mode 100644
index 0000000..e9ff551
--- /dev/null
+++ b/DAL/bin/Release/Pub_Class.pdb
Binary files differ
diff --git a/DAL/bin/Release/Pub_Control.dll b/DAL/bin/Release/Pub_Control.dll
new file mode 100644
index 0000000..bece5dd
--- /dev/null
+++ b/DAL/bin/Release/Pub_Control.dll
Binary files differ
diff --git a/DAL/bin/Release/Pub_Control.pdb b/DAL/bin/Release/Pub_Control.pdb
new file mode 100644
index 0000000..6372a18
--- /dev/null
+++ b/DAL/bin/Release/Pub_Control.pdb
Binary files differ
diff --git a/DAL/bin/Release/SQLHelper.dll b/DAL/bin/Release/SQLHelper.dll
new file mode 100644
index 0000000..7566075
--- /dev/null
+++ b/DAL/bin/Release/SQLHelper.dll
Binary files differ
diff --git a/DAL/bin/Release/SQLHelper.pdb b/DAL/bin/Release/SQLHelper.pdb
new file mode 100644
index 0000000..7aa58b6
--- /dev/null
+++ b/DAL/bin/Release/SQLHelper.pdb
Binary files differ
diff --git a/DBUtility/bin/Release/DBUtility.dll b/DBUtility/bin/Release/DBUtility.dll
new file mode 100644
index 0000000..b804ab0
--- /dev/null
+++ b/DBUtility/bin/Release/DBUtility.dll
Binary files differ
diff --git a/DBUtility/bin/Release/DBUtility.pdb b/DBUtility/bin/Release/DBUtility.pdb
new file mode 100644
index 0000000..50cfe86
--- /dev/null
+++ b/DBUtility/bin/Release/DBUtility.pdb
Binary files differ
diff --git a/DBUtility/bin/Release/Pub_Class.dll b/DBUtility/bin/Release/Pub_Class.dll
new file mode 100644
index 0000000..70ca24c
--- /dev/null
+++ b/DBUtility/bin/Release/Pub_Class.dll
Binary files differ
diff --git a/DBUtility/bin/Release/Pub_Class.pdb b/DBUtility/bin/Release/Pub_Class.pdb
new file mode 100644
index 0000000..e9ff551
--- /dev/null
+++ b/DBUtility/bin/Release/Pub_Class.pdb
Binary files differ
diff --git a/DBUtility/bin/Release/Pub_Control.dll b/DBUtility/bin/Release/Pub_Control.dll
new file mode 100644
index 0000000..bece5dd
--- /dev/null
+++ b/DBUtility/bin/Release/Pub_Control.dll
Binary files differ
diff --git a/DBUtility/bin/Release/Pub_Control.pdb b/DBUtility/bin/Release/Pub_Control.pdb
new file mode 100644
index 0000000..6372a18
--- /dev/null
+++ b/DBUtility/bin/Release/Pub_Control.pdb
Binary files differ
diff --git a/DBUtility/bin/Release/SQLHelper.dll b/DBUtility/bin/Release/SQLHelper.dll
new file mode 100644
index 0000000..7566075
--- /dev/null
+++ b/DBUtility/bin/Release/SQLHelper.dll
Binary files differ
diff --git a/DBUtility/bin/Release/SQLHelper.pdb b/DBUtility/bin/Release/SQLHelper.pdb
new file mode 100644
index 0000000..7aa58b6
--- /dev/null
+++ b/DBUtility/bin/Release/SQLHelper.pdb
Binary files differ
diff --git a/Model/bin/Release/DBUtility.dll b/Model/bin/Release/DBUtility.dll
new file mode 100644
index 0000000..b804ab0
--- /dev/null
+++ b/Model/bin/Release/DBUtility.dll
Binary files differ
diff --git a/Model/bin/Release/DBUtility.pdb b/Model/bin/Release/DBUtility.pdb
new file mode 100644
index 0000000..50cfe86
--- /dev/null
+++ b/Model/bin/Release/DBUtility.pdb
Binary files differ
diff --git a/Model/bin/Release/Model.dll b/Model/bin/Release/Model.dll
new file mode 100644
index 0000000..c7bf10f
--- /dev/null
+++ b/Model/bin/Release/Model.dll
Binary files differ
diff --git a/Model/bin/Release/Model.pdb b/Model/bin/Release/Model.pdb
new file mode 100644
index 0000000..c59285f
--- /dev/null
+++ b/Model/bin/Release/Model.pdb
Binary files differ
diff --git a/Model/bin/Release/Pub_Class.dll b/Model/bin/Release/Pub_Class.dll
new file mode 100644
index 0000000..70ca24c
--- /dev/null
+++ b/Model/bin/Release/Pub_Class.dll
Binary files differ
diff --git a/Model/bin/Release/Pub_Class.pdb b/Model/bin/Release/Pub_Class.pdb
new file mode 100644
index 0000000..e9ff551
--- /dev/null
+++ b/Model/bin/Release/Pub_Class.pdb
Binary files differ
diff --git a/Model/bin/Release/Pub_Control.dll b/Model/bin/Release/Pub_Control.dll
new file mode 100644
index 0000000..bece5dd
--- /dev/null
+++ b/Model/bin/Release/Pub_Control.dll
Binary files differ
diff --git a/Model/bin/Release/Pub_Control.pdb b/Model/bin/Release/Pub_Control.pdb
new file mode 100644
index 0000000..6372a18
--- /dev/null
+++ b/Model/bin/Release/Pub_Control.pdb
Binary files differ
diff --git a/Model/bin/Release/SQLHelper.dll b/Model/bin/Release/SQLHelper.dll
new file mode 100644
index 0000000..7566075
--- /dev/null
+++ b/Model/bin/Release/SQLHelper.dll
Binary files differ
diff --git a/Model/bin/Release/SQLHelper.pdb b/Model/bin/Release/SQLHelper.pdb
new file mode 100644
index 0000000..7aa58b6
--- /dev/null
+++ b/Model/bin/Release/SQLHelper.pdb
Binary files differ
diff --git a/Pub_Class/bin/Release/Pub_Class.dll b/Pub_Class/bin/Release/Pub_Class.dll
new file mode 100644
index 0000000..70ca24c
--- /dev/null
+++ b/Pub_Class/bin/Release/Pub_Class.dll
Binary files differ
diff --git a/Pub_Class/bin/Release/Pub_Class.pdb b/Pub_Class/bin/Release/Pub_Class.pdb
new file mode 100644
index 0000000..e9ff551
--- /dev/null
+++ b/Pub_Class/bin/Release/Pub_Class.pdb
Binary files differ
diff --git a/Pub_Class/bin/Release/SyntacticSugar.dll b/Pub_Class/bin/Release/SyntacticSugar.dll
new file mode 100644
index 0000000..874230f
--- /dev/null
+++ b/Pub_Class/bin/Release/SyntacticSugar.dll
Binary files differ
diff --git a/Pub_Class/bin/Release/SyntacticSugar.pdb b/Pub_Class/bin/Release/SyntacticSugar.pdb
new file mode 100644
index 0000000..32b7fb9
--- /dev/null
+++ b/Pub_Class/bin/Release/SyntacticSugar.pdb
Binary files differ
diff --git a/Pub_Control/bin/Release/Pub_Class.dll b/Pub_Control/bin/Release/Pub_Class.dll
new file mode 100644
index 0000000..70ca24c
--- /dev/null
+++ b/Pub_Control/bin/Release/Pub_Class.dll
Binary files differ
diff --git a/Pub_Control/bin/Release/Pub_Class.pdb b/Pub_Control/bin/Release/Pub_Class.pdb
new file mode 100644
index 0000000..e9ff551
--- /dev/null
+++ b/Pub_Control/bin/Release/Pub_Class.pdb
Binary files differ
diff --git a/Pub_Control/bin/Release/Pub_Control.dll b/Pub_Control/bin/Release/Pub_Control.dll
new file mode 100644
index 0000000..bece5dd
--- /dev/null
+++ b/Pub_Control/bin/Release/Pub_Control.dll
Binary files differ
diff --git a/Pub_Control/bin/Release/Pub_Control.pdb b/Pub_Control/bin/Release/Pub_Control.pdb
new file mode 100644
index 0000000..6372a18
--- /dev/null
+++ b/Pub_Control/bin/Release/Pub_Control.pdb
Binary files differ
diff --git a/SQLHelper/bin/Release/Pub_Class.dll b/SQLHelper/bin/Release/Pub_Class.dll
new file mode 100644
index 0000000..70ca24c
--- /dev/null
+++ b/SQLHelper/bin/Release/Pub_Class.dll
Binary files differ
diff --git a/SQLHelper/bin/Release/Pub_Class.pdb b/SQLHelper/bin/Release/Pub_Class.pdb
new file mode 100644
index 0000000..e9ff551
--- /dev/null
+++ b/SQLHelper/bin/Release/Pub_Class.pdb
Binary files differ
diff --git a/SQLHelper/bin/Release/SQLHelper.dll b/SQLHelper/bin/Release/SQLHelper.dll
new file mode 100644
index 0000000..7566075
--- /dev/null
+++ b/SQLHelper/bin/Release/SQLHelper.dll
Binary files differ
diff --git a/SQLHelper/bin/Release/SQLHelper.pdb b/SQLHelper/bin/Release/SQLHelper.pdb
new file mode 100644
index 0000000..7aa58b6
--- /dev/null
+++ b/SQLHelper/bin/Release/SQLHelper.pdb
Binary files differ
diff --git a/SyntacticSugar/bin/Debug/SyntacticSugar.dll b/SyntacticSugar/bin/Debug/SyntacticSugar.dll
index a7e7f70..ad73869 100644
--- a/SyntacticSugar/bin/Debug/SyntacticSugar.dll
+++ b/SyntacticSugar/bin/Debug/SyntacticSugar.dll
Binary files differ
diff --git a/SyntacticSugar/bin/Debug/SyntacticSugar.pdb b/SyntacticSugar/bin/Debug/SyntacticSugar.pdb
index 75e66e8..bfc7b68 100644
--- a/SyntacticSugar/bin/Debug/SyntacticSugar.pdb
+++ b/SyntacticSugar/bin/Debug/SyntacticSugar.pdb
Binary files differ
diff --git a/SyntacticSugar/bin/Release/SyntacticSugar.dll b/SyntacticSugar/bin/Release/SyntacticSugar.dll
new file mode 100644
index 0000000..874230f
--- /dev/null
+++ b/SyntacticSugar/bin/Release/SyntacticSugar.dll
Binary files differ
diff --git a/SyntacticSugar/bin/Release/SyntacticSugar.pdb b/SyntacticSugar/bin/Release/SyntacticSugar.pdb
new file mode 100644
index 0000000..32b7fb9
--- /dev/null
+++ b/SyntacticSugar/bin/Release/SyntacticSugar.pdb
Binary files differ
diff --git a/SyntacticSugar/obj/Debug/SyntacticSugar.csproj.FileListAbsolute.txt b/SyntacticSugar/obj/Debug/SyntacticSugar.csproj.FileListAbsolute.txt
index a074553..f032f9d 100644
--- a/SyntacticSugar/obj/Debug/SyntacticSugar.csproj.FileListAbsolute.txt
+++ b/SyntacticSugar/obj/Debug/SyntacticSugar.csproj.FileListAbsolute.txt
@@ -4,3 +4,8 @@
 D:\宸ヤ綔浠g爜\鏅轰簯杩堟�漒MES\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.csproj.CoreCompileInputs.cache
 D:\宸ヤ綔浠g爜\鏅轰簯杩堟�漒MES\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.dll
 D:\宸ヤ綔浠g爜\鏅轰簯杩堟�漒MES\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.pdb
+D:\GitHub\MES-WEB-API\SyntacticSugar\bin\Debug\SyntacticSugar.dll
+D:\GitHub\MES-WEB-API\SyntacticSugar\bin\Debug\SyntacticSugar.pdb
+D:\GitHub\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.csproj.CoreCompileInputs.cache
+D:\GitHub\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.dll
+D:\GitHub\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.pdb
diff --git a/SyntacticSugar/obj/Debug/SyntacticSugar.dll b/SyntacticSugar/obj/Debug/SyntacticSugar.dll
index a7e7f70..ad73869 100644
--- a/SyntacticSugar/obj/Debug/SyntacticSugar.dll
+++ b/SyntacticSugar/obj/Debug/SyntacticSugar.dll
Binary files differ
diff --git a/SyntacticSugar/obj/Debug/SyntacticSugar.pdb b/SyntacticSugar/obj/Debug/SyntacticSugar.pdb
index 75e66e8..bfc7b68 100644
--- a/SyntacticSugar/obj/Debug/SyntacticSugar.pdb
+++ b/SyntacticSugar/obj/Debug/SyntacticSugar.pdb
Binary files differ
diff --git a/SyntacticSugar/obj/Debug/SyntacticSugar.csproj.AssemblyReference.cache b/SyntacticSugar/obj/Release/SyntacticSugar.csproj.AssemblyReference.cache
similarity index 100%
rename from SyntacticSugar/obj/Debug/SyntacticSugar.csproj.AssemblyReference.cache
rename to SyntacticSugar/obj/Release/SyntacticSugar.csproj.AssemblyReference.cache
Binary files differ
diff --git a/SyntacticSugar/obj/Release/SyntacticSugar.csproj.CoreCompileInputs.cache b/SyntacticSugar/obj/Release/SyntacticSugar.csproj.CoreCompileInputs.cache
new file mode 100644
index 0000000..bfb772c
--- /dev/null
+++ b/SyntacticSugar/obj/Release/SyntacticSugar.csproj.CoreCompileInputs.cache
@@ -0,0 +1 @@
+5dd9c82feb12f833c78ecebea7d9a46c99f29e3f
diff --git a/SyntacticSugar/obj/Release/SyntacticSugar.dll b/SyntacticSugar/obj/Release/SyntacticSugar.dll
new file mode 100644
index 0000000..874230f
--- /dev/null
+++ b/SyntacticSugar/obj/Release/SyntacticSugar.dll
Binary files differ
diff --git a/SyntacticSugar/obj/Release/SyntacticSugar.pdb b/SyntacticSugar/obj/Release/SyntacticSugar.pdb
new file mode 100644
index 0000000..32b7fb9
--- /dev/null
+++ b/SyntacticSugar/obj/Release/SyntacticSugar.pdb
Binary files differ
diff --git a/WebAPI/Controllers/WebAPIController.cs b/WebAPI/Controllers/WebAPIController.cs
index 3893fe6..545c65b 100644
--- a/WebAPI/Controllers/WebAPIController.cs
+++ b/WebAPI/Controllers/WebAPIController.cs
@@ -24368,6 +24368,8 @@
 
         #region APP鏍规嵁璁惧id杩涜鑷姩鐧诲綍
        
+
+
         [HttpGet]
         [Route("Web/getSysParameter")]
         public object getSysParameter(string HClientID)
@@ -24411,8 +24413,153 @@
                 return objJsonResult;
             }
         }
-
         #endregion
-      
+
+        #region 鏍规嵁琛ㄥ悕鑾峰彇sql璇彞
+        [HttpGet]
+        [Route("Web/getSQL")]
+        public object getSQL(string TableName, string ModeName, string OpertionType, string Identityid)
+        {
+            if (OpertionType == "insert")
+            {
+                string sql = $"select * from {TableName}";
+                DataSet ds = oCN.RunProcReturn(sql, TableName);
+
+                if (ds == null || ds.Tables[0].Rows.Count <= 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "绯荤粺鍙傛暟涓嶅瓨鍦紝璇疯仈绯荤鐞�";
+                    objJsonResult.data = 0;
+                    return objJsonResult;
+                }
+
+                sql = $"exec h_p_sqlhelper '{TableName}'";
+                ds = oCN.RunProcReturn(sql, "h_p_sqlhelper");
+
+                if (ds == null || ds.Tables.Count < 2 || ds.Tables[1].Rows.Count <= 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "绯荤粺鍙傛暟涓嶅瓨鍦紝璇疯仈绯荤鐞�";
+                    objJsonResult.data = 0;
+                    return objJsonResult;
+                }
+
+                StringBuilder sb = new StringBuilder();
+                string columnsStr = ds.Tables[0].Rows[0][0].ToString();
+                sb.AppendLine($"sqlRes = $\"INSERT INTO [{TableName}] ({columnsStr})");
+                sb.AppendLine("                VALUES (");
+
+                // 2. 鎷兼帴 VALUES 閲岄潰鐨勫弬鏁�
+                int count = ds.Tables[1].Rows.Count;
+                for (int i = 0; i < count; i++)
+                {
+                    string propName = ds.Tables[1].Rows[i][0].ToString();
+                    string valueFormat = "";
+                    if (propName == "HMakeDate")
+                    {
+                        valueFormat = "getdata()";
+                    }
+                    else if (propName == "HERPItemID")
+                    {
+                        valueFormat = "'{0}'";
+                    }
+                    else
+                    {
+                        valueFormat = $"'{{{ModeName}.{propName}}}'"; // 榛樿閫氱敤閫昏緫
+                    }
+                    sb.Append("                " + valueFormat);
+
+                    if (i < count - 1)
+                    {
+                        sb.Append(",");
+                    }
+                    sb.AppendLine();
+                }
+                sb.AppendLine("                ); \";");
+                sb.Append(" oCN.RunProc(sqlRes);");
+
+                objJsonResult.code = "1";
+                objJsonResult.count = 1;
+                objJsonResult.Message = "鎴愬姛";
+                objJsonResult.data = sb;
+                return objJsonResult;
+            }
+            else
+            {
+                string whereKey = Identityid;
+                string sql = $"select * from {TableName}";
+                DataSet ds = oCN.RunProcReturn(sql, TableName);
+
+                if (ds == null || ds.Tables[0].Rows.Count <= 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "绯荤粺鍙傛暟涓嶅瓨鍦紝璇疯仈绯荤鐞�";
+                    objJsonResult.data = 0;
+                    return objJsonResult;
+                }
+                sql = $"exec h_p_sqlhelper '{TableName}'";
+                ds = oCN.RunProcReturn(sql, "h_p_sqlhelper");
+
+                if (ds == null || ds.Tables.Count < 2 || ds.Tables[1].Rows.Count <= 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "绯荤粺鍙傛暟涓嶅瓨鍦紝璇疯仈绯荤鐞�";
+                    objJsonResult.data = 0;
+                    return objJsonResult;
+                }
+                StringBuilder sb = new StringBuilder();
+
+                sb.Append($"sqlRes =$\"Update {TableName} set ");
+
+                int count = ds.Tables[1].Rows.Count;
+                int setFieldCount = 0;
+
+                for (int i = 0; i < count; i++)
+                {
+                    string propName = ds.Tables[1].Rows[i][0].ToString();
+
+
+                    if (propName == whereKey)
+                        continue;
+
+
+                    if (setFieldCount > 0)
+                    {
+                        sb.Append(",");
+                    }
+                    string valueFormat = "";
+                    if (propName == "HModifyTime" || propName == "HUpDateDate")
+                    {
+                        valueFormat = $"{propName}=getdate()";
+                    }
+                    else
+                    {
+                        valueFormat = $"{propName}='{{{ModeName}.{propName}}}'";
+                    }
+                    sb.Append("\r\n                " + valueFormat);
+
+                    setFieldCount++;
+                }
+
+                sb.Append($" where {whereKey}='{{{ModeName}.{whereKey}}}'\"");
+                sb.AppendLine();
+                sb.Append("oCN.RunProc(sqlRes);");
+
+
+                objJsonResult.code = "1";
+                objJsonResult.count = 1;
+                objJsonResult.Message = "鎴愬姛";
+                objJsonResult.data = sb;
+                return objJsonResult;
+            }
+        }
+        #endregion
     }
+
+
 }
+
diff --git a/WebAPI/WebAPI.csproj.user b/WebAPI/WebAPI.csproj.user
index 1bd2ca7..a4e4148 100644
--- a/WebAPI/WebAPI.csproj.user
+++ b/WebAPI/WebAPI.csproj.user
@@ -13,34 +13,10 @@
     <NameOfLastUsedPublishProfile>D:\gz\MES-WEB-API\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile1.pubxml</NameOfLastUsedPublishProfile>
     <NameOfLastUsedPublishProfile>D:\gz\MES-WEB-API\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile8.pubxml</NameOfLastUsedPublishProfile>
     <NameOfLastUsedPublishProfile>D:\WorkBench\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile4.pubxml</NameOfLastUsedPublishProfile>
-    <ProjectView>ProjectFiles</ProjectView>
+    <ProjectView>ShowAllFiles</ProjectView>
     <NameOfLastUsedPublishProfile>D:\缃戠珯鍙戝竷\鍚庣浠g爜\MES-WEB-API\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile2.pubxml</NameOfLastUsedPublishProfile>
     <NameOfLastUsedPublishProfile>C:\Users\19858\Desktop\鏅轰簯杩堟�漒MES-WEB-API\WebAPI\Properties\PublishProfiles\WTTFolder.pubxml</NameOfLastUsedPublishProfile>
     <NameOfLastUsedPublishProfile>D:\WorkBench\MES-WEB-API\WebAPI\Properties\PublishProfiles\CHZFolderProfile.pubxml</NameOfLastUsedPublishProfile>
   </PropertyGroup>
-  <ProjectExtensions>
-    <VisualStudio>
-      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
-        <WebProjectProperties>
-          <StartPageUrl>
-          </StartPageUrl>
-          <StartAction>CurrentPage</StartAction>
-          <AspNetDebugging>True</AspNetDebugging>
-          <SilverlightDebugging>False</SilverlightDebugging>
-          <NativeDebugging>False</NativeDebugging>
-          <SQLDebugging>False</SQLDebugging>
-          <ExternalProgram>
-          </ExternalProgram>
-          <StartExternalURL>
-          </StartExternalURL>
-          <StartCmdLineArguments>
-          </StartCmdLineArguments>
-          <StartWorkingDirectory>
-          </StartWorkingDirectory>
-          <EnableENC>True</EnableENC>
-          <AlwaysStartWebServerOnDebug>False</AlwaysStartWebServerOnDebug>
-        </WebProjectProperties>
-      </FlavorProperties>
-    </VisualStudio>
-  </ProjectExtensions>
+  <ProjectExtensions />
 </Project>
\ No newline at end of file
diff --git a/sdk_dingding/TopSdk/bin/Debug/TopSdk.dll b/sdk_dingding/TopSdk/bin/Debug/TopSdk.dll
index 8ef95f4..3b9aef9 100644
--- a/sdk_dingding/TopSdk/bin/Debug/TopSdk.dll
+++ b/sdk_dingding/TopSdk/bin/Debug/TopSdk.dll
Binary files differ
diff --git a/sdk_dingding/TopSdk/bin/Debug/TopSdk.pdb b/sdk_dingding/TopSdk/bin/Debug/TopSdk.pdb
index f33b399..75bb89f 100644
--- a/sdk_dingding/TopSdk/bin/Debug/TopSdk.pdb
+++ b/sdk_dingding/TopSdk/bin/Debug/TopSdk.pdb
Binary files differ
diff --git a/sdk_dingding/TopSdk/bin/Release/TopSdk.dll b/sdk_dingding/TopSdk/bin/Release/TopSdk.dll
new file mode 100644
index 0000000..b97aacb
--- /dev/null
+++ b/sdk_dingding/TopSdk/bin/Release/TopSdk.dll
Binary files differ
diff --git a/sdk_dingding/TopSdk/bin/Release/TopSdk.pdb b/sdk_dingding/TopSdk/bin/Release/TopSdk.pdb
new file mode 100644
index 0000000..a59f95f
--- /dev/null
+++ b/sdk_dingding/TopSdk/bin/Release/TopSdk.pdb
Binary files differ
diff --git a/sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.FileListAbsolute.txt b/sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.FileListAbsolute.txt
index 5fb62d0..d200084 100644
--- a/sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.FileListAbsolute.txt
+++ b/sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.FileListAbsolute.txt
@@ -27,3 +27,8 @@
 D:\WorkBench\MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.csproj.AssemblyReference.cache
 C:\Users\19858\Desktop\鏅轰簯杩堟�漒MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.csproj.AssemblyReference.cache
 D:\宸ヤ綔浠g爜\鏅轰簯杩堟�漒MES\MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.csproj.AssemblyReference.cache
+D:\GitHub\MES-WEB-API\sdk_dingding\TopSdk\bin\Debug\TopSdk.dll
+D:\GitHub\MES-WEB-API\sdk_dingding\TopSdk\bin\Debug\TopSdk.pdb
+D:\GitHub\MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.csproj.CoreCompileInputs.cache
+D:\GitHub\MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.dll
+D:\GitHub\MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.pdb
diff --git a/sdk_dingding/TopSdk/obj/Debug/TopSdk.dll b/sdk_dingding/TopSdk/obj/Debug/TopSdk.dll
index 8ef95f4..3b9aef9 100644
--- a/sdk_dingding/TopSdk/obj/Debug/TopSdk.dll
+++ b/sdk_dingding/TopSdk/obj/Debug/TopSdk.dll
Binary files differ
diff --git a/sdk_dingding/TopSdk/obj/Debug/TopSdk.pdb b/sdk_dingding/TopSdk/obj/Debug/TopSdk.pdb
index f33b399..75bb89f 100644
--- a/sdk_dingding/TopSdk/obj/Debug/TopSdk.pdb
+++ b/sdk_dingding/TopSdk/obj/Debug/TopSdk.pdb
Binary files differ
diff --git a/sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.AssemblyReference.cache b/sdk_dingding/TopSdk/obj/Release/TopSdk.csproj.AssemblyReference.cache
similarity index 85%
rename from sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.AssemblyReference.cache
rename to sdk_dingding/TopSdk/obj/Release/TopSdk.csproj.AssemblyReference.cache
index 146005a..afa8882 100644
--- a/sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.AssemblyReference.cache
+++ b/sdk_dingding/TopSdk/obj/Release/TopSdk.csproj.AssemblyReference.cache
Binary files differ
diff --git a/sdk_dingding/TopSdk/obj/Release/TopSdk.csproj.CoreCompileInputs.cache b/sdk_dingding/TopSdk/obj/Release/TopSdk.csproj.CoreCompileInputs.cache
new file mode 100644
index 0000000..0312216
--- /dev/null
+++ b/sdk_dingding/TopSdk/obj/Release/TopSdk.csproj.CoreCompileInputs.cache
@@ -0,0 +1 @@
+eb64bc61f5da8fdd8ad56e04c391e3a377d8ca59
diff --git a/sdk_dingding/TopSdk/obj/Release/TopSdk.dll b/sdk_dingding/TopSdk/obj/Release/TopSdk.dll
new file mode 100644
index 0000000..b97aacb
--- /dev/null
+++ b/sdk_dingding/TopSdk/obj/Release/TopSdk.dll
Binary files differ
diff --git a/sdk_dingding/TopSdk/obj/Release/TopSdk.pdb b/sdk_dingding/TopSdk/obj/Release/TopSdk.pdb
new file mode 100644
index 0000000..a59f95f
--- /dev/null
+++ b/sdk_dingding/TopSdk/obj/Release/TopSdk.pdb
Binary files differ

--
Gitblit v1.9.1