修改
This commit is contained in:
@@ -716,6 +716,52 @@ namespace IRaCIS.Application.Contracts
|
||||
public CriterionFileType FileType { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class GetDoctorCriterionFileOutDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件名称
|
||||
/// </summary>
|
||||
public string FileName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件路径
|
||||
/// </summary>
|
||||
public string FilePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标准类型
|
||||
/// </summary>
|
||||
public CriterionType CriterionType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 医生Id
|
||||
/// </summary>
|
||||
public Guid DoctorId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件类型
|
||||
/// </summary>
|
||||
public CriterionFileType FileType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CreateUserId
|
||||
/// </summary>
|
||||
public Guid CreateUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CreateTime
|
||||
/// </summary>
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
||||
|
||||
public class GetDoctorCriterionFileInDto
|
||||
{
|
||||
public Guid DoctorId { get; set; }
|
||||
|
||||
@@ -507,6 +507,7 @@ namespace IRaCIS.Application.Services
|
||||
var result = await _doctorCriterionFileRepository.Where(x => x.DoctorId == inDto.DoctorId)
|
||||
.WhereIf(inDto.CriterionType != null, x => x.CriterionType == inDto.CriterionType)
|
||||
.WhereIf(inDto.FileType != null, x => x.FileType == inDto.FileType)
|
||||
.ProjectTo<DoctorCriterionFile>(_mapper.ConfigurationProvider)
|
||||
.ToListAsync();
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
CreateMap<ReviewerAckDTO, Attachment>().EqualityComparison((odto, o) => odto.Id == o.Id);
|
||||
|
||||
CreateMap<AddDoctorCriterionFileDto, DoctorCriterionFile>();
|
||||
CreateMap<DoctorCriterionFile, GetDoctorCriterionFileOutDto>();
|
||||
CreateMap<Doctor, DoctorBasicInfoCommand>();
|
||||
CreateMap<Education, EducationInfoViewModel>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user