mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Synchronization code
This commit is contained in:
parent
783a230337
commit
910825781b
@ -1240,6 +1240,16 @@ namespace SqlSugar
|
|||||||
string sql = "SAMPLE BY " + timeNumber + sampleBy.ToString().Substring(0, 1);
|
string sql = "SAMPLE BY " + timeNumber + sampleBy.ToString().Substring(0, 1);
|
||||||
this.QueryBuilder.SampleBy = sql;
|
this.QueryBuilder.SampleBy = sql;
|
||||||
}
|
}
|
||||||
|
else if (timeType == SampleByUnit.Millisecond)
|
||||||
|
{
|
||||||
|
string sql = "SAMPLE BY " + timeNumber + " T ";
|
||||||
|
this.QueryBuilder.SampleBy = sql;
|
||||||
|
}
|
||||||
|
else if (timeType == SampleByUnit.Microsecond)
|
||||||
|
{
|
||||||
|
string sql = "SAMPLE BY " + timeNumber + " U ";
|
||||||
|
this.QueryBuilder.SampleBy = sql;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
string sql = "SAMPLE BY "+timeNumber + sampleBy.ToString().Substring(0, 1).ToLower();
|
string sql = "SAMPLE BY "+timeNumber + sampleBy.ToString().Substring(0, 1).ToLower();
|
||||||
|
@ -11,6 +11,8 @@ namespace SqlSugar
|
|||||||
Hour,
|
Hour,
|
||||||
Day,
|
Day,
|
||||||
Month,
|
Month,
|
||||||
Year
|
Year,
|
||||||
|
Millisecond,
|
||||||
|
Microsecond,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<package >
|
<package >
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>SqlSugarCore</id>
|
<id>SqlSugarCore</id>
|
||||||
<version>5.1.4.155-preview10</version>
|
<version>5.1.4.155-preview18</version>
|
||||||
<authors>sunkaixuan</authors>
|
<authors>sunkaixuan</authors>
|
||||||
<owners>果糖大数据科技</owners>
|
<owners>果糖大数据科技</owners>
|
||||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||||
|
Loading…
Reference in New Issue
Block a user