转库类型等
This commit is contained in:
@@ -432,11 +432,16 @@ namespace Tnb.WarehouseMgr
|
||||
return await ToApiResult(HttpStatusCode.InternalServerError, $"电梯{devName}内已有两托货!");
|
||||
}
|
||||
WmsElevatorcacheArea wmsElevatorcacheArea = await _db.Queryable<WmsElevatorcacheArea>().Where(r => r.location_id == dis.startlocation_id).FirstAsync();
|
||||
// 如果当前所放梯内货位已占用
|
||||
if (elevator.innerpos.Contains(wmsElevatorcacheArea.name))
|
||||
|
||||
|
||||
// 两托盘出库进此判断 如果当前所放梯内货位已占用
|
||||
if (wmsElevatorcacheArea != null)
|
||||
{
|
||||
Logger.LogInformation($"电梯{devName}内托盘{dis.carry_code}当前准备放置的货位已有货!");
|
||||
return await ToApiResult(HttpStatusCode.InternalServerError, $"电梯{devName}内托盘{dis.carry_code}当前准备放置的货位已有货!");
|
||||
if (elevator.innerpos.Contains(wmsElevatorcacheArea.name))
|
||||
{
|
||||
Logger.LogInformation($"电梯{devName}内托盘{dis.carry_code}当前准备放置的货位已有货!");
|
||||
return await ToApiResult(HttpStatusCode.InternalServerError, $"电梯{devName}内托盘{dis.carry_code}当前准备放置的货位已有货!");
|
||||
}
|
||||
}
|
||||
|
||||
canEnter = true;
|
||||
@@ -461,8 +466,8 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.Error("【UnloadConfirm】 放货确认失败", ex.Message);
|
||||
Logger.Error("【UnloadConfirm】 放货确认失败", ex.StackTrace);
|
||||
Logger.Error($"【UnloadConfirm】 放货确认失败{ex.Message}");
|
||||
Logger.Error($"【UnloadConfirm】 放货确认失败{ex.StackTrace}");
|
||||
return await ToApiResult(HttpStatusCode.InternalServerError, "电梯还未开门,请重试!");
|
||||
throw;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user