jianghaiqing 1 year ago
commit 4b7bdaf74d

@ -142,34 +142,34 @@ namespace Myshipping.Application
/// 保存并返回数据 /// 保存并返回数据
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[HttpGet("/BookingOrderSF/Save")] [HttpPost("/BookingOrderSF/Save")]
public async Task<dynamic> Save(BookingOrderSFDto input) public async Task<dynamic> Save(BookingOrderSFDto input)
{ {
if (!string.IsNullOrEmpty(input.KDNO)) if (string.IsNullOrEmpty(input.KDNO))
{ {
throw Oops.Bah("快递单号不能为空!"); throw Oops.Bah("快递单号不能为空!");
} }
if (!string.IsNullOrEmpty(input.SJPeople)) if (string.IsNullOrEmpty(input.SJPeople))
{ {
throw Oops.Bah("收件人不能为空!"); throw Oops.Bah("收件人不能为空!");
} }
if (!string.IsNullOrEmpty(input.SJTel)) if (string.IsNullOrEmpty(input.SJTel))
{ {
throw Oops.Bah("收件人电话不能为空!"); throw Oops.Bah("收件人电话不能为空!");
} }
if (!string.IsNullOrEmpty(input.SJAddress)) if (string.IsNullOrEmpty(input.SJAddress))
{ {
throw Oops.Bah("收件人地址不能为空!"); throw Oops.Bah("收件人地址不能为空!");
} }
if (!string.IsNullOrEmpty(input.FJPeople)) if (string.IsNullOrEmpty(input.FJPeople))
{ {
throw Oops.Bah("发件人不能为空!"); throw Oops.Bah("发件人不能为空!");
} }
if (!string.IsNullOrEmpty(input.FJTel)) if (string.IsNullOrEmpty(input.FJTel))
{ {
throw Oops.Bah("发件人电话不能为空!"); throw Oops.Bah("发件人电话不能为空!");
} }
if (!string.IsNullOrEmpty(input.FJAddress)) if (string.IsNullOrEmpty(input.FJAddress))
{ {
throw Oops.Bah("发件人地址不能为空!"); throw Oops.Bah("发件人地址不能为空!");
} }

@ -6,19 +6,19 @@ using System.Threading.Tasks;
namespace Myshipping.Application.Service.BookingOrderSF.Dto namespace Myshipping.Application.Service.BookingOrderSF.Dto
{ {
public class CargoDetailsItem public class CargoDetailsItem
{ {
/// <summary> /// <summary>
/// 货物数量 跨境件报关需要填写 /// 货物数量 跨境件报关需要填写
/// </summary> /// </summary>
public int count { get; set; } public int count { get; set; }
/// <summary> /// <summary>
/// 货物名称,如果需要生成电子 运单,则为必填 /// 货物名称,如果需要生成电子 运单,则为必填
/// </summary> /// </summary>
public string name { get; set; } public string name { get; set; }
} }
public class ContactInfoListItem public class ContactInfoListItem

Loading…
Cancel
Save