From 4de417b106a062452f5ac86e626e7e225b753eab Mon Sep 17 00:00:00 2001 From: zhaowc <526854230@qq.com> Date: 星期二, 23 九月 2025 08:03:11 +0800 Subject: [PATCH] 优化问题 --- Wms/WMS.BLL/BllTransServer/RcsServer.cs | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Wms/WMS.BLL/BllTransServer/RcsServer.cs b/Wms/WMS.BLL/BllTransServer/RcsServer.cs index 3db34c0..de8b33e 100644 --- a/Wms/WMS.BLL/BllTransServer/RcsServer.cs +++ b/Wms/WMS.BLL/BllTransServer/RcsServer.cs @@ -338,7 +338,7 @@ //logTaskEntry2.IsCancel = 0; logTaskEntry2.BackDate = DateTime.Now; logTaskEntry2.Status = "1"; - Db.Insertable(logTaskEntry2).ExecuteCommand(); + Db.Updateable(logTaskEntry2).ExecuteCommand(); startLoction2.Status = "3";//鍑哄簱涓� Db.Updateable(startLoction2).ExecuteCommand(); @@ -350,7 +350,7 @@ { logTaskEntry2.IsSuccess = 0; logTaskEntry2.Information = agvMsg; - Db.Insertable(logTaskEntry2).ExecuteCommand(); + Db.Updateable(logTaskEntry2).ExecuteCommand(); } //鎻愪氦浜嬪姟 @@ -414,7 +414,7 @@ //logTaskEntry.IsCancel = 0; logTaskEntry.BackDate = DateTime.Now; logTaskEntry.Status = "1";//姝e湪鎵ц - Db.Insertable(logTaskEntry).ExecuteCommand(); + Db.Updateable(logTaskEntry).ExecuteCommand(); startLoction.Status = "3";//鍑哄簱涓� Db.Updateable(startLoction).ExecuteCommand(); @@ -426,7 +426,7 @@ { logTaskEntry.IsSuccess = 0; logTaskEntry.Information = agvMsg; - Db.Insertable(logTaskEntry).ExecuteCommand(); + Db.Updateable(logTaskEntry).ExecuteCommand(); } //鎻愪氦浜嬪姟 @@ -706,7 +706,7 @@ //logTaskEntry.IsCancel = 0; logTaskEntry.BackDate = DateTime.Now; logTaskEntry.Status = "1";//姝e湪鎵ц - Db.Insertable(logTaskEntry).ExecuteCommand(); + Db.Updateable(logTaskEntry).ExecuteCommand(); deviceLocatInfo.Status = "3";//鍑哄簱涓� Db.Updateable(deviceLocatInfo).ExecuteCommand(); @@ -718,7 +718,7 @@ { logTaskEntry.IsSuccess = 0; logTaskEntry.Information = agvMsg; - Db.Insertable(logTaskEntry).ExecuteCommand(); + Db.Updateable(logTaskEntry).ExecuteCommand(); } //鎻愪氦浜嬪姟 Db.CommitTran(); @@ -1458,7 +1458,7 @@ //logTaskEntry.IsCancel = 0; logTaskEntry.BackDate = DateTime.Now; logTaskEntry.Status = "1";//姝e湪鎵ц - Db.Insertable(logTaskEntry).ExecuteCommand(); + Db.Updateable(logTaskEntry).ExecuteCommand(); locatInfo.Status = "5";//绉诲嚭涓� @@ -1471,7 +1471,7 @@ { logTaskEntry.IsSuccess = 0; logTaskEntry.Information = agvMsg; - Db.Insertable(logTaskEntry).ExecuteCommand(); + Db.Updateable(logTaskEntry).ExecuteCommand(); throw new Exception($"缁欏皬杞︿笅鍙戠Щ搴撲换鍔″け璐ワ紝妗跺彿锛歿palletInfoYi.PalletNo}"); } -- Gitblit v1.8.0