From a8fcfbb5e5ed9a07b1a30ef2d7ef9d407e9b04dd Mon Sep 17 00:00:00 2001
From: Rodney Chen <rodney.chen@hotmail.com>
Date: 星期三, 02 四月 2025 21:44:54 +0800
Subject: [PATCH] 更新ASN实体

---
 Tiger.Business.WMS/Transaction/WmsCount.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Tiger.Business.WMS/Transaction/WmsCount.cs b/Tiger.Business.WMS/Transaction/WmsCount.cs
index 1b590f2..1bfac82 100644
--- a/Tiger.Business.WMS/Transaction/WmsCount.cs
+++ b/Tiger.Business.WMS/Transaction/WmsCount.cs
@@ -16,7 +16,7 @@
 namespace Tiger.Business.WMS.Transaction
 {
     /// <summary>
-    /// 鐩樼偣璋冨害浜嬪姟
+    /// 浠撳簱鐩樼偣浜嬪姟
     /// </summary>
     public class WmsCount : WMSTransactionBase, IWmsCount
     {
@@ -205,14 +205,14 @@
                 }
 
                 //瑙f瀽鏉$爜
-                Result<Inventory> result = WMS_ITEM_Biz.WmsItem.Get(input.SN, input.AuthOption, true);
+                Result<IInventory> result = WMS_ITEM_Biz.WmsItem.Get(input.SN, input.AuthOption, true);
                 if (!result.IsSuccessed)
                 {
                     action.IsSuccessed = false;
                     action.LocaleMsg = result.LocaleMsg;
                     return action;
                 }
-                CurInv = result.Data;
+                CurInv = result.Data as Inventory;
 
                 //楠岃瘉鏉$爜鏄惁姝g‘
                 if (!CurInv.isNormalStatus || CurInv.Status != WMS_ITEM.STATUSs.InStore)
@@ -546,7 +546,7 @@
         public override bool Close(bool needSaveHistoryLog = false)
         {
             //妫�鏌ョ洏鐐瑰崟鏄惁鍏抽棴
-            Biz.Db.Ado.UseStoredProcedure().ExecuteCommand("pkg_count_status", new SugarParameter("CountNo", count.COUNT_NO));
+            Biz.Db.Ado.UseStoredProcedure().ExecuteCommand("sp_count_status", new SugarParameter("CountNo", count.COUNT_NO));
             //needSaveHistoryLog = true;
             CloseLight(new CountLightEntity() { ShelfCode = "" }).Wait();
             //淇濆瓨鎿嶄綔鏃ュ織

--
Gitblit v1.9.3