@@ -20,7 +20,7 @@ namespace CZKJ.GBRS2.Logic
}
if(startTime.HasValue&&endTime.HasValue)
{
- query = query.Where(x => x.DateTime >= startTime && x.DateTime <= endTime);
+ query = query.Where(x => x.DateTime.Month >= startTime.Value.Month && x.DateTime.Month <= endTime.Value.Month);
rowsCount = query.Count();
var result = query.Join(DbContext.Set<TypeEntity>(), x => x.Typeofinsuance, y => y.Id, (x, y) => new { x, y.Name }).OrderByDescending(x => x.x.DateTime).Skip((pageIndex - 1) * pageSize).Take(pageSize).ToList();