代码修改
parent
4d94784e88
commit
a13b1d08c4
|
@ -1902,12 +1902,12 @@ namespace IRaCIS.Application.Services
|
|||
if (targetlymphQuestion != null)
|
||||
{
|
||||
// 判断是否为淋巴结
|
||||
if (inDto.QuestionId == targetTablequestionList[0].ReadingQuestionId && inDto.AnswerList.Any(x => x.TableQuestionId == targetlymphQuestion.Id && x.Answer.EqEnum(ReadingYesOrNo.Yes)))
|
||||
if (inDto.QuestionId == targetTablequestionList[0].ReadingQuestionId && inDto.AnswerList.Any(x => x.TableQuestionId == targetlymphQuestion.Id && x.Answer.EqEnum(ReadingYesOrNo.No)))
|
||||
{
|
||||
if (await _readingTableQuestionAnswerRepository.CountAsync(x => x.VisitTaskId == inDto.VisitTaskId && x.TableQuestionId == targetlymphQuestion.Id && x.Answer == ReadingYesOrNo.Yes.GetEnumInt() && x.RowId != inDto.RowId) >= 2)
|
||||
if (await _readingTableQuestionAnswerRepository.CountAsync(x => x.VisitTaskId == inDto.VisitTaskId && x.TableQuestionId == targetlymphQuestion.Id && x.Answer == ReadingYesOrNo.No.GetEnumInt() && x.RowId != inDto.RowId) >= 2)
|
||||
{
|
||||
// 靶病灶只能添加两个淋巴结病灶
|
||||
throw new BusinessValidationFailedException(_localizer["ReadingImage_LuganoMaxTowTarget"]);
|
||||
// 靶病灶只能添加两个非淋巴结病灶
|
||||
throw new BusinessValidationFailedException(_localizer["ReadingImage_LuganoMaxTowNoTarget"]);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue