optimize
wet 1 year ago
parent 03cf1a9e53
commit 52bf2d1554

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

Loading…
Cancel
Save