fix 补充时间校验
This commit is contained in:
@@ -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) });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user