From cca23e36151824c2af31de3f12f6a4c11f05afba Mon Sep 17 00:00:00 2001 From: FanLian Date: Fri, 30 Jun 2023 15:54:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=BA=93=E7=AD=BE=E6=94=B6=E5=90=8E?= =?UTF-8?q?=E8=BD=BD=E5=85=B7=E5=BA=93=E4=BD=8D=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarehouseMgr/Tnb.WarehouseMgr/WmsSignForDeliveryService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsSignForDeliveryService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsSignForDeliveryService.cs index 1806caf7..57e74063 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsSignForDeliveryService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsSignForDeliveryService.cs @@ -72,7 +72,10 @@ namespace Tnb.WarehouseMgr { var loc = await _db.Queryable().SingleAsync(it => it.id == carry.location_id); loc.is_use = (int)EnumCarryStatus.空闲; + carry.location_id = null; + carry.location_code = null; await _db.Updateable(loc).UpdateColumns(it => it.is_use).ExecuteCommandAsync(); + await _db.Updateable(carry).UpdateColumns(it => new { it.location_id,it.location_code }).ExecuteCommandAsync(); } var disTask = await _db.Queryable().SingleAsync(it => it.id == input.disTaskId); if (disTask != null)