|
|
|
@ -561,11 +561,11 @@ namespace AUCMA.STORE.Business
|
|
|
|
|
{
|
|
|
|
|
LogHelper.Pilerlog($"入库任务:{baseTaskQueue.pilerTaskCode};内容:{JsonChange.ModeToJson(baseTaskQueue)}");
|
|
|
|
|
|
|
|
|
|
_ = baseTaskQueueBusiness.DeleteTaskQueue(baseTaskQueue);
|
|
|
|
|
|
|
|
|
|
Mapper.Initialize(cret => cret.CreateMap<BaseTaskQueue, PlcDirectiveDTO>());
|
|
|
|
|
PlcDirectiveDTO taskDTO = Mapper.Map<PlcDirectiveDTO>(baseTaskQueue);
|
|
|
|
|
|
|
|
|
|
LogHelper.Pilerlog($"入库任务:{baseTaskQueue.pilerTaskCode};映射为PlcDirectiveDTO");
|
|
|
|
|
|
|
|
|
|
#region 将入库任务转换成字节发送
|
|
|
|
|
byte[] buffer = new byte[42];
|
|
|
|
|
taskDTO.inStorePlatformCode = 0;
|
|
|
|
@ -621,6 +621,11 @@ namespace AUCMA.STORE.Business
|
|
|
|
|
taskCode = taskDTO.pilerTaskCode.ToString();
|
|
|
|
|
taskQueue = baseTaskQueue;
|
|
|
|
|
TaskInfoRefreshEvent?.Invoke(Convert.ToInt32(baseTaskQueue.pilerTaskCode), TaskType.InStore, locationArea, $"{taskQueue.pilerUnloadRows} - {taskQueue.pilerUnloadLine} - {taskQueue.pilerUnloadTier}");
|
|
|
|
|
|
|
|
|
|
bool res = baseTaskQueueBusiness.DeleteTaskQueue(baseTaskQueue).Result;
|
|
|
|
|
|
|
|
|
|
LogHelper.Pilerlog($"入库任务:{baseTaskQueue.pilerTaskCode};移除");
|
|
|
|
|
|
|
|
|
|
UpdateLocationStatus("A", locationArea, $"{taskQueue.pilerUnloadRows}-{taskQueue.pilerUnloadLine}-{taskQueue.pilerUnloadTier}", LocationStatus.Occupy);
|
|
|
|
|
return buffer;
|
|
|
|
|
}
|
|
|
|
@ -633,6 +638,7 @@ namespace AUCMA.STORE.Business
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
LogHelper.Pilerlog($"获取入库任务逻辑处理异常:{ex.Message}");
|
|
|
|
|
LogHelper.Error($"获取入库任务逻辑处理异常:{ex.Message}",ex);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|