修改派车任务回写状态

optimize
jianghaiqing 2 years ago
parent 6b47e48e81
commit 9dfe5558a4

@ -187,7 +187,6 @@ namespace Myshipping.Application
entity.UpdatedUserId = UserManager.UserId;
entity.UpdatedUserName = UserManager.Name;
await _bookingTruckRepository.AsUpdateable(entity).IgnoreColumns(it => new
{
it.TenantId,
@ -208,12 +207,11 @@ namespace Myshipping.Application
{
ValidateTruck(OperateTypeEnum.DispatchBackSave, new BookingTruck[] { model });
entity.Status = BookingTruckStatus.SEND_DISPATCH.ToString();
entity.UpdatedTime = DateTime.Now;
entity.UpdatedUserId = UserManager.UserId;
entity.UpdatedUserName = UserManager.Name;
entity.Status = info.CallBackStatus;
await _bookingTruckRepository.AsUpdateable(entity).IgnoreColumns(it => new
{

@ -182,6 +182,11 @@ namespace Myshipping.Application
/// </summary>
public string FactoryAddr { get; set; }
/// <summary>
/// 回写状态
/// </summary>
public string CallBackStatus { get; set; }
/// <summary>
/// 集装箱列表
/// </summary>

@ -885,6 +885,8 @@ namespace Myshipping.Application
var truckCtnList =_taskTruckContaRepository.AsQueryable().Where(a => a.P_ID == info.PK_ID).ToList();
BookingTruckDto model = info.Adapt<BookingTruckDto>();
model.CallBackStatus = info.Status;
if (truckCtnList.Count > 0)
model.ContaList = truckCtnList.Adapt<List<BookingTruckCtnDto>>();
@ -968,8 +970,24 @@ namespace Myshipping.Application
it.TruckCode,
}).ExecuteCommandAsync();
var truckCtnList = _taskTruckContaRepository.AsQueryable().Where(a => a.P_ID == info.PK_ID).ToList();
BookingTruckDto model = info.Adapt<BookingTruckDto>();
model.CallBackStatus = info.Status;
if (truckCtnList.Count > 0)
model.ContaList = truckCtnList.Adapt<List<BookingTruckCtnDto>>();
if (info.BookingTruckId.HasValue)
model.Id = info.BookingTruckId.Value;
//更新完回写订舱的派车信息
var service = _namedServiceProvider.GetService(nameof(BookingTruckService));
var rlt = await service.TruckDispatchCompleteCallBack(model);
result.succ = true;
result.msg = "取消成功";
result.ext = rlt;
}
catch (Exception ex)
{

Loading…
Cancel
Save