|
@@ -2399,7 +2399,7 @@ public class OrderController : BaseController
|
|
|
//{
|
|
|
// throw UserFriendlyException.SameMessage("该工单存在正在审核中的延期,不能办理");
|
|
|
//}
|
|
|
- if (await _orderSendBackAuditRepository.AnyAsync(x => x.OrderId == order.Id && x.State == ESendBackAuditState.Apply, HttpContext.RequestAborted))
|
|
|
+ if (order != null && await _orderSendBackAuditRepository.AnyAsync(x => x.OrderId == order.Id && x.State == ESendBackAuditState.Apply, HttpContext.RequestAborted))
|
|
|
{
|
|
|
throw UserFriendlyException.SameMessage("该工单存在正在审核中的退回,不能办理");
|
|
|
}
|