From dda095e27b535d5748340f127c5f83c0d1324226 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期三, 29 十月 2025 17:30:58 +0800
Subject: [PATCH] 1

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Boxing/BoxingInfoService.cs |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Boxing/BoxingInfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Boxing/BoxingInfoService.cs"
index e119110..3403592 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Boxing/BoxingInfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Boxing/BoxingInfoService.cs"
@@ -152,16 +152,16 @@
             {
                 return content.Error("鍙傛暟閿欒");
             }
-            var stock = await BaseDal.QueryFirstNavAsync(x => x.PalletCode == groupPlate.palletCode && x.StockStatus == (int)StockStateEmun.缁勭洏鏆傚瓨);
-            if (!stock.IsNullOrEmpty())
+            var boxingInfo = await BaseDal.QueryFirstNavAsync(x => x.PalletCode == groupPlate.palletCode && x.StockStatus == (int)StockStateEmun.缁勭洏鏆傚瓨);
+            if (!boxingInfo.IsNullOrEmpty())
             {
-                stock.StockStatus = (int)StockStateEmun.缁勭洏鎾ら攢;
-                DtStockInfo_Hty stockhty = stock.Adapt<DtStockInfo_Hty>();
+                boxingInfo.StockStatus = (int)StockStateEmun.缁勭洏鎾ら攢;
+                DtBoxingInfo_Hty stockhty = boxingInfo.Adapt<DtBoxingInfo_Hty>();
                 stockhty.ModifyDate = DateTime.Now;
                 await _unitOfWorkManage.UseTranAsync(async () =>
                 {
-                    await BaseDal.Db.DeleteNav<DtStockInfo>(x => x.Id == stock.Id)
-                                            .Include(x => x.StockInfoDetails)
+                    await BaseDal.Db.DeleteNav<DtBoxingInfo>(x => x.Id == boxingInfo.Id)
+                                            .Include(x => x.BoxingInfoDetails)
                                             .ExecuteCommandAsync();
                     await AddStockHtyAsync(stockhty);
                 });
@@ -178,7 +178,7 @@
             return content.Error(ex.Message);
         }
     }
-    private async Task AddStockHtyAsync(DtStockInfo_Hty stockhty)
+    private async Task AddStockHtyAsync(DtBoxingInfo_Hty stockhty)
     {
         var isStockAdd = await SqlSugarHelper.DbWMS.InsertNav(stockhty).IncludesAllFirstLayer().ExecuteCommandAsync();
         if (!isStockAdd)

--
Gitblit v1.9.3