一楼中储仓下发二楼出库策略优化,bug
This commit is contained in:
@@ -986,9 +986,11 @@ where carry_code = '{coderesult}' and status = '{WmsWareHouseConst.TASK_BILL_STA
|
||||
catch (Exception ex)
|
||||
{
|
||||
// 测试代码 无问题后期删
|
||||
if (ex.Message.Contains("Connection is busy"))
|
||||
if (ex.Message.Contains("Connection is busy") || ex.Message.Contains("Exception while reading from stream"))
|
||||
{
|
||||
db_Floor2UpMachinecodetimer = db_Floor2UpMachinecodetimer.CopyNew();
|
||||
LoggerFloor2UpDownMachine.LogError("【测试】重置连接");
|
||||
db_Floor2UpMachinecodetimer.Close();
|
||||
db_Floor2UpMachinecodetimer = _repository.CopyNew();
|
||||
}
|
||||
|
||||
LoggerFloor2UpDownMachine.LogError(ex.ToString());
|
||||
@@ -1039,12 +1041,12 @@ where carry_code = '{coderesult}' and status = '{WmsWareHouseConst.TASK_BILL_STA
|
||||
List<string> configs_upMachine = new List<string>();
|
||||
if (await GetBoolTag("东面提升机输送线", $"上升降机请求送空托1"))
|
||||
{
|
||||
LoggerFloor2RackDelivery.LogError($"【送空托到上升降区】上升降机请求送空托1 true");
|
||||
LoggerFloor2RackDelivery.LogInformation($"【送空托到上升降区】上升降机请求送空托1 true");
|
||||
configs_upMachine.Add(floor2mechanicalAtmDic["上升降机请求送空托1"]);
|
||||
}
|
||||
if (await GetBoolTag("东面提升机输送线", $"上升降机请求送空托2"))
|
||||
{
|
||||
LoggerFloor2RackDelivery.LogError($"【送空托到上升降区】上升降机请求送空托2 true");
|
||||
LoggerFloor2RackDelivery.LogInformation($"【送空托到上升降区】上升降机请求送空托2 true");
|
||||
configs_upMachine.Add(floor2mechanicalAtmDic["上升降机请求送空托2"]);
|
||||
}
|
||||
|
||||
@@ -1164,12 +1166,12 @@ where carry_code = '{coderesult}' and status = '{WmsWareHouseConst.TASK_BILL_STA
|
||||
List<string> configs_upMachine = new List<string>();
|
||||
if (await GetBoolTag("东面提升机输送线", $"下升降机请求送满托1"))
|
||||
{
|
||||
LoggerFloor2RackDelivery.LogError($"【送满托到下升降区】下升降机请求送满托1 true");
|
||||
LoggerFloor2RackDelivery.LogInformation($"【送满托到下升降区】下升降机请求送满托1 true");
|
||||
configs_upMachine.Add(floor2mechanicalAtmDic["下升降机请求送满托1"]);
|
||||
}
|
||||
if (await GetBoolTag("东面提升机输送线", $"下升降机请求送满托2"))
|
||||
{
|
||||
LoggerFloor2RackDelivery.LogError($"【送满托到下升降区】下升降机请求送满托2 true");
|
||||
LoggerFloor2RackDelivery.LogInformation($"【送满托到下升降区】下升降机请求送满托2 true");
|
||||
configs_upMachine.Add(floor2mechanicalAtmDic["下升降机请求送满托2"]);
|
||||
}
|
||||
|
||||
@@ -1329,12 +1331,12 @@ where carry_code = '{coderesult}' and status = '{WmsWareHouseConst.TASK_BILL_STA
|
||||
List<string> configs_upMachine = new List<string>();
|
||||
if (await GetBoolTag("东面提升机输送线", $"上升降机请求取满托1"))
|
||||
{
|
||||
LoggerFloor2RackDelivery.LogError($"【移走上升降区未生成预任务且满托的料架】上升降机请求取满托1 true");
|
||||
LoggerFloor2RackDelivery.LogInformation($"【移走上升降区未生成预任务且满托的料架】上升降机请求取满托1 true");
|
||||
configs_upMachine.Add(floor2mechanicalAtmDic["上升降机请求取满托1"]);
|
||||
}
|
||||
if (await GetBoolTag("东面提升机输送线", $"上升降机请求取满托2"))
|
||||
{
|
||||
LoggerFloor2RackDelivery.LogError($"【移走上升降区未生成预任务且满托的料架】上升降机请求取满托2 true");
|
||||
LoggerFloor2RackDelivery.LogInformation($"【移走上升降区未生成预任务且满托的料架】上升降机请求取满托2 true");
|
||||
configs_upMachine.Add(floor2mechanicalAtmDic["上升降机请求取满托2"]);
|
||||
}
|
||||
|
||||
@@ -1435,13 +1437,13 @@ where carry_code = '{coderesult}' and status = '{WmsWareHouseConst.TASK_BILL_STA
|
||||
List<string> configs_upMachine = new List<string>();
|
||||
if (await GetBoolTag("东面提升机输送线", $"下升降机请求取空托1"))
|
||||
{
|
||||
LoggerFloor2RackDelivery.LogError($"【移走下升降区空托的料架】下升降机请求取空托1 true");
|
||||
LoggerFloor2RackDelivery.LogInformation($"【移走下升降区空托的料架】下升降机请求取空托1 true");
|
||||
configs_upMachine.Add(floor2mechanicalAtmDic["下升降机请求取空托1"]);
|
||||
}
|
||||
|
||||
if (await GetBoolTag("东面提升机输送线", $"下升降机请求取空托2"))
|
||||
{
|
||||
LoggerFloor2RackDelivery.LogError($"【移走下升降区空托的料架】下升降机请求取空托2 true");
|
||||
LoggerFloor2RackDelivery.LogInformation($"【移走下升降区空托的料架】下升降机请求取空托2 true");
|
||||
configs_upMachine.Add(floor2mechanicalAtmDic["下升降机请求取空托2"]);
|
||||
}
|
||||
|
||||
@@ -1455,13 +1457,13 @@ where carry_code = '{coderesult}' and status = '{WmsWareHouseConst.TASK_BILL_STA
|
||||
//await db.BeginTranAsync();
|
||||
// 读取下升降机的左右料架区配置
|
||||
|
||||
await db_Floor2timer移走下升降区未生成预任务且空托的料架.Ado.BeginTranAsync();
|
||||
List<WmsMechanicalArmH> WmsMechanicalArmHs = db_Floor2timer移走下升降区未生成预任务且空托的料架.Queryable<WmsMechanicalArmH>().Where(r => !string.IsNullOrEmpty(r.rackcode) && r.iscreatepretask == 0 && configs_upMachine.Contains(r.name)).ToList();
|
||||
|
||||
foreach (WmsMechanicalArmH wmsMechanicalArmH in WmsMechanicalArmHs)
|
||||
{
|
||||
LoggerFloor2RackDelivery.LogInformation($"【移走下升降区空托的料架】 开始执行预任务生成 {wmsMechanicalArmH.location_code} {wmsMechanicalArmH.outbill} {wmsMechanicalArmH.barcodes}");
|
||||
|
||||
await db_Floor2timer移走下升降区未生成预任务且空托的料架.Ado.BeginTranAsync();
|
||||
await db_Floor2timer移走下升降区未生成预任务且空托的料架.Updateable<WmsMechanicalArmH>().SetColumns(r => new WmsMechanicalArmH
|
||||
{
|
||||
iscreatepretask = 1
|
||||
@@ -1506,8 +1508,8 @@ where carry_code = '{coderesult}' and status = '{WmsWareHouseConst.TASK_BILL_STA
|
||||
LoggerFloor2RackDelivery.LogInformation($"【移走下升降区空托的料架】 未成功生成预任务 起点{wmsMechanicalArmH.location_code} 终点{endLocation.location_code} 料架 {wmsMechanicalArmH.rackcode}");
|
||||
throw new Exception($"【移走下升降区空托的料架】 未成功生成预任务 起点{wmsMechanicalArmH.location_code} 终点{endLocation.location_code} 料架 {wmsMechanicalArmH.rackcode}");
|
||||
}
|
||||
await db_Floor2timer移走下升降区未生成预任务且空托的料架.Ado.CommitTranAsync();
|
||||
}
|
||||
await db_Floor2timer移走下升降区未生成预任务且空托的料架.Ado.CommitTranAsync();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user