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

This commit is contained in:
he
2026-01-29 11:37:13 +08:00
parent 2d2e0f6f2f
commit 7a5ad83cbb
4 changed files with 8 additions and 0 deletions
@@ -183,6 +183,7 @@ namespace IRaCIS.Application.Contracts
public class SelectionReviewerDTO : DoctorDTO
{
public bool IsVacation { get; set; }
public int DoctorTrialState { get; set; }
public bool IsEnroll { get; set; } = false;
@@ -131,6 +131,7 @@ namespace IRaCIS.Core.Application.Service
#region
CreateMap<Doctor, SelectionReviewerDTO>()
.ForMember(d => d.IsVacation, u => u.MapFrom(t => t.VacationList.Any(x=>x.StartDate<DateTime.Now&&x.EndDate>DateTime.Now)))
.ForMember(d => d.DoctorUserName, u => u.MapFrom(t => t.UserRole.IdentityUser.UserName));