fix 查询由前端处理
This commit is contained in:
@@ -1,23 +1,8 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kurisu.AspNetCore.CustomClass;
|
||||
|
||||
namespace Dlhis.ScheduledTask.DeviceUploadLog.Request;
|
||||
|
||||
public class DeviceUploadLogMyRecordRequest : IValidatableObject
|
||||
public class DeviceUploadLogMyRecordRequest
|
||||
{
|
||||
public DateTimePeriod DateTimePeriod { get; set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
|
||||
{
|
||||
DateTimePeriod ??= new DateTimePeriod();
|
||||
|
||||
if (DateTimePeriod.Start != null)
|
||||
{
|
||||
DateTimePeriod.End = DateTimePeriod.Start.Value.AddDays(1);
|
||||
}
|
||||
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user