ソースを参照

update 5.2211.9.1

CrazyIter_Bin 2 年 前
コミット
f1744ca2ee

+ 3 - 2
TEAMModelOS.FunctionV4/ServiceBus/ActiveTaskTopic.cs

@@ -52,6 +52,8 @@ namespace TEAMModelOS.FunctionV4.ServiceBus
         public static ConcurrentQueue<(ScreenshotDto screenshotDto, List<StudentArtResult> studentArts)> concurrentQueue
           = new ConcurrentQueue<(ScreenshotDto screenshotDto, List<StudentArtResult> studentArts)>();
         public static bool busy = false;
+        private readonly int psize = 20;
+        public static SpinWait spinWait = new SpinWait(); // 构造SpinWait实例
         private readonly AzureCosmosFactory _azureCosmos;
         private readonly DingDing _dingDing;
         private readonly AzureStorageFactory _azureStorage;
@@ -775,8 +777,7 @@ namespace TEAMModelOS.FunctionV4.ServiceBus
             }
             return resUrls;
         }
-        private readonly int psize = 20;
-        public static SpinWait spinWait = new SpinWait(); // 构造SpinWait实例
+       
         private async Task GenArtStudentPdf(JsonElement json, string msg) {
             try
             {

+ 5 - 17
TEAMModelOS/Controllers/XTest/TestController.cs

@@ -71,23 +71,11 @@ namespace TEAMModelOS.Controllers
             _searcher = searcher;
         }
         [ProducesDefaultResponseType]
-        [HttpPost("get-studentId")]
-        public async Task<IActionResult> GetStudentId(JsonElement json) {
-            List<string> ids = new List<string>();
-
-            await foreach (var item in _azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, "Student")
-                .GetItemQueryStreamIterator(queryText: "  SELECT distinct value c.studentId  FROM c where c.pk='OverallEducation' and c.schoolCode='ydzt'  ", requestOptions :new QueryRequestOptions { }))
-            {
-                using var djson = await JsonDocument.ParseAsync(item.ContentStream);
-                if (djson.RootElement.TryGetProperty("_count", out JsonElement count) && count.GetUInt16() > 0)
-                {
-                    foreach (var obj in djson.RootElement.GetProperty("Documents").EnumerateArray())
-                    {
-                        ids.Add(obj.ToObject<string>());
-                    }
-                }
-            }
-            return Ok(ids);
+        [HttpPost("sendmsg")]
+        public async Task<IActionResult> Sendmsg(JsonElement json) {
+            var messageBlobPDF = new ServiceBusMessage(new { userType = "tmdid", bizType = "OfflineRecord" }.ToJsonString());
+            await _serviceBus.GetServiceBusClient().SendMessageAsync("screenpdf", messageBlobPDF);
+            return Ok();
         }
 
 

+ 4 - 4
TEAMModelOS/TEAMModelOS.csproj

@@ -60,11 +60,11 @@
     <SpaRoot>ClientApp\</SpaRoot>
     <DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
     <UserSecretsId>078b5d89-7d90-4f6a-88fc-7d96025990a8</UserSecretsId>
-    <Version>5.2211.2</Version>
-    <AssemblyVersion>5.2211.2.1</AssemblyVersion>
-    <FileVersion>5.2211.2.1</FileVersion>
+    <Version>5.2211.9</Version>
+    <AssemblyVersion>5.2211.9.1</AssemblyVersion>
+    <FileVersion>5.2211.9.1</FileVersion>
     <Description>TEAMModelOS(IES5)</Description>
-    <PackageReleaseNotes>IES版本说明版本切换标记5.2211.2.1</PackageReleaseNotes>
+    <PackageReleaseNotes>IES版本说明版本切换标记5.2211.9.1</PackageReleaseNotes>
     <PackageId>TEAMModelOS</PackageId>
     <Authors>teammodel</Authors>
     <Company>醍摩豆(成都)信息技术有限公司</Company>