fix 处理都不选预约类型错误
This commit is contained in:
@@ -88,6 +88,11 @@ public class AppointmentReceiveItemDto : IValidatableObject
|
||||
/// <inheritdoc />
|
||||
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
|
||||
{
|
||||
if (IsEnterDoorArea == false && IsEnterWorkplace == false)
|
||||
{
|
||||
yield return new ValidationResult("请选择预约类型", new[] { nameof(IsEnterDoorArea) });
|
||||
}
|
||||
|
||||
if (IsEnterDoorArea)
|
||||
{
|
||||
if (ApplyDoorArea.IsEmpty())
|
||||
|
||||
Reference in New Issue
Block a user