diff --git a/langguanApi.xml b/langguanApi.xml
index ccbb527..25bb0c4 100644
--- a/langguanApi.xml
+++ b/langguanApi.xml
@@ -39,6 +39,11 @@
首页趋势数据
+
+
+ 缓存今日数据
+
+
缓存清洁数据
@@ -1753,7 +1758,7 @@
- filterdefinition
+ filter查找 流式数据
@@ -1873,6 +1878,18 @@
+
+
+ 今日排放数据
+
+
+
+
+
+ 一周之内的排放数据
+
+
+
新加数据
diff --git a/langguanApi/Common/Redis/RedisKeylist.cs b/langguanApi/Common/Redis/RedisKeylist.cs
index 6093aa6..8fbf7a8 100644
--- a/langguanApi/Common/Redis/RedisKeylist.cs
+++ b/langguanApi/Common/Redis/RedisKeylist.cs
@@ -16,6 +16,10 @@
///
public static string Trend = "tred";
///
+ /// 缓存今日数据
+ ///
+ public static string Today = "today";
+ ///
/// 缓存清洁数据
///
public static string CleanData = "cleandata";
diff --git a/langguanApi/Service/BaseService.cs b/langguanApi/Service/BaseService.cs
index bae2756..3163ffc 100644
--- a/langguanApi/Service/BaseService.cs
+++ b/langguanApi/Service/BaseService.cs
@@ -1,6 +1,8 @@
using langguanApi.Model;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.RazorPages;
+using Microsoft.Extensions.Options;
+using MongoDB.Bson;
using MongoDB.Driver;
using System.Linq.Expressions;
@@ -184,16 +186,27 @@ namespace langguanApi.Service
{
FilterDefinition filters = Builders.Filter.Where(filter);
return await _collection.Find(filters).ToListAsync();
-
}
+
///
- /// filterdefinition
+ /// filter查找 流式数据
///
///
///
public async Task> FindListyFilter(FilterDefinition filter)
{
- return await _collection.Find(filter).ToListAsync();
+ List result = new List();
+ var cursor = await _collection.FindAsync(filter);
+ while (await cursor.MoveNextAsync())
+ {
+ var batch = cursor.Current;
+ foreach (var document in batch)
+ {
+ result.Add(document);
+ // Console.WriteLine(document.ToString());
+ }
+ }
+ return result;
}
///
/// 是否存在
diff --git a/langguanApi/Service/Hj212Service.cs b/langguanApi/Service/Hj212Service.cs
index 08b5b76..3cd4b5b 100644
--- a/langguanApi/Service/Hj212Service.cs
+++ b/langguanApi/Service/Hj212Service.cs
@@ -1,8 +1,12 @@
using langguanApi.Extensions.AutoDI;
using langguanApi.Model;
using langguanApi.Model.Dto;
+using MongoDB.Bson;
+using MongoDB.Driver;
+using NPOI.HSSF.Record;
using System.Diagnostics;
using System.Linq.Expressions;
+using System.Text.RegularExpressions;
namespace langguanApi.Service
{
@@ -21,8 +25,6 @@ namespace langguanApi.Service
///
public async Task