From 57b64fda05417592b6f1b604cd3b1443a6d5f9ae Mon Sep 17 00:00:00 2001 From: xuejiaming <326308290@qq.com> Date: Sun, 29 Aug 2021 16:22:21 +0800 Subject: [PATCH] 1 --- nuget-publish.bat | 6 +++--- .../AbstractSimpleShardingMonthKeyLongVirtualTableRoute.cs | 2 +- ...bstractSimpleShardingWeekKeyDateTimeVirtualTableRoute.cs | 2 +- .../AbstractSimpleShardingWeekKeyLongVirtualTableRoute.cs | 2 +- ...bstractSimpleShardingYearKeyDateTimeVirtualTableRoute.cs | 2 +- .../AbstractSimpleShardingYearKeyLongVirtualTableRoute.cs | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/nuget-publish.bat b/nuget-publish.bat index a1d6d0fc..b19f6d90 100644 --- a/nuget-publish.bat +++ b/nuget-publish.bat @@ -1,8 +1,8 @@ :start ::定义版本 -set EFCORE2=2.2.0.14 -set EFCORE3=3.2.0.14 -set EFCORE5=5.2.0.14 +set EFCORE2=2.2.0.15 +set EFCORE3=3.2.0.15 +set EFCORE5=5.2.0.15 ::删除所有bin与obj下的文件 @echo off diff --git a/src/ShardingCore/VirtualRoutes/Months/AbstractSimpleShardingMonthKeyLongVirtualTableRoute.cs b/src/ShardingCore/VirtualRoutes/Months/AbstractSimpleShardingMonthKeyLongVirtualTableRoute.cs index 00998cfc..07d035e4 100644 --- a/src/ShardingCore/VirtualRoutes/Months/AbstractSimpleShardingMonthKeyLongVirtualTableRoute.cs +++ b/src/ShardingCore/VirtualRoutes/Months/AbstractSimpleShardingMonthKeyLongVirtualTableRoute.cs @@ -23,7 +23,7 @@ namespace ShardingCore.VirtualRoutes.Months var tails=new List(); //提前创建表 - var nowTimeStamp =ShardingCoreHelper.GetNextMonthFirstDay(beginTime); + var nowTimeStamp =ShardingCoreHelper.GetNextMonthFirstDay(DateTime.Now); if (beginTime > nowTimeStamp) throw new ArgumentException("起始时间不正确无法生成正确的表名"); var currentTimeStamp = beginTime; diff --git a/src/ShardingCore/VirtualRoutes/Weeks/AbstractSimpleShardingWeekKeyDateTimeVirtualTableRoute.cs b/src/ShardingCore/VirtualRoutes/Weeks/AbstractSimpleShardingWeekKeyDateTimeVirtualTableRoute.cs index 4f819809..40bf54c1 100644 --- a/src/ShardingCore/VirtualRoutes/Weeks/AbstractSimpleShardingWeekKeyDateTimeVirtualTableRoute.cs +++ b/src/ShardingCore/VirtualRoutes/Weeks/AbstractSimpleShardingWeekKeyDateTimeVirtualTableRoute.cs @@ -23,7 +23,7 @@ namespace ShardingCore.VirtualRoutes.Weeks var tails=new List(); //提前创建表 - var nowTimeStamp =beginTime.AddDays(7).Date; + var nowTimeStamp = DateTime.Now.AddDays(7).Date; if (beginTime > nowTimeStamp) throw new ArgumentException("起始时间不正确无法生成正确的表名"); var currentTimeStamp = beginTime; diff --git a/src/ShardingCore/VirtualRoutes/Weeks/AbstractSimpleShardingWeekKeyLongVirtualTableRoute.cs b/src/ShardingCore/VirtualRoutes/Weeks/AbstractSimpleShardingWeekKeyLongVirtualTableRoute.cs index b908772b..79cc8f65 100644 --- a/src/ShardingCore/VirtualRoutes/Weeks/AbstractSimpleShardingWeekKeyLongVirtualTableRoute.cs +++ b/src/ShardingCore/VirtualRoutes/Weeks/AbstractSimpleShardingWeekKeyLongVirtualTableRoute.cs @@ -23,7 +23,7 @@ namespace ShardingCore.VirtualRoutes.Weeks var tails=new List(); //提前创建表 - var nowTimeStamp =beginTime.AddDays(7).Date; + var nowTimeStamp = DateTime.Now.AddDays(7).Date; if (beginTime > nowTimeStamp) throw new ArgumentException("起始时间不正确无法生成正确的表名"); var currentTimeStamp = beginTime; diff --git a/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyDateTimeVirtualTableRoute.cs b/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyDateTimeVirtualTableRoute.cs index c391aa57..01c0652d 100644 --- a/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyDateTimeVirtualTableRoute.cs +++ b/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyDateTimeVirtualTableRoute.cs @@ -23,7 +23,7 @@ namespace ShardingCore.VirtualRoutes.Years var tails=new List(); //提前创建表 - var nowTimeStamp =beginTime.AddYears(1).Date; + var nowTimeStamp = DateTime.Now.AddYears(1).Date; if (beginTime > nowTimeStamp) throw new ArgumentException("起始时间不正确无法生成正确的表名"); var currentTimeStamp = beginTime; diff --git a/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyLongVirtualTableRoute.cs b/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyLongVirtualTableRoute.cs index 51e29e6a..e1ebb6b8 100644 --- a/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyLongVirtualTableRoute.cs +++ b/src/ShardingCore/VirtualRoutes/Years/AbstractSimpleShardingYearKeyLongVirtualTableRoute.cs @@ -23,7 +23,7 @@ namespace ShardingCore.VirtualRoutes.Years var tails=new List(); //提前创建表 - var nowTimeStamp =beginTime.AddYears(1).Date; + var nowTimeStamp = DateTime.Now.AddYears(1).Date; if (beginTime > nowTimeStamp) throw new ArgumentException("起始时间不正确无法生成正确的表名"); var currentTimeStamp = beginTime;