From 9218fc5affbd1aa9fd1f0f8c42d896ef923d7d42 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Fri, 18 Oct 2024 18:00:07 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=A1=A5=E5=85=85=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.External/Appointment/Dto/AppointmentReceiveItemDto.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Dlhis.External/Appointment/Dto/AppointmentReceiveItemDto.cs b/Src/Dlhis.External/Appointment/Dto/AppointmentReceiveItemDto.cs index 257e4058..84fec502 100644 --- a/Src/Dlhis.External/Appointment/Dto/AppointmentReceiveItemDto.cs +++ b/Src/Dlhis.External/Appointment/Dto/AppointmentReceiveItemDto.cs @@ -113,7 +113,7 @@ public class AppointmentReceiveItemDto : IValidatableObject yield return new ValidationResult($"{Name}车间区域不可为空", new[] { nameof(ApplyWorkplaceAreas) }); } - if (WorkplaceStart >= WorkplaceEnd) + if (!WorkplaceStart.HasValue || !WorkplaceEnd.HasValue || WorkplaceStart >= WorkplaceEnd) { yield return new ValidationResult($"{Name}车间来访时间有误", new[] { nameof(WorkplaceStart) }); }