This commit is contained in:
he
2022-12-22 16:47:32 +08:00
committed by {872297557@qq.com}
parent 4a2143e549
commit d59dbc8369
13 changed files with 131 additions and 48 deletions
@@ -34,7 +34,7 @@ namespace IRaCIS.Application.Services
if (taskInfo.ReadingCategory != ReadingCategory.Oncology)
{
throw new BusinessValidationFailedException("当前任务不是肿瘤学任务");
throw new BusinessValidationFailedException(_localizer["ReadingOncology_TaskError"]);
}
var trialCriterion = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == taskInfo.TrialReadingCriterionId).FirstOrDefaultAsync();
@@ -75,7 +75,7 @@ namespace IRaCIS.Application.Services
var judgeResultTaskId = await _visitTaskRepository.Where(x => x.Id == globalTaskInfo.JudgeVisitTaskId).Select(x => x.JudgeResultTaskId).FirstOrDefaultAsync();
if (judgeResultTaskId == null)
{
throw new BusinessValidationFailedException("异常,裁判结果为null");
throw new BusinessValidationFailedException(_localizer["ReadingOncology_Abnormal"]);
}
visitTask = await _visitTaskRepository.Where(x => x.Id == judgeResultTaskId).FirstOrDefaultAsync();
}