Update split bug

This commit is contained in:
sunkaixuan 2022-02-28 09:19:01 +08:00
parent a2f8457d43
commit 166af1dd62

View File

@ -905,7 +905,7 @@ namespace SqlSugar
{
result = result.Where(y => y.Date >= beginTime.ToString("yyyy-MM").ObjToDate() && y.Date <= endTime.Date.ToString("yyyy-MM").ObjToDate().AddMonths(1).AddDays(-1)).ToList();
}
else if (SplitType.Month == type.SplitType)
else if (SplitType.Year == type.SplitType)
{
result = result.Where(y => y.Date.Year >= beginTime.Year && y.Date.Year <= endTime.Year).ToList();
}