Compare commits

...

2 Commits

Author SHA1 Message Date
he 16099cc6d8 Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing Details
2025-07-15 15:19:10 +08:00
he 899ef3034f 代码修改 2025-07-15 15:19:08 +08:00
1 changed files with 6 additions and 5 deletions

View File

@ -3317,14 +3317,15 @@ namespace IRaCIS.Core.Infra.EFCore.Common
var liverSegmentation = await _dbContext.ReadingTableQuestionAnswer.Where(x => x.RowId == entity.RowId && x.ReadingTableQuestionTrial.QuestionMark == QuestionMark.liverSegmentation).Select(x => x.Answer).FirstOrDefaultAsync();
var generalId=new Guid();
if (entity.TableQuestionId == null && entity.QuestionId == null)
if (entity.MarkId != null)
{
generalId = entity.MarkId.Value;
}
else if (entity.TableQuestionId == null && entity.QuestionId == null)
{
generalId = entity.Id;
}
else if(entity.MarkId!=null)
{
generalId= entity.MarkId.Value;
}
else
{
generalId = IdentifierHelper.CreateGuid(entity.VisitTaskId.ToString(), entity.QuestionId.ToString(), entity.RowId.ToString(), entity.TableQuestionId.ToString(), "ReadingTaskQuestionMark");