查询验证
This commit is contained in:
@@ -762,6 +762,9 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||
}
|
||||
|
||||
|
||||
var taskinfo = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).FirstNotNullAsync();
|
||||
|
||||
|
||||
var tableAnswerList = await _readingTableQuestionAnswerRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId && (x.Answer == string.Empty || x.Answer == null)
|
||||
&& x.ReadingTableQuestionTrial.QuestionMark == QuestionMark.State
|
||||
)
|
||||
@@ -821,15 +824,19 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||
// 判断是否有pet
|
||||
if (await _readingTaskQuestionAnswerRepository.AnyAsync(x => x.ReadingQuestionTrial.QuestionType == QuestionType.ExistPET && x.VisitTaskId == inDto.VisitTaskId && x.Answer == ReadingYesOrNo.Yes.GetEnumInt()))
|
||||
{
|
||||
|
||||
List<QuestionType?> required=new List<QuestionType?>() {
|
||||
QuestionType.LiverSUVmax,
|
||||
QuestionType.MediastinumSUVmax,
|
||||
QuestionType.SUVmax,
|
||||
QuestionType.SUVmaxLesion,
|
||||
QuestionType.PET5PS,
|
||||
QuestionType.UptakeChange,
|
||||
QuestionType.EvidenceFocalFDG
|
||||
};
|
||||
if (taskinfo.VisitTaskNum != 0m)
|
||||
{
|
||||
required.Add(QuestionType.UptakeChange);
|
||||
required.Add(QuestionType.EvidenceFocalFDG);
|
||||
}
|
||||
|
||||
if ((await _readingTaskQuestionAnswerRepository.CountAsync(x => required.Contains(x.ReadingQuestionTrial.QuestionType) && x.VisitTaskId == inDto.VisitTaskId && x.Answer != string.Empty)) != required.Count())
|
||||
{
|
||||
@@ -840,7 +847,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||
|
||||
if (errorMassage != string.Empty)
|
||||
{
|
||||
errorMassage = _localizer["ReadingCalculate_Questionable"] + errorMassage;
|
||||
//errorMassage = errorMassage;
|
||||
throw new BusinessValidationFailedException(errorMassage);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user