保存测量值
continuous-integration/drone/push Build is passing Details

Temp_Event_IRC_Met8
he 2025-06-23 15:35:42 +08:00
parent 1b4bc3690a
commit 290506a060
1 changed files with 4 additions and 16 deletions

View File

@ -3234,24 +3234,12 @@ namespace IRaCIS.Core.Infra.EFCore.Common
string extraIdentification = string.Empty;
if (type == AuditOpt.Add)
var readingQuestion = await _dbContext.ReadingQuestionTrial.Where(t => t.Id == entity.QuestionId).Include(x=>x.ReadingQuestionCriterionTrial).FirstNotNullAsync();
if (readingQuestion.ReadingQuestionCriterionTrial.CriterionGroup == CriterionGroup.Nontumorous)
{
var readingQuestion = await _dbContext.ReadingQuestionTrial.Where(t => t.Id == entity.QuestionId).FirstOrDefaultAsync();
List<LesionType?> lesionTypeList = new List<LesionType?>()
{
LesionType.MatchValues,
LesionType.PatchDataStatistics,
LesionType.PAV,
LesionType.FCT,
LesionType.LipidAngle,
};
if (lesionTypeList.Contains(readingQuestion.LesionType))
{
extraIdentification = "/" + readingQuestion.LesionType.GetEnumNullInt();
}
extraIdentification = "/Nontumorous";
}
await InsertInspection<ReadingTableAnswerRowInfo>(entity, type, x => new InspectionConvertDTO()