From 00aaf49a223be04fc58f6f7c09d95ce4b22ef087 Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期五, 11 七月 2025 17:06:18 +0800 Subject: [PATCH] 修复盘点计划单、盘点单的状态更改逻辑 --- wms/LocationHelper.cs | 28 ++++------------------------ 1 files changed, 4 insertions(+), 24 deletions(-) diff --git a/wms/LocationHelper.cs b/wms/LocationHelper.cs index 38184c6..f6db6c6 100644 --- a/wms/LocationHelper.cs +++ b/wms/LocationHelper.cs @@ -1,5 +1,4 @@ 锘縰sing HH.WCS.Mobox3.AnGang.models; -using HH.WCS.Mobox3.AnGang.config; using Newtonsoft.Json; using SqlSugar; using System; @@ -106,22 +105,6 @@ { site = Location.S_AGV_SITE; } - //if (Location.N_CURRENT_NUM == 1) - //{ - // site = Location.S_AGV_SITE2; - //} - //if (Location.N_CURRENT_NUM == 2) - //{ - // site = Location.S_AGV_SITE3; - //} - //if (Location.N_CURRENT_NUM == 3) - //{ - // site = Location.S_AGV_SITE4; - //} - //if (Location.N_CURRENT_NUM == 4) - //{ - // site = Location.S_AGV_SITE5; - //} } } } @@ -238,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}"); } @@ -311,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}"); } @@ -533,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