From b5f1dc9b984bcc449aac349a8760cd4c4d83beae Mon Sep 17 00:00:00 2001
From: hwh <332078369@qq.com>
Date: 星期五, 26 七月 2024 10:04:12 +0800
Subject: [PATCH] Merge branch 'hwh'

---
 Wms/WMS.BLL/BllCheckServer/WarehouseOutsidePalletsServer.cs |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/Wms/WMS.BLL/BllCheckServer/WarehouseOutsidePalletsServer.cs b/Wms/WMS.BLL/BllCheckServer/WarehouseOutsidePalletsServer.cs
index 9e2a432..b2cbc5a 100644
--- a/Wms/WMS.BLL/BllCheckServer/WarehouseOutsidePalletsServer.cs
+++ b/Wms/WMS.BLL/BllCheckServer/WarehouseOutsidePalletsServer.cs
@@ -1,5 +1,6 @@
 锘縰sing Model.ModelDto.DataDto;
 using Model.ModelDto.SysDto;
+using Model.ModelVm.LogVm;
 using SqlSugar;
 using System;
 using System.Collections.Generic;
@@ -14,6 +15,7 @@
 using WMS.Entity.LogEntity;
 using WMS.Entity.SysEntity;
 using WMS.IBLL.IBllCheckServer;
+using WMS.IBLL.ILogServer;
 
 namespace WMS.BLL.BllCheckServer
 {
@@ -21,9 +23,11 @@
     {
         private static readonly SqlSugarScope Db = DataContext.Db;
         private readonly UserManager _userManager;
-        public WarehouseOutsidePalletsServer(UserManager userManager) : base(Db)
+        private readonly IOperationCRServer _operation;
+        public WarehouseOutsidePalletsServer(UserManager userManager, IOperationCRServer operation) : base(Db)
         {
             _userManager = userManager;
+            _operation = operation;
         }
 
         /// <summary>
@@ -178,8 +182,14 @@
                     await Db.Updateable(bindModel).ExecuteCommandAsync();
                 }
                 // 鎻掑叆鎿嶄綔鏃ュ織
-                new OperationASNServer().AddLogOperationAsn("搴撳唴浣滀笟", "搴撳鎵樼洏", stockDetail.PalletNo, "缂栬緫",
-                        $"鎸囧畾浜嗗偍浣嶏細{locate.LocatNo}銆佸崟鎹彿锛歿stockDetail.ASNNo}銆佹墭鐩樼爜锛歿stockDetail.PalletNo}鐨勪俊鎭�", _userManager.UserId);
+                await _operation.AddLogOperationCr(new OperationInputVm()
+                {
+                    ParentName = "搴撳唴浣滀笟",
+                    MenuName = "搴撳鎵樼洏",
+                    FkNo = stockDetail.PalletNo,
+                    TypeName = "缂栬緫",
+                    Msg = $"鎸囧畾浜嗗偍浣嶏細{locate.LocatNo}銆佸崟鎹彿锛歿stockDetail.ASNNo}銆佹墭鐩樼爜锛歿stockDetail.PalletNo}鐨勪俊鎭�"
+                });
                 //鎻愪氦浜嬪姟
                 Db.CommitTran();
             }

--
Gitblit v1.8.0