mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-10-27 21:57:10 +08:00
10.8.1
This commit is contained in:
@@ -61,7 +61,7 @@ public class HardwareJob : IJob, IHardwareJob
|
|||||||
var historyHardwareInfos = MemoryCache.Get<List<HistoryHardwareInfo>>(CacheKey);
|
var historyHardwareInfos = MemoryCache.Get<List<HistoryHardwareInfo>>(CacheKey);
|
||||||
if (historyHardwareInfos == null)
|
if (historyHardwareInfos == null)
|
||||||
{
|
{
|
||||||
using var db = _db;
|
using var db = DbContext.GetDB<HistoryHardwareInfo>(); ;
|
||||||
historyHardwareInfos = await db.Queryable<HistoryHardwareInfo>().Where(a => a.Date > DateTime.Now.AddDays(-3)).ToListAsync().ConfigureAwait(false);
|
historyHardwareInfos = await db.Queryable<HistoryHardwareInfo>().Where(a => a.Date > DateTime.Now.AddDays(-3)).ToListAsync().ConfigureAwait(false);
|
||||||
|
|
||||||
MemoryCache.Set(CacheKey, historyHardwareInfos);
|
MemoryCache.Set(CacheKey, historyHardwareInfos);
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<Project>
|
<Project>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PluginVersion>10.8.0</PluginVersion>
|
<PluginVersion>10.8.1</PluginVersion>
|
||||||
<ProPluginVersion>10.8.0</ProPluginVersion>
|
<ProPluginVersion>10.8.1</ProPluginVersion>
|
||||||
<AuthenticationVersion>2.8.0</AuthenticationVersion>
|
<AuthenticationVersion>2.8.0</AuthenticationVersion>
|
||||||
<SourceGeneratorVersion>10.8.0</SourceGeneratorVersion>
|
<SourceGeneratorVersion>10.8.0</SourceGeneratorVersion>
|
||||||
<NET8Version>8.0.17</NET8Version>
|
<NET8Version>8.0.17</NET8Version>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>10.8.0</Version>
|
<Version>10.8.1</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user