二楼细节完善 bug处理
This commit is contained in:
@@ -106,6 +106,20 @@ namespace Tnb.WarehouseMgr
|
||||
return await ToApiResult(HttpStatusCode.InternalServerError, "失败");
|
||||
}
|
||||
}
|
||||
// 机械臂边取货确认
|
||||
else if (dis.area_code == "E")
|
||||
{
|
||||
if (dis.startlocation_code.Contains("AS") || dis.startlocation_code.Contains("AX"))
|
||||
{
|
||||
// 二楼机械臂
|
||||
await _wareHouseService.Floor2MechanicalConfirm(dis, "LOAD");
|
||||
return await ToApiResult(HttpStatusCode.OK, "成功");
|
||||
}
|
||||
else
|
||||
{
|
||||
return await ToApiResult(HttpStatusCode.OK, "成功");
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -255,20 +269,49 @@ namespace Tnb.WarehouseMgr
|
||||
{
|
||||
Logger.Information("【UnloadConfirm】 接收到WCS放货确认信号..................");
|
||||
Logger.Information($"【UnloadConfirm】 当前放货,任务编号:{input.taskCode}");
|
||||
var dis = _db.Queryable<WmsDistaskH>().Where(P => P.bill_code == input.taskCode).First();
|
||||
if (dis.area_code == "ZSCJ001")
|
||||
|
||||
try
|
||||
{
|
||||
var flag = await _wareHouseService.Check(dis.endlocation_code, "UNLOAD");
|
||||
if (flag)
|
||||
var dis = _db.Queryable<WmsDistaskH>().Where(P => P.bill_code == input.taskCode).First();
|
||||
if (dis.area_code == "ZSCJ001")
|
||||
{
|
||||
await _wareHouseService.SsxControl(dis, "UNLOAD");
|
||||
return await ToApiResult(HttpStatusCode.OK, "成功");
|
||||
var flag = await _wareHouseService.Check(dis.endlocation_code, "UNLOAD");
|
||||
if (flag)
|
||||
{
|
||||
await _wareHouseService.SsxControl(dis, "UNLOAD");
|
||||
return await ToApiResult(HttpStatusCode.OK, "成功");
|
||||
}
|
||||
else
|
||||
{
|
||||
return await ToApiResult(HttpStatusCode.InternalServerError, "失败");
|
||||
}
|
||||
}
|
||||
else
|
||||
// 机械臂边放货确认
|
||||
else if (dis.area_code == "E")
|
||||
{
|
||||
return await ToApiResult(HttpStatusCode.InternalServerError, "失败");
|
||||
if (dis.endlocation_code.Contains("AS") || dis.endlocation_code.Contains("AX"))
|
||||
{
|
||||
// 二楼机械臂
|
||||
await _wareHouseService.Floor2MechanicalConfirm(dis, "UNLOAD");
|
||||
return await ToApiResult(HttpStatusCode.OK, "成功");
|
||||
}
|
||||
else
|
||||
{
|
||||
return await ToApiResult(HttpStatusCode.OK, "成功");
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.LogError(ex.Message);
|
||||
Logger.LogError(ex.StackTrace);
|
||||
return await ToApiResult(HttpStatusCode.InternalServerError, $"放货确认..................失败 原因是{ex.Message}");
|
||||
throw;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
/*var whereExp = Expressionable.Create<WmsElevatorH, WmsElevatorD, WmsDistaskH>()
|
||||
@@ -598,8 +641,6 @@ namespace Tnb.WarehouseMgr
|
||||
else
|
||||
{
|
||||
await _wareHouseService.SsxControl(disTask, "LOAD");
|
||||
// 二楼机械臂
|
||||
await _wareHouseService.Floor2MechanicalComplete(disTask, "LOAD");
|
||||
}
|
||||
}
|
||||
else if (input.action == "UNLOAD")
|
||||
@@ -612,8 +653,6 @@ namespace Tnb.WarehouseMgr
|
||||
Logger.Information($"taskCompleUpInput json parameter:{JsonConvert.SerializeObject(taskCompleUpInput)}");
|
||||
await _wareHouseService.TaskComplate(taskCompleUpInput);
|
||||
await _wareHouseService.SsxControl(disTask, "UNLOAD");
|
||||
// 二楼机械臂
|
||||
await _wareHouseService.Floor2MechanicalComplete(disTask, "UNLOAD");
|
||||
Logger.Information($"【TaskCallback】 Agv放货完成,任务编号:{string.Join(",", disTasks.Select(x => x.bill_code))}");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user