fix 查询日期范围处理

This commit is contained in:
2024-03-26 14:18:05 +08:00
parent 521543a79e
commit b3549a266e

View File

@@ -68,6 +68,16 @@ public class DeviceUploadLogPageRequest : PageDto, IValidatableObject
SearchDateTimePeriod.Start = SearchDateTimePeriod.Start.Value;
SearchDateTimePeriod.End = SearchDateTimePeriod.End.Value;
}
else
{
if (SearchDateTimePeriod != null)
{
if (SearchDateTimePeriod.End.HasValue)
{
SearchDateTimePeriod.End = SearchDateTimePeriod.End.Value.AddDays(1).AddSeconds(-1);
}
}
}
yield break;
}