diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsSignForDeliveryService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsSignForDeliveryService.cs index 57e74063..e0c78d87 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsSignForDeliveryService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsSignForDeliveryService.cs @@ -72,22 +72,24 @@ 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(); } + carry.location_id = null; + carry.location_code = null; + 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) { if (_dicBizType.ContainsKey(disTask.biz_type)) { - WareHouseUpInput upInput = new() { + WareHouseUpInput upInput = new() + { loginType = "web", - bizTypeId = disTask.biz_type, - requireId = disTask.require_id, + bizTypeId = disTask.biz_type, + requireId = disTask.require_id, carryIds = new List { input.carryId }, - distaskCodes = input.distaskCodes }; + distaskCodes = input.distaskCodes + }; await DoUpdate(upInput); //回更业务 //switch (_dicBizType[disTask.biz_type]) //{