From a767ee22517922642c8a8233558008f8a23e2f07 Mon Sep 17 00:00:00 2001 From: "liulb@mesnac.com" Date: Mon, 18 Mar 2024 11:07:54 +0800 Subject: [PATCH] . --- Admin.Core.Model/Model_New/TemperatureHistory.cs | 5 +++++ .../obj/Debug/net6.0/Admin.Core.Model.AssemblyInfo.cs | 2 +- .../Debug/net6.0/Admin.Core.Model.AssemblyInfoInputs.cache | 2 +- .../AucamTemperatureMeasurementService.cs | 5 +++-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Admin.Core.Model/Model_New/TemperatureHistory.cs b/Admin.Core.Model/Model_New/TemperatureHistory.cs index 08e1edc4..fead2a15 100644 --- a/Admin.Core.Model/Model_New/TemperatureHistory.cs +++ b/Admin.Core.Model/Model_New/TemperatureHistory.cs @@ -177,5 +177,10 @@ namespace Admin.Core.Model /// [SugarColumn(ColumnName = "SYNC_DATETIME")] public DateTime SyncDate { get; set; } + /// + /// 是否同步给质检 + /// + [SugarColumn(ColumnName = "ISFLAG")] + public int IsFlag { get; set; } } } diff --git a/Admin.Core.Model/obj/Debug/net6.0/Admin.Core.Model.AssemblyInfo.cs b/Admin.Core.Model/obj/Debug/net6.0/Admin.Core.Model.AssemblyInfo.cs index 6ae0666c..c9b5f73e 100644 --- a/Admin.Core.Model/obj/Debug/net6.0/Admin.Core.Model.AssemblyInfo.cs +++ b/Admin.Core.Model/obj/Debug/net6.0/Admin.Core.Model.AssemblyInfo.cs @@ -14,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("Admin.Core.Model")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5597057ca1de6338786ab4f638a2c2b9e090f8b3")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+cf85055ea425abf537d55683ab44a7cd57bc80a0")] [assembly: System.Reflection.AssemblyProductAttribute("Admin.Core.Model")] [assembly: System.Reflection.AssemblyTitleAttribute("Admin.Core.Model")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/Admin.Core.Model/obj/Debug/net6.0/Admin.Core.Model.AssemblyInfoInputs.cache b/Admin.Core.Model/obj/Debug/net6.0/Admin.Core.Model.AssemblyInfoInputs.cache index 28fa9c31..70e284a9 100644 --- a/Admin.Core.Model/obj/Debug/net6.0/Admin.Core.Model.AssemblyInfoInputs.cache +++ b/Admin.Core.Model/obj/Debug/net6.0/Admin.Core.Model.AssemblyInfoInputs.cache @@ -1 +1 @@ -1e07680cc947c2c2f3b8a95ff31878fb1dd9ee440a7f415fe66f9bb26f64ba0a +9b392ca6f0c575fd7ad6c5d83c3c2e890024a6b21a8886d05b5c619076d97841 diff --git a/Aucma.Core.TemperatureTask/AucamTemperatureMeasurementService.cs b/Aucma.Core.TemperatureTask/AucamTemperatureMeasurementService.cs index f4150150..1c459284 100644 --- a/Aucma.Core.TemperatureTask/AucamTemperatureMeasurementService.cs +++ b/Aucma.Core.TemperatureTask/AucamTemperatureMeasurementService.cs @@ -106,7 +106,7 @@ namespace Aucma.Core.TemperatureTask { InsertToCompleteAndCheck(query);//保存过点数据 //发送post 请求 - PostToMes(query); + ToMes(); Console.WriteLine($"【{DateTime.Now}】保存测温数据成功!保存数量:{query.Count}"); } @@ -170,8 +170,9 @@ namespace Aucma.Core.TemperatureTask /// /// /// - public bool PostToMes(List list) + public async Task ToMes() { + var list=await _temperatureHistoryServices.QueryAsync(); Console.WriteLine($"【{DateTime.Now}】开始向质检发送测温数据"); string address = Appsettings.app("Common", "TemperatureApiAddRess");//测温地址 Console.WriteLine($"【{DateTime.Now}】请求路径:{address}/report/qualityInspection/temperatureApi");