From e2303b1125817cb7887e36d5905c8f1661d685a3 Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期四, 29 五月 2025 17:29:52 +0800 Subject: [PATCH] 完善ERP出库下发任务及来源单号、记录表的字段更新 --- core/Monitor.cs | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/Monitor.cs b/core/Monitor.cs index 9c58898..50fd5a9 100644 --- a/core/Monitor.cs +++ b/core/Monitor.cs @@ -67,14 +67,14 @@ }; // BEG 姣忔杞閮芥鏌ュ搴斿鍣ㄦ槸鍚﹀凡鐧昏锛岀櫥璁板垯鏇存柊锛屾湭鐧昏鍒欐彃鍏�- var cntrItemRel = db.Queryable<TN_Container_Item>() + var cntrItemRel = db.Queryable<TN_Container_ItemType>() .Where(i => i.S_CNTR_CODE == cntrCode).First(); var insertTable = cntrItemRel == null; if (insertTable) { // 鏆傚畾鍦ㄦ弧鎵樹笅绾垮叆搴撶殑鏃跺�锛岀櫥璁版墭鐩樺鍣�鐗╂枡鍙峰叧绯伙紙鍚庨潰鍙兘浼氭敼鎴愮郴缁熺淮鎶わ級 - cntrItemRel = new TN_Container_Item { + cntrItemRel = new TN_Container_ItemType { S_ITEM_CODE = itemCode, S_CNTR_CODE = cntrCode, }; @@ -137,7 +137,7 @@ // BEG 鎻掑叆鎴栨洿鏂板鍣ㄤ笌鐗╂枡绫诲瀷鐨勭粦瀹氳〃 if (insertTable) { - if (db.Insertable<TN_Container_Item>(cntrItemRel).ExecuteCommand() <= 0) { + if (db.Insertable<TN_Container_ItemType>(cntrItemRel).ExecuteCommand() <= 0) { tran.RollbackTran(); info = $"鐧昏瀹瑰櫒鐗╂枡绫诲瀷缁戝畾琛ㄥけ璐ワ細鐗╂枡缂栫爜{cntrItemRel.S_ITEM_CODE}锛屽鍣ㄧ紪鐮亄cntrItemRel.S_CNTR_CODE}"; LogHelper.Info(info); @@ -145,7 +145,7 @@ } } else { - if (db.Updateable<TN_Container_Item>(cntrItemRel).ExecuteCommand() <= 0) { + if (db.Updateable<TN_Container_ItemType>(cntrItemRel).ExecuteCommand() <= 0) { tran.RollbackTran(); info = $"鐧昏瀹瑰櫒鐗╂枡绫诲瀷缁戝畾琛ㄥけ璐ワ細鐗╂枡缂栫爜{cntrItemRel.S_ITEM_CODE}锛屽鍣ㄧ紪鐮亄cntrItemRel.S_CNTR_CODE}"; LogHelper.Info(info); @@ -288,7 +288,7 @@ LogHelper.Info($"杞--{taskName}锛氭病鏈夋壘鍒板悎閫傜殑缁堢偣璐т綅锛佸崟鍙�{detail.S_OO_NO}'瑕佹眰缁堢偣搴撳尯涓�{detail.S_END_AREA}'"); continue; } - + detail.N_B_STATE = 2; var cntId = detail.S_CNTR_CODE; -- Gitblit v1.9.1