From a64a56680f2d1e3c8ee673545ae5f09329a8ebbe Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期四, 15 八月 2024 18:15:40 +0800 Subject: [PATCH] 1 --- MES.Service/service/Warehouse/MesInvItemMovesManager.cs | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/MES.Service/service/Warehouse/MesInvItemMovesManager.cs b/MES.Service/service/Warehouse/MesInvItemMovesManager.cs index 5e1cb86..eeb48e6 100644 --- a/MES.Service/service/Warehouse/MesInvItemMovesManager.cs +++ b/MES.Service/service/Warehouse/MesInvItemMovesManager.cs @@ -287,9 +287,7 @@ if (sumqty > quantity) throw new Exception( "宸叉壂鏉$爜鏁伴噺鎴栨湰娆℃壂鐮佹暟閲忥細" + sumqty + " 澶т簬鐢宠鏁伴噺锛�" + quantity + "锛岃鏍稿锛�"); - - List<InventoryItem> scanOutShowDb = null; - + UseTransaction(db => { SaveMesInvItemMovesCDetails(db, query, mesInvItemMoves, @@ -314,7 +312,7 @@ .Where(s => s.Id == mesInvItemStocks.Id) .ExecuteCommand(); - scanOutShowDb = ScanOutShowDb(query); + var scanOutShowDb = ScanOutShowDb(query); if (CollectionUtil.IsNullOrEmpty(scanOutShowDb)) db.Updateable<MesInvItemMoves>() .SetColumns(s => s.Status == 1) @@ -326,7 +324,7 @@ }); var itemDto = new OutItemDto(); - itemDto.SumItem = scanOutShowDb; + //itemDto.SumItem = scanOutShowDb; if (TransctionNo == 201) itemDto.Quantity = mesInvItemStocks.Quantity; -- Gitblit v1.9.3