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)