Uat_Study
parent
697018962d
commit
64df53602e
|
@ -2063,17 +2063,20 @@ namespace IRaCIS.Application.Services
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<IResponseOutput> VerifyVisitTaskQuestions(VerifyVisitTaskQuestionsInDto inDto)
|
public async Task<IResponseOutput> VerifyVisitTaskQuestions(VerifyVisitTaskQuestionsInDto inDto)
|
||||||
{
|
{
|
||||||
List<ReadingCalculateData> calculateList = new List<ReadingCalculateData>()
|
|
||||||
|
var tableAnswerList = await _readingTableQuestionAnswerRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId)
|
||||||
|
.Select(x => new
|
||||||
|
{
|
||||||
|
QuestionMark = x.ReadingTableQuestionTrial.QuestionMark,
|
||||||
|
Answer = x.Answer
|
||||||
|
}).ToListAsync();
|
||||||
|
|
||||||
|
if (tableAnswerList.Any(x => x.QuestionMark == QuestionMark.State && x.Answer.IsNullOrEmpty()))
|
||||||
{
|
{
|
||||||
|
throw new BusinessValidationFailedException($"存在病灶信息状态为空!");
|
||||||
|
}
|
||||||
|
|
||||||
new ReadingCalculateData (){
|
//await _readingCalculateService.VerifyVisitTaskQuestions(inDto);
|
||||||
QuestionType=QuestionType.SOD,
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
await _readingCalculateService.VerifyVisitTaskQuestions(inDto);
|
|
||||||
return ResponseOutput.Ok(true);
|
return ResponseOutput.Ok(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue