获取场站数据时校验场站填写

optimize
wanghaomei 2 years ago
parent 5c2d948f15
commit 69936e4520

@ -118,7 +118,7 @@ namespace Myshipping.Application
private readonly SqlSugarRepository<BookingTemplate> _bookingTemplate;
private readonly SqlSugarRepository<ParaGoodsInfo> _paraGoodsInfoRepository;
private readonly SqlSugarRepository<ParaContractNoInfo> _paraContractNoInfoRepository;
private readonly IHttpContextAccessor _httpContextAccessor;
private readonly IBookingGoodsStatusConfigService _GoodsConfig;
const string CONST_MAPPING_MODULE = "BOOK_OR_CLOSING";
@ -5145,6 +5145,11 @@ namespace Myshipping.Application
throw Oops.Bah(BookingErrorCode.BOOK001);
}
if (string.IsNullOrEmpty(order.YARDID))
{
throw Oops.Bah("请先选择场站");
}
var rtn = await YardDataHelper.GetYardData(order.TenantId.Value, order.TenantName, order.MBLNO, order.YARDID, isWeb);
if (!rtn.Key)
{
@ -5554,7 +5559,7 @@ namespace Myshipping.Application
#endregion
}
}

Loading…
Cancel
Save