|
|
@ -413,7 +413,7 @@ namespace Myshipping.Application.Service.BookingOrder
|
|
|
|
//计算预计天数
|
|
|
|
//计算预计天数
|
|
|
|
if (showDto.ETD.HasValue && showDto.ETD.HasValue)
|
|
|
|
if (showDto.ETD.HasValue && showDto.ETD.HasValue)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TimeSpan ts = showDto.ETD.Value.Subtract(showDto.ETA.Value);
|
|
|
|
TimeSpan ts = showDto.ETA.Value.Subtract(showDto.ETD.Value);
|
|
|
|
var timeDiff = ts.TotalHours;
|
|
|
|
var timeDiff = ts.TotalHours;
|
|
|
|
|
|
|
|
|
|
|
|
showDto.days = (int)Math.Ceiling(timeDiff / 24.0);
|
|
|
|
showDto.days = (int)Math.Ceiling(timeDiff / 24.0);
|
|
|
|