稽查功能修改
This commit is contained in:
@@ -3708,10 +3708,12 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||
var questionAnswer= entitys.Where(x => x.Entity.GetType() == typeof(ReadingTaskQuestionAnswer)).Select(x => x.Entity as ReadingTaskQuestionAnswer)
|
||||
.Where(x => x.VisitTaskId == entity.VisitTaskId && x.ReadingQuestionTrialId == entity.QuestionId).FirstOrDefault();
|
||||
|
||||
var quesionInfo = await _dbContext.ReadingQuestionTrial.Where(t => t.Id == questionAnswer.ReadingQuestionTrialId).Select(t =>
|
||||
if (questionAnswer != null)
|
||||
{
|
||||
var quesionInfo = await _dbContext.ReadingQuestionTrial.Where(t => t.Id == questionAnswer.ReadingQuestionTrialId).Select(t =>
|
||||
new
|
||||
{
|
||||
|
||||
|
||||
t.Unit,
|
||||
t.CustomUnit,
|
||||
t.DictionaryCode,
|
||||
@@ -3723,7 +3725,8 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||
})
|
||||
.OrderBy(t => t.ShowOrder).FirstOrDefaultAsync();
|
||||
|
||||
answer = Translationunit(quesionInfo.AnswerType, quesionInfo.Unit, quesionInfo.CustomUnit, unitDataList, questionAnswer.Answer);
|
||||
answer = Translationunit(quesionInfo.AnswerType, quesionInfo.Unit, quesionInfo.CustomUnit, unitDataList, questionAnswer.Answer);
|
||||
}
|
||||
}
|
||||
|
||||
var rowMark = await _dbContext.ReadingTableAnswerRowInfo.Where(x => x.Id == entity.RowId).Select(x => x.RowMark).FirstOrDefaultAsync();
|
||||
|
||||
Reference in New Issue
Block a user