修改马士基API订舱增加必填判断

master
jianghaiqing 8 months ago
parent 1f1b8a30c4
commit e2878eb358

@ -636,8 +636,14 @@ namespace Myshipping.Application.Service.BookingOrder
if(!model.earliestDepartureDate.HasValue)
throw Oops.Bah($"预计离港日期必填");
if (!model.isSendNoSchedule && string.IsNullOrWhiteSpace(model.carrierProductId))
throw Oops.Bah($"船期信息不能为空,请查询船期信息");
if(string.IsNullOrWhiteSpace(model.userPlaceOfReceiptUnLocCode))
throw Oops.Bah($"始发地必填");
if (string.IsNullOrWhiteSpace(model.userPlaceOfDeliveryUnLocCode))
throw Oops.Bah($"目的地必填");
//if (!model.isSendNoSchedule && string.IsNullOrWhiteSpace(model.carrierProductId))
// throw Oops.Bah($"船期信息不能为空,请查询船期信息");
if (model.isReefer)
{

Loading…
Cancel
Save