Uat_Study
parent
0241f5f635
commit
32595ca92f
|
@ -88,6 +88,9 @@ namespace IRaCIS.Application.Services
|
||||||
public async Task<GetJudgeReadingInfoOutDto> GetJudgeReadingInfo(GetJudgeReadingInfo inDto)
|
public async Task<GetJudgeReadingInfoOutDto> GetJudgeReadingInfo(GetJudgeReadingInfo inDto)
|
||||||
{
|
{
|
||||||
var visitTask = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).FirstOrDefaultAsync();
|
var visitTask = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
|
||||||
|
var criterionType = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == visitTask.TrialReadingCriterionId).Select(x => x.CriterionType).FirstNotNullAsync();
|
||||||
GetJudgeReadingInfoOutDto judgeInfo = new GetJudgeReadingInfoOutDto()
|
GetJudgeReadingInfoOutDto judgeInfo = new GetJudgeReadingInfoOutDto()
|
||||||
{
|
{
|
||||||
ReadingTaskState = visitTask.ReadingTaskState,
|
ReadingTaskState = visitTask.ReadingTaskState,
|
||||||
|
@ -302,14 +305,17 @@ namespace IRaCIS.Application.Services
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
if (criterionType != CriterionType.PCWG3)
|
||||||
// 加全局是否更新 和访视点注释
|
|
||||||
judgeReadingQuestion.JudgeQuestionList.Add(new JudgeQuestion()
|
|
||||||
{
|
{
|
||||||
Answer = item.AfterQuestionList.Any(x => x.IsHaveChange),
|
// 加全局是否更新 和访视点注释 PCWG3不要
|
||||||
QuestionType = JudgeReadingQuestionType.GlobalChange,
|
judgeReadingQuestion.JudgeQuestionList.Add(new JudgeQuestion()
|
||||||
|
{
|
||||||
|
Answer = item.AfterQuestionList.Any(x => x.IsHaveChange),
|
||||||
|
QuestionType = JudgeReadingQuestionType.GlobalChange,
|
||||||
|
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
judgeReadingQuestion.JudgeQuestionList.Add(new JudgeQuestion()
|
judgeReadingQuestion.JudgeQuestionList.Add(new JudgeQuestion()
|
||||||
{
|
{
|
||||||
|
@ -338,13 +344,21 @@ namespace IRaCIS.Application.Services
|
||||||
}).ToList()
|
}).ToList()
|
||||||
};
|
};
|
||||||
|
|
||||||
// 加全局是否更新 和访视点注释
|
|
||||||
rTwoJudge.JudgeQuestionList.Add(new JudgeQuestion()
|
|
||||||
{
|
|
||||||
Answer = twoItem.AfterQuestionList.Any(x => x.IsHaveChange),
|
|
||||||
QuestionType = JudgeReadingQuestionType.GlobalChange,
|
|
||||||
|
|
||||||
});
|
|
||||||
|
if (criterionType != CriterionType.PCWG3)
|
||||||
|
{
|
||||||
|
// 加全局是否更新 和访视点注释
|
||||||
|
rTwoJudge.JudgeQuestionList.Add(new JudgeQuestion()
|
||||||
|
{
|
||||||
|
Answer = twoItem.AfterQuestionList.Any(x => x.IsHaveChange),
|
||||||
|
QuestionType = JudgeReadingQuestionType.GlobalChange,
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
rTwoJudge.JudgeQuestionList.Add(new JudgeQuestion()
|
rTwoJudge.JudgeQuestionList.Add(new JudgeQuestion()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue