修改
continuous-integration/drone/push Build is passing

This commit is contained in:
he
2025-11-12 17:00:25 +08:00
parent 35ee76be0b
commit 342b567e2c
4 changed files with 14 additions and 4 deletions
@@ -144,7 +144,7 @@ namespace IRaCIS.Core.Application
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<IResponseOutput<GetTrialReadingInfoOutDto>> GetCriterionReadingInfo(GetTrialReadingInfoInDto inDto)
public async Task<(GetTrialReadingInfoOutDto, bool)> GetCriterionReadingInfo(GetTrialReadingInfoInDto inDto)
{
GetTrialReadingInfoOutDto trialInfo = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.TrialReadingCriterionId).ProjectTo<GetTrialReadingInfoOutDto>(_mapper.ConfigurationProvider).FirstNotNullAsync();
@@ -157,7 +157,7 @@ namespace IRaCIS.Core.Application
trialInfo.TrialCriterionAdditionalAssessmentTypeList = await _trialCriterionAdditionalAssessmentTypeRepository.Where(t => t.TrialReadingCriterionId == inDto.TrialReadingCriterionId).ToListAsync();
return ResponseOutput.Ok(trialInfo);
return (trialInfo, true);
}
/// <summary>
@@ -238,7 +238,7 @@ namespace IRaCIS.Core.Application.Service
CreateMap<TrialCriterionKeyFile, KeyFile>();
CreateMap<ReadingQuestionCriterionTrial, GetTrialReadingInfoOutDto>()
//.ForMember(t => t.KeyFileList, u => u.MapFrom(c => c.KeyFileList))
.ForMember(t => t.KeyFileList, u => u.MapFrom(c => c.KeyFileList))
.ForMember(t => t.TrialModalitys, u => u.MapFrom(c => c.Trial.Modalitys))
.ForMember(t => t.TrialReadingCriterionId, u => u.MapFrom(c => c.Id))
.ForMember(t => t.TrialReadingCriterionName, u => u.MapFrom(c => c.CriterionName));