From 0dd3469715a719779b08d0df00b801ea054b2eab Mon Sep 17 00:00:00 2001
From: cnf <3200815559@qq.com>
Date: 星期三, 02 四月 2025 10:13:23 +0800
Subject: [PATCH] 无法打包
---
MES.Service/service/SentLaboratory/SaveLaboratoryManager.cs | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/MES.Service/service/SentLaboratory/SaveLaboratoryManager.cs b/MES.Service/service/SentLaboratory/SaveLaboratoryManager.cs
index dbfa7b9..b548b57 100644
--- a/MES.Service/service/SentLaboratory/SaveLaboratoryManager.cs
+++ b/MES.Service/service/SentLaboratory/SaveLaboratoryManager.cs
@@ -154,4 +154,32 @@
//}
}
+
+ public string DeleteLaboratory(string JYDH)
+ {
+ try
+ {
+ var db = SqlSugarHelper.GetInstance();
+ // 鍋囪 db 鏄� SQLSugar 鐨� SqlSugarClient 瀹炰緥
+ var result = db.Deleteable<UpdateMesQmsSample>()
+ .Where(t => t.JYDH == JYDH) // 鏍规嵁 JYDH 鍒犻櫎
+ .ExecuteCommand();
+
+ Debug.WriteLine(result);
+
+ if (result > 0)
+ {
+ return "鍒犻櫎鎴愬姛锛�";
+ }
+ else
+ {
+ return "鏈壘鍒板尮閰嶇殑璁板綍锛屽垹闄ゅけ璐ャ��";
+ }
+ }
+ catch (Exception ex)
+ {
+ return "鍒犻櫎澶辫触锛岄敊璇俊鎭細" + ex.Message;
+ }
+ }
+
}
--
Gitblit v1.9.3