From 48d7d2be65597d31274461daadfd2360424e28b5 Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期二, 12 十一月 2024 21:36:14 +0800 Subject: [PATCH] Merge branch 'master' of http://47.115.28.255:8110/r/TigerClouds-Tech/Server/TigerApi6_2024 --- 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