修改下货纸比对方法,增加下货纸自动比对方法

optimize
jianghaiqing 1 year ago
parent 1201314318
commit 4726cd59c4

@ -50,6 +50,11 @@ namespace Myshipping.Application
/// 扩展值 /// 扩展值
/// </summary> /// </summary>
public object extra3 { get; set; } public object extra3 { get; set; }
/// <summary>
/// 场站统计详情
/// </summary>
public YardStatInfo yardStatInfo { get; set; }
} }
public class CompareResultInfo public class CompareResultInfo
@ -217,4 +222,25 @@ namespace Myshipping.Application
/// </summary> /// </summary>
public object extra3 { get; set; } public object extra3 { get; set; }
} }
/// <summary>
/// 下货纸场站箱信息统计
/// </summary>
public class YardStatInfo
{
/// <summary>
/// 总箱数
/// </summary>
public int ContaNum { get; set; }
/// <summary>
/// 最新返场日期
/// </summary>
public Nullable<DateTime> LstReturnYardDate { get; set; }
/// <summary>
/// 有返场日期箱数
/// </summary>
public int ExistsReturnYardDateCtnNum { get; set; }
}
} }

@ -32,5 +32,12 @@ namespace Myshipping.Application
/// <param name="model">比对回写详情</param> /// <param name="model">比对回写详情</param>
/// <returns>返回回执</returns> /// <returns>返回回执</returns>
Task<TaskManageExcuteResultDto> AutoTaskShippingOrderCompareCallBackAsync(ShippingOrderCompareCallBackInfo model); Task<TaskManageExcuteResultDto> AutoTaskShippingOrderCompareCallBackAsync(ShippingOrderCompareCallBackInfo model);
/// <summary>
/// 自动执行下货纸比对
/// </summary>
/// <param name="bookingId">订舱主键</param>
/// <returns>返回回执</returns>
Task<TaskManageExcuteResultDto> ExcuteAutoShippingOrderCompareAsync(string bookingId);
} }
} }

@ -200,6 +200,7 @@ namespace Myshipping.Application
result.extra = compareResult.extra; result.extra = compareResult.extra;
result.extra2 = compareResult.extra2; result.extra2 = compareResult.extra2;
result.total = compareResult.total; result.total = compareResult.total;
result.yardStatInfo = compareResult.yardStatInfo;
_logger.LogInformation("批次={no} 请求下货纸比对返回结果{msg}", batchNo, JSON.Serialize(compareResult)); _logger.LogInformation("批次={no} 请求下货纸比对返回结果{msg}", batchNo, JSON.Serialize(compareResult));
@ -443,5 +444,31 @@ namespace Myshipping.Application
return model; return model;
} }
#endregion #endregion
#region 自动执行下货纸比对
/// <summary>
/// 自动执行下货纸比对
/// </summary>
/// <param name="bookingId">订舱主键</param>
/// <returns>返回回执</returns>
[AllowAnonymous, HttpPost("/TaskShippingOrderCompare/ExcuteAutoShippingOrderCompare"), ApiUser(ApiCode = "ExcuteAutoShippingOrderCompare")]
public async Task<TaskManageExcuteResultDto> ExcuteAutoShippingOrderCompareAsync(string bookingId)
{
string batchNo = IDGen.NextID().ToString();
_logger.LogInformation("批次={no}获取订舱数据请求规则 {id}", batchNo, bookingId);
/*
1
2
3
4
5
*/
return await InnerExcuteShippingOrderCompareAsync(bookingId);
}
#endregion
} }
} }

Loading…
Cancel
Save