jianghaiqing 7 months ago
commit 80ada9b681

@ -908,10 +908,10 @@ namespace Myshipping.Application
throw Oops.Bah("未找到数据");
}
if (model.BSSTATUS != "已提交")
{
throw Oops.Bah("当前状态不能接受审核回推");
}
//if (model.BSSTATUS != "已提交")
//{
// throw Oops.Bah("当前状态不能接受审核回推");
//}
if (recModel.Accept)
{
@ -1669,6 +1669,8 @@ namespace Myshipping.Application
SaveAuditLog($"待审核", order.Id);
}
_logger.LogInformation($"rtnList:{rtnList.ToJsonString()}");
//全部成功后,才能自动订舱和审核
if (rtnList.Count(x => x.Success == false) == 0)
{
@ -1686,12 +1688,12 @@ namespace Myshipping.Application
{
foreach (var ordId in ordIdList)
{
var succ = false;
try
{
_logger.LogInformation($"自动订舱:{ordId}");
await PostApiSO(ordId);
_logger.LogInformation($"自动审核:{ordId}");
await AuditBooking(ordId, true, "系统自动审核");
succ = true;
}
catch (Exception ex)
{
@ -1699,6 +1701,12 @@ namespace Myshipping.Application
await AuditBooking(ordId, false, ex.Message, notFeedback: true);
throw ex;
}
if (succ)
{
_logger.LogInformation($"自动审核:{ordId}");
await AuditBooking(ordId, true, "系统自动审核");
}
}
}
}

Loading…
Cancel
Save