This commit is contained in:
tanglong 2026-01-28 11:25:06 +08:00
parent d692d62d2c
commit 5d270c8dab

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();