diff --git a/Src/Dlhis.External/Appointment/Dto/AppointmentReceiveItemDto.cs b/Src/Dlhis.External/Appointment/Dto/AppointmentReceiveItemDto.cs index 256a852c..257e4058 100644 --- a/Src/Dlhis.External/Appointment/Dto/AppointmentReceiveItemDto.cs +++ b/Src/Dlhis.External/Appointment/Dto/AppointmentReceiveItemDto.cs @@ -88,6 +88,11 @@ public class AppointmentReceiveItemDto : IValidatableObject /// public IEnumerable Validate(ValidationContext validationContext) { + if (IsEnterDoorArea == false && IsEnterWorkplace == false) + { + yield return new ValidationResult("请选择预约类型", new[] { nameof(IsEnterDoorArea) }); + } + if (IsEnterDoorArea) { if (ApplyDoorArea.IsEmpty())