From e79700d34620c495667b7b8e7b852f23ed7d7e4e Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期三, 16 七月 2025 17:30:42 +0800 Subject: [PATCH] 简化增删改表达式,避免类型匹配出错 --- api/DebugController.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/DebugController.cs b/api/DebugController.cs index dd1d711..6934fdb 100644 --- a/api/DebugController.cs +++ b/api/DebugController.cs @@ -261,9 +261,9 @@ endLoc.N_CURRENT_NUM = 1; using (var tran = db.Ado.UseTran()) { - if (db.Updateable<TN_Location>(startLoc).ExecuteCommand() <= 0 && - db.Updateable<TN_Location>(endLoc).ExecuteCommand() <= 0 && - db.Updateable<TN_Loc_Container>(locCntrRel).ExecuteCommand() <= 0) { + if (db.Updateable(startLoc).ExecuteCommand() <= 0 && + db.Updateable(endLoc).ExecuteCommand() <= 0 && + db.Updateable(locCntrRel).ExecuteCommand() <= 0) { tran.RollbackTran(); return "鏁版嵁搴撴搷浣滃け璐ワ紒"; -- Gitblit v1.9.1