二楼流程优化 电梯bug修复
This commit is contained in:
@@ -164,10 +164,10 @@ namespace Tnb.WarehouseMgr
|
||||
if (endLocations?.Count > 0)
|
||||
{
|
||||
WmsCarryH carry = await _db.Queryable<WmsCarryH>().SingleAsync(it => it.carry_code == input.carry_code);
|
||||
if (carry.carry_status == "1")
|
||||
{
|
||||
throw new AppFriendlyException("载具已占用!", 500);
|
||||
}
|
||||
//if (carry.carry_status == "1")
|
||||
//{
|
||||
// throw new AppFriendlyException("载具已占用!", 500);
|
||||
//}
|
||||
if (carry.is_lock == 1)
|
||||
{
|
||||
throw new AppFriendlyException("载具已锁定!", 500);
|
||||
@@ -197,6 +197,7 @@ namespace Tnb.WarehouseMgr
|
||||
if (sPoint.area_code != ePoint.area_code)
|
||||
{
|
||||
points = await _wareHouseService.PathAlgorithms(sPoint.id, ePoint.id);
|
||||
Logger.LogError($"【PackInstock】 选择了 {sPoint.point_code} {ePoint.point_code}");
|
||||
if (points.Count <= 2)
|
||||
{
|
||||
throw new AppFriendlyException($"sPoint {sPoint.point_code} ePoint{ePoint.point_code}该路径不存在", 500);
|
||||
@@ -310,6 +311,8 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.LogError($"【PackInstock】 {ex.Message}");
|
||||
Logger.LogError($"【PackInstock】 {ex.StackTrace}");
|
||||
await _db.Ado.RollbackTranAsync();
|
||||
return await ToApiResult(HttpStatusCode.InternalServerError, ex.Message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user