修复按年分表
This commit is contained in:
parent
515729175f
commit
2e93d2dfa8
|
@ -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>();
|
||||
//提前创建表
|
||||
|
|
|
@ -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>();
|
||||
//提前创建表
|
||||
|
|
Loading…
Reference in New Issue