From 16a5042fb076b189e60f751259159a018aa902ef Mon Sep 17 00:00:00 2001 From: FanLian Date: Tue, 27 Jun 2023 08:27:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarehouseMgr/Tnb.WarehouseMgr/WmsPDAFeedingService.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAFeedingService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAFeedingService.cs index f6e22dd9..e424978f 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAFeedingService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAFeedingService.cs @@ -86,10 +86,17 @@ namespace Tnb.WarehouseMgr feedBox.material_code = carryMaterial.material_code; feedBox.qty = carryMaterial.qty; feedBox.batch = carryMaterial?.code_batch!; - feedBox.status = carry.status; feedBox.modify_id = _userManager.UserId; feedBox.modify_time = DateTime.Now; - var row = await _db.Updateable(feedBox).ExecuteCommandAsync(); + var row = await _db.Updateable(feedBox) + .UpdateColumns(it => new { + it.material_id, + it.material_code, + it.qty, + it.batch, + it.modify_id, + it.modify_time + }).ExecuteCommandAsync(); //更新投料记录条码表 if (carryCodes != null) {