开始时间

This commit is contained in:
tanglong 2026-01-28 11:24:34 +08:00
parent d2d95e1815
commit 8823345d1b

View File

@ -141,7 +141,7 @@ namespace VOL.Business.Services.Norm
if (paramDto.EndTime.HasValue)
{
DateTime detectionDate = paramDto.EndTime.Value.Date;
query = query.Where(x => x.EndTime.HasValue && x.EndTime.Value.Date <= detectionDate);
query = query.Where(x => x.StartTime.HasValue && x.StartTime.Value.Date <= detectionDate);
}
res.Total = await query.CountAsync();