From b928a2f0011fc867d7d219cfff4b764250f5b778 Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期三, 09 七月 2025 17:03:08 +0800 Subject: [PATCH] 修复查交互表更新终点的流程,添加绑定货位写入物料明细表 --- wms/LocationHelper.cs | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/wms/LocationHelper.cs b/wms/LocationHelper.cs index 246ed9d..f6db6c6 100644 --- a/wms/LocationHelper.cs +++ b/wms/LocationHelper.cs @@ -221,7 +221,8 @@ using (var tran = db.Ado.UseTran()) { - if (db.Deleteable<TN_Loc_Container>().Where(it => cntrs.Contains(it.S_CNTR_CODE) && it.S_LOC_CODE == loc).ExecuteCommand() > 0) + if (db.Deleteable<TN_Loc_Container>().Where(it => cntrs.Contains(it.S_CNTR_CODE) && it.S_LOC_CODE == loc).ExecuteCommand() > 0 && + db.Updateable<TN_CG_Detail>().SetColumns(d => d.S_LOC_CODE == null).Where(d => cntrs.Contains(d.S_CNTR_CODE)).ExecuteCommand() > 0) // ADD锛氳ˉ鍏呴拡瀵筆DA鍒嗘嫞 { LogHelper.Info($"鍒犻櫎璐т綅瀹瑰櫒鍏崇郴琛ㄦ垚鍔燂紝{log}"); } @@ -294,7 +295,8 @@ using (var tran = db.Ado.UseTran()) { - if (db.Insertable<TN_Loc_Container>(bindLocCntList).ExecuteCommand() > 0) + if (db.Insertable<TN_Loc_Container>(bindLocCntList).ExecuteCommand() > 0 && + db.Updateable<TN_CG_Detail>().SetColumns(d => d.S_LOC_CODE == loc).Where(d => cntrs.Contains(d.S_CNTR_CODE)).ExecuteCommand() > 0) // ADD锛氳ˉ鍏呴拡瀵筆DA鍒嗘嫞 { LogHelper.Info($"鎻掑叆璐т綅瀹瑰櫒鍏崇郴琛ㄦ垚鍔燂紝{log}"); } @@ -516,11 +518,6 @@ public class EmptyUnBindInfo { public string cntID { get; set; }//瀹瑰櫒ID - } - - public class CancleTaskInfo - { - public string taskNO { get; set; }//浠诲姟鍙� } public class PDAFullInAreaInfo -- Gitblit v1.9.1