修改一版

Uat_Study
he 2023-01-10 14:38:58 +08:00
parent 88b7b4d2f6
commit 64605dfa25
2 changed files with 3 additions and 0 deletions

View File

@ -1028,6 +1028,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public bool IsHaveChange { get; set; } = false; public bool IsHaveChange { get; set; } = false;
public string VisitAnswer { get; set; } = string.Empty;
public string QuestionName { get; set; } public string QuestionName { get; set; }
public string Answer { get; set; } public string Answer { get; set; }

View File

@ -207,6 +207,7 @@ namespace IRaCIS.Application.Services
(lr.global.Select(x => x.Answer).FirstOrDefault().IsNullOrEmpty() && inDto.UsingOriginalData ? (lr.global.Select(x => x.Answer).FirstOrDefault().IsNullOrEmpty() && inDto.UsingOriginalData ?
lr.question.Answer : lr.global.Select(x => x.Answer).FirstOrDefault() lr.question.Answer : lr.global.Select(x => x.Answer).FirstOrDefault()
), ),
VisitAnswer = lr.question.Answer,
IsHaveChange = lr.global.Any(x=>x.QuestionId!=null&&!x.Answer.IsNullOrEmpty()) ? true : false, IsHaveChange = lr.global.Any(x=>x.QuestionId!=null&&!x.Answer.IsNullOrEmpty()) ? true : false,
QuestionId = lr.question.QuestionId, QuestionId = lr.question.QuestionId,
QuestionName = lr.question.QuestionName, QuestionName = lr.question.QuestionName,