mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Update split bug
This commit is contained in:
@@ -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();
|
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();
|
result = result.Where(y => y.Date.Year >= beginTime.Year && y.Date.Year <= endTime.Year).ToList();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user