|
@@ -2115,7 +2115,7 @@ public class OrderController : BaseController
|
|
|
public async Task StartFlow([FromBody] StartWorkflowDto<OrderScreenDto> dto)
|
|
|
{
|
|
|
var screenAny = await _orderScreenRepository.AnyAsync(x =>
|
|
|
- x.VisitDetailId == dto.Data.VisitDetailId && x.ScreenType == dto.Data.ScreenType
|
|
|
+ x.VisitDetailId == dto.Data.VisitDetailId && x.ScreenType == dto.Data.ScreenType &&
|
|
|
(x.Status == EScreenStatus.Apply || x.Status == EScreenStatus.Approval));
|
|
|
if (screenAny)
|
|
|
throw UserFriendlyException.SameMessage("该工单已提起甄别申请,正在审批过程中,不能申请");
|