修改MSK SPOT

master
jianghaiqing 5 months ago
parent 090809167d
commit bfa29f0476

@ -515,7 +515,7 @@ namespace Myshipping.Application.Service.BookingOrder
var shareKey = model.PId.ToString();
DateTime nowDate = DateTime.Now;
DateTime expireDateTime = DateTime.Now.AddHours(1);
DateTime expireDateTime = DateTime.Now.AddHours(4);
var expireTimeSpan = expireDateTime.Subtract(nowDate).Duration();
@ -1195,6 +1195,9 @@ namespace Myshipping.Application.Service.BookingOrder
model = entity.Adapt<MSKSPOTBookingDto>();
if (model.ShipRateTotalAmount.HasValue)
model.ShipRateTotalAmountShow = string.Format("{0:N}", model.ShipRateTotalAmount.Value);
var ctnList = _bookingDeliveryRecordCtnRep.AsQueryable()
.Where(a => a.RECORD_ID == id && a.IsDeleted == false).ToList();
@ -1285,7 +1288,7 @@ namespace Myshipping.Application.Service.BookingOrder
if (selectedShipSchedule == null)
throw Oops.Oh("船期数据校验失败,请重新查询船期信息");
if (selectedShipSchedule.priceID.Equals(model.priceID))
if (!selectedShipSchedule.priceID.Equals(model.priceID))
{
_logger.LogInformation($"请求当前船期请求参数错误 priceID={model.priceID} 缓存priceID={selectedShipSchedule.priceID} PId={model.PId}");

@ -381,6 +381,11 @@ namespace Myshipping.Application
/// </summary>
public Nullable<decimal> ShipRateTotalAmount { get; set; }
/// <summary>
/// 船期价格显示
/// </summary>
public string ShipRateTotalAmountShow { get; set; }
/// <summary>
/// 船期币别
/// </summary>

Loading…
Cancel
Save