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("发件人地址不能为空!");
} }

Loading…
Cancel
Save