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

Test_IRC_Net8
he 2026-01-29 11:37:13 +08:00
parent 2d2e0f6f2f
commit 7a5ad83cbb
4 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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));

View File

@ -16,6 +16,9 @@ public class Doctor : BaseFullAuditEntity
[JsonIgnore]
public List<Enroll> EnrollList { get; set; }
[JsonIgnore]
public List<Vacation> VacationList { get; set; }
[JsonIgnore]
[ForeignKey("HospitalId")]
public Hospital Hospital { get; set; }

View File

@ -6,6 +6,9 @@ public class Vacation : BaseFullAuditEntity
{
#region 导航属性
[JsonIgnore]
[ForeignKey("DoctorId")]
public Doctor Doctor { get; set; }
#endregion
public Guid DoctorId { get; set; }
public DateTime StartDate { get; set; }