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 | 29 +++-------------------------- 1 files changed, 3 insertions(+), 26 deletions(-) diff --git a/api/DebugController.cs b/api/DebugController.cs index e725102..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 "鏁版嵁搴撴搷浣滃け璐ワ紒"; @@ -400,10 +400,6 @@ /// AGV 灏忚溅鍙� /// </summary> public string ForkliftNo { set; get; } - ///// <summary> - ///// AGV 涓嬩竴涓姸鎬�- ///// </summary> - //public int NextState { set; get; } } public class AgvReportsInfo { @@ -421,15 +417,6 @@ public int NextState { set; get; } = 0; } - public class FalseOk { - public bool JumpOut { set; get; } = true; - } - - public class InsertCntrItemInfo { - public string Cntr { set; get; } - public string Item { set; get; } - } - /// <summary> /// /// </summary> @@ -437,14 +424,4 @@ public List<ReturnResult> ResultList { set; get; } } - public class LocCntrCg { - public string Note { get; set; } // 浠呯敤浜庡娉�- - public string LocCode { get; set; } - public string LocArea { get; set; } - public string CntrCode { get; set; } - public string CntrType { get; set; } - public string ItemCode { get; set; } - public string BatchNo { get; set; } - } } -- Gitblit v1.9.1