From d811e775f550e65f4af420806e3d7a12c0c334bc Mon Sep 17 00:00:00 2001
From: Rodney Chen <rodney.chen@hotmail.com>
Date: 星期一, 26 八月 2024 16:58:41 +0800
Subject: [PATCH] 合并

---
 Tiger.Business.WMS/Transaction/OutOther.cs |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/Tiger.Business.WMS/Transaction/OutOther.cs b/Tiger.Business.WMS/Transaction/OutOther.cs
index 86c33bc..4101933 100644
--- a/Tiger.Business.WMS/Transaction/OutOther.cs
+++ b/Tiger.Business.WMS/Transaction/OutOther.cs
@@ -218,7 +218,7 @@
             {
                 if (!input.Code.IsNullOrEmpty())
                 {
-                    Biz.Db.Deleteable<WMS_ITEM_POOL>().Where(q => CurPoolList.Select(q => q.SN).Contains(q.SN)).ExecuteCommand();
+                    Biz.Db.Deleteable<WMS_ITEM_POOL>().Where(q => q.TRANS_CODE == req.BILLCODE).ExecuteCommand();
                     //濡傛灉涓婁竴娆℃帹鑽愭湁鏁版嵁锛屽垯鍏堢伃鎺変寒鐨勭伅
                     if (Suggests.Any())
                     {
@@ -276,16 +276,7 @@
                     Suggests.RemoveAll(q => q.poolItem.IsNullOrEmpty());
 
                     //淇濆瓨鐗╂枡姹犲埌鏁版嵁搴�
-                    var db = Biz.Db;
-                    var dbTran = db.UseTran(() =>
-                    {
-                        db.Deleteable<WMS_ITEM_POOL>().Where(q => q.TRANS_CODE == req.BILLCODE).ExecuteCommand();
-                        db.Insertable(CurPoolList).ExecuteCommand();
-                    });
-                    if (!dbTran.IsSuccess)
-                    {
-                        throw dbTran.ErrorException;
-                    }
+                    Biz.Db.Insertable(CurPoolList).ExecuteCommand();
                     action = await LightAll(new() { AuthOption = input.AuthOption, ReqType = ReqType.IsWhole, Color = LedColor.Blue,ItemCode = input.Code });
                 }
             }

--
Gitblit v1.9.3