修复按年分表

This commit is contained in:
xuejiaming 2023-01-04 14:59:47 +08:00
parent 515729175f
commit 2e93d2dfa8
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ namespace ShardingCore.VirtualRoutes.Years
public abstract DateTime GetBeginTime();
protected override List<string> CalcTailsOnStart()
{
var beginTime = GetBeginTime().Date;
var beginTime = new DateTime(GetBeginTime().Year,1,1);
var tails=new List<string>();
//提前创建表

View File

@ -27,7 +27,7 @@ namespace ShardingCore.VirtualRoutes.Years
/// <returns></returns>
protected override List<string> CalcTailsOnStart()
{
var beginTime = GetBeginTime().Date;
var beginTime = new DateTime(GetBeginTime().Year,1,1);
var tails=new List<string>();
//提前创建表