|
|
|
@ -823,10 +823,10 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
throw new ArgumentNullException($"缺少参数:{TaskFlowDataNameConst.TaskManageOrderMessageInfo}");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var taskBcId = dataContext.Get<long?>(TaskFlowDataNameConst.TaskBCId);
|
|
|
|
|
if (taskBcId == null)
|
|
|
|
|
var taskBcInfo = dataContext.Get<TaskBCInfo>(TaskFlowDataNameConst.TaskBCInfo);
|
|
|
|
|
if (taskBcInfo == null)
|
|
|
|
|
{
|
|
|
|
|
Logger.Log(NLog.LogLevel.Info, $"执行ApiReceiveTask时,未获取到{TaskFlowDataNameConst.TaskBCId}");
|
|
|
|
|
Logger.Log(NLog.LogLevel.Info, $"执行ApiReceiveTask时,未获取到{TaskFlowDataNameConst.TaskBCInfo}");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DynameFileInfo bcFileInfo = null;
|
|
|
|
@ -935,10 +935,10 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
var rlt = await InnerApiReceive(slotModel, bcFileInfo, bcNoticeFileInfo);
|
|
|
|
|
|
|
|
|
|
// 回写舱位主键到BC任务
|
|
|
|
|
if (rlt.Succeeded && rlt.Data != null && taskBcId != null)
|
|
|
|
|
if (rlt.Succeeded && rlt.Data != null && taskBcInfo != null)
|
|
|
|
|
{
|
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
|
|
|
|
var taskBcInfo = await tenantDb.Queryable<TaskBCInfo>().Where(x => x.Id == taskBcId).FirstAsync();
|
|
|
|
|
//var taskBcInfo = await tenantDb.Queryable<TaskBCInfo>().Where(x => x.Id == taskBcId).FirstAsync();
|
|
|
|
|
if (taskBcInfo != null)
|
|
|
|
|
{
|
|
|
|
|
if(taskBcInfo.BOOKING_SLOT_ID == null)
|
|
|
|
|