|
|
|
@ -1582,7 +1582,8 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|
|
|
|
|
Logger.Log(NLog.LogLevel.Info, $"批次={batchNo} slotId={slotId} 开始请求比对结果");
|
|
|
|
|
|
|
|
|
|
var compareResult = await ExcuteCompare(bcSrcDto, bcTargetDto);
|
|
|
|
|
var rlt = await ExcuteCompare(bcSrcDto, bcTargetDto);
|
|
|
|
|
var compareResult = rlt.Data;
|
|
|
|
|
|
|
|
|
|
Logger.Log(NLog.LogLevel.Info, $"批次={batchNo} slotId={slotId} 请求比对结果完成,结果={JsonConvert.SerializeObject(compareResult)}");
|
|
|
|
|
|
|
|
|
@ -1611,9 +1612,9 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
CreateTime = nowDate,
|
|
|
|
|
UpdateTime = nowDate,
|
|
|
|
|
CreateBy = long.Parse(user.UserId),
|
|
|
|
|
//CreatedUserName = UserManager.Name,
|
|
|
|
|
CreateUserName = user.UserName,
|
|
|
|
|
UpdateBy = long.Parse(user.UserId),
|
|
|
|
|
//UpdatedUserName = UserManager.Name,
|
|
|
|
|
UpdateUserName = user.UserName,
|
|
|
|
|
CompareType = "BC_MODIFY",
|
|
|
|
|
CompareRlt = JsonConvert.SerializeObject(compareResult.extra.ShowDetailList),
|
|
|
|
|
};
|
|
|
|
@ -1625,7 +1626,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
hisInfo.CompareDiffNum = compareResult.extra.IsExistsDiff ? compareResult.extra.ShowDetailList.Count : 0;
|
|
|
|
|
hisInfo.UpdateTime = nowDate;
|
|
|
|
|
hisInfo.UpdateBy = long.Parse(user.UserId);
|
|
|
|
|
//hisInfo.UpdatedUserName = user.UserName;
|
|
|
|
|
hisInfo.UpdateUserName = user.UserName;
|
|
|
|
|
|
|
|
|
|
hisInfo.CompareRlt = JsonConvert.SerializeObject(compareResult.extra.ShowDetailList);
|
|
|
|
|
|
|
|
|
@ -1636,7 +1637,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
it.CompareRlt,
|
|
|
|
|
it.UpdateTime,
|
|
|
|
|
it.UpdateBy,
|
|
|
|
|
//it.UpdatedUserName
|
|
|
|
|
it.UpdateUserName
|
|
|
|
|
}).ExecuteCommandAsync();
|
|
|
|
|
}
|
|
|
|
|
//throw Oops.Oh($"舱位主键{slotId}请求BC比对失败,返回为空");
|
|
|
|
@ -1660,8 +1661,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
/// <param name="bcSrcDto">BC详情</param>
|
|
|
|
|
/// <param name="bcTargetDto">BC变更后详情</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[NonAction]
|
|
|
|
|
public async Task<TaskManageExcuteResultDto> ExcuteCompare(ParserBCInfoDto bcSrcDto, ParserBCInfoDto bcTargetDto)
|
|
|
|
|
public async Task<DataResult<TaskManageExcuteResultDto>> ExcuteCompare(ParserBCInfoDto bcSrcDto, ParserBCInfoDto bcTargetDto)
|
|
|
|
|
{
|
|
|
|
|
TaskManageExcuteResultDto model = null;
|
|
|
|
|
/*
|
|
|
|
@ -1715,7 +1715,10 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return model;
|
|
|
|
|
if (model != null)
|
|
|
|
|
return DataResult<TaskManageExcuteResultDto>.Success(model);
|
|
|
|
|
|
|
|
|
|
return DataResult<TaskManageExcuteResultDto>.FailedData(model); ;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
@ -2833,20 +2836,31 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Task<TaskManageOrderResultDto> IBookingSlotService.CreateBookingOrder(BookingGenerateDto model)
|
|
|
|
|
#region 获取舱位详情列表
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取舱位详情列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="ids">舱位ID组</param>
|
|
|
|
|
/// <returns>返回舱位详情</returns>
|
|
|
|
|
public async Task<DataResult<List<BookingSlotBaseSaveOutput>>> GetSlotList(long[] ids)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
|
|
|
|
|
|
|
|
|
Task<string> IBookingSlotService.ExcuteCompare(ParserBCInfoDto bcSrcDto, ParserBCInfoDto bcTargetDto)
|
|
|
|
|
var slotList = await tenantDb.Queryable<BookingSlotBase>().Where(u => ids.Contains(u.Id) && u.Deleted == false).ToListAsync();
|
|
|
|
|
if (slotList.Count == 0)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
//未查询到此舱位信息,可能已被删除,请重新查询后重试
|
|
|
|
|
throw new Exception(MultiLanguageConst.GetDescription(nameof(MultiLanguageConst.BookingSlotBaseInfoNull)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Task<List<BookingSlotBaseSaveOutput>> IBookingSlotService.GetSlotList(long[] ids)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
var data = slotList.Select(a => a.Adapt<BookingSlotBaseSaveOutput>()).ToList();
|
|
|
|
|
|
|
|
|
|
if (data.Count > 0)
|
|
|
|
|
return DataResult<List<BookingSlotBaseSaveOutput>>.Success(data);
|
|
|
|
|
|
|
|
|
|
return DataResult<List<BookingSlotBaseSaveOutput>>.FailedData(data);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class LetterIndexUtil
|
|
|
|
|