fix 修复已知问题
This commit is contained in:
@@ -38,12 +38,7 @@ public class BusinessPlaceShiftSaveMealShiftRequest : IValidatableObject
|
||||
yield return new ValidationResult("时间段配置错误", new[] { nameof(TimePeriod) });
|
||||
}
|
||||
|
||||
if (TimePeriod!.Start == null || TimePeriod!.End == null)
|
||||
{
|
||||
yield return new ValidationResult("时间段配置错误", new[] { nameof(TimePeriod) });
|
||||
}
|
||||
|
||||
if (TimePeriod!.Start == TimePeriod!.End)
|
||||
if (TimePeriod!.Start == TimePeriod.End)
|
||||
{
|
||||
yield return new ValidationResult("时间段设置区间有误,开始时段不能等于结束时段.", new[] { nameof(TimePeriod) });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user