Compare commits
No commits in common. "a7848727ee1a91df6c086fa237a0fa6402a7ede8" and "4e66ea43d74331ccf82df2ecdd77b4e80d6ce5ad" have entirely different histories.
a7848727ee
...
4e66ea43d7
|
|
@ -254,9 +254,9 @@ namespace IRaCIS.Core.Application.Image.QA
|
|||
[HttpPut]
|
||||
public async Task<IResponseOutput> RequestImageBack(Guid subjectVisitId)
|
||||
{
|
||||
if (!_subjectVisitRepository.Any(t => t.Id == subjectVisitId && !t.VisitTaskList.Any() && t.SubmitState == SubmitStateEnum.Submitted))
|
||||
if (!_subjectVisitRepository.Any(t => t.Id == subjectVisitId && t.CheckState < CheckStateEnum.CVPassed && t.SubmitState == SubmitStateEnum.Submitted))
|
||||
{
|
||||
//已提交未生成任务的才允许申请
|
||||
//一致性核查通过前已提交的影像才允许进行回退
|
||||
throw new BusinessValidationFailedException(_localizer["QCOperation_ShouldBeforeCheckPassed"]);
|
||||
}
|
||||
|
||||
|
|
@ -294,15 +294,15 @@ namespace IRaCIS.Core.Application.Image.QA
|
|||
if (isAgree)
|
||||
{
|
||||
|
||||
if (sv.SubmitState == SubmitStateEnum.Submitted && _subjectVisitRepository.Any(t => t.Id == subjectVisitId && !t.VisitTaskList.Any()))
|
||||
if (sv.SubmitState == SubmitStateEnum.Submitted && sv.CheckState < CheckStateEnum.CVPassed)
|
||||
{
|
||||
sv.ImageBackState = ImageBackStateEnum.PMAgreeBack;
|
||||
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
//已提交未生成任务的才允许申请
|
||||
//一致性核查通过前已提交的影像才允许进行回退
|
||||
throw new BusinessValidationFailedException(_localizer["QCOperation_ShouldBeforeCheckPassed"]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue