fix 查询日期范围处理
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user