Uat_Study
he 2022-07-26 17:45:08 +08:00
parent d5cf6b28e3
commit bad0371444
2 changed files with 9 additions and 3 deletions

View File

@ -358,11 +358,18 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
} }
public class GetSystemReadingQuestionInDto
{
[NotDefault]
public Guid ReadingQuestionCriterionSystemId { get; set; }
}
public class GetTrialReadingQuestionInDto public class GetTrialReadingQuestionInDto
{ {
[NotDefault] [NotDefault]
public Guid ReadingQuestionCriterionSystemId { get; set; } public Guid ReadingQuestionCriterionTrialId { get; set; }
public Guid? VisitTaskId { get; set; } public Guid? VisitTaskId { get; set; }

View File

@ -627,10 +627,9 @@ namespace IRaCIS.Application.Services
/// <param name="inDto"></param> /// <param name="inDto"></param>
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
public async Task<GetTrialReadingQuestionPageDto> GetSystemReadingQuestion(GetTrialReadingQuestionInDto inDto) public async Task<GetTrialReadingQuestionPageDto> GetSystemReadingQuestion(GetSystemReadingQuestionInDto inDto)
{ {
var result = new GetTrialReadingQuestionPageDto(); var result = new GetTrialReadingQuestionPageDto();
var query = from data in _readingQuestionSystem.Where(x => x.ReadingQuestionCriterionSystemId == inDto.ReadingQuestionCriterionSystemId) var query = from data in _readingQuestionSystem.Where(x => x.ReadingQuestionCriterionSystemId == inDto.ReadingQuestionCriterionSystemId)
select new GetTrialReadingQuestionOutDto() select new GetTrialReadingQuestionOutDto()
{ {