From 219a08427376efdd304e9b11e481ccd8276018bb Mon Sep 17 00:00:00 2001
From: zhaowc <526854230@qq.com>
Date: 星期六, 18 十月 2025 11:14:29 +0800
Subject: [PATCH] 巷道形式存取放物料

---
 Wms/WMS.BLL/BllTransServer/RcsServer.cs |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/Wms/WMS.BLL/BllTransServer/RcsServer.cs b/Wms/WMS.BLL/BllTransServer/RcsServer.cs
index 3db34c0..26b58f2 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();
@@ -1097,7 +1097,7 @@
                 
                 //淇敼搴撳瓨鏄庣粏
                 var stockDetail = Db.Queryable<DataStockDetail>().First(w => w.IsDel == "0" && w.PalletNo == task.PalletNo);
-                if (stockDetail == null)
+                if (stockDetail == null)                                                                                                
                 {
                     throw new Exception("鏈煡璇㈠埌璇ユ《搴撳瓨淇℃伅,璇锋鏌�!");
                 }
@@ -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