客户端货物类型校验

master
zhangxiaofeng 1 week ago
parent bd7495be6c
commit 76214e86d0

@ -1028,6 +1028,12 @@ namespace Myshipping.Application
arrService = mapService.MapCode.Split('-');
}
// 货物类型
if (string.IsNullOrWhiteSpace(custOrder.CARGOID))
{
throw Oops.Bah($"{CarrierCodeConst.COSCO}查询船期时需要选择货物类型");
}
var postModel = new
{
userKey = sCfgUserKey.Value,
@ -1050,7 +1056,7 @@ namespace Myshipping.Application
"S" => "General",
"R" => "Reefer",
"D" => "Dangerous",
_ => ""
_ => throw Oops.Bah($"暂不支持的货物类型CARGOID{custOrder.CARGOID}");
},
containerTypeList = mapCtnCodeList
}

Loading…
Cancel
Save