From 48089940a3ed22287a5c71535ebaeb4d71b7ca15 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Fri, 18 Oct 2024 17:16:46 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=A4=84=E7=90=86=E9=83=BD=E4=B8=8D?= =?UTF-8?q?=E9=80=89=E9=A2=84=E7=BA=A6=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Appointment/Dto/AppointmentReceiveItemDto.cs | 5 +++++ 1 file changed, 5 insertions(+) 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())