Uat_Study
he 2022-07-05 15:04:17 +08:00
parent ed1955ad02
commit 9231e6f820
1 changed files with 6 additions and 2 deletions

View File

@ -330,15 +330,19 @@ namespace IRaCIS.Core.Application.Service
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<List<GetMedicalReviewDialogOutDto>> GetMedicalReviewDialog(GetMedicalReviewDialogInDto inDto)
public async Task<(List<GetMedicalReviewDialogOutDto>,object)> GetMedicalReviewDialog(GetMedicalReviewDialogInDto inDto)
{
var taskMedicalReview = await _taskMedicalReviewRepository.Where(x => x.Id == inDto.TaskMedicalReviewId).FirstNotNullAsync();
List<GetMedicalReviewDialogOutDto> result = await _readingMedicalReviewDialogRepository.Where(x => x.TaskMedicalReviewId == inDto.TaskMedicalReviewId)
.ProjectTo<GetMedicalReviewDialogOutDto>(_mapper.ConfigurationProvider)
.OrderBy(x => x.CreateTime).ToListAsync();
result.ForEach(x => {
x.IsCurrentUser = x.CreateUserId == _userInfo.Id;
});
return result;
return (result,new {
taskMedicalReview.ImagePath,
taskMedicalReview.IsClosedDialog,
});
}
/// <summary>