|
|
@ -106,7 +106,7 @@ namespace Aucma.Core.TemperatureTask
|
|
|
|
{
|
|
|
|
{
|
|
|
|
InsertToCompleteAndCheck(query);//保存过点数据
|
|
|
|
InsertToCompleteAndCheck(query);//保存过点数据
|
|
|
|
//发送post 请求
|
|
|
|
//发送post 请求
|
|
|
|
PostToMes(query);
|
|
|
|
ToMes();
|
|
|
|
|
|
|
|
|
|
|
|
Console.WriteLine($"【{DateTime.Now}】保存测温数据成功!保存数量:{query.Count}");
|
|
|
|
Console.WriteLine($"【{DateTime.Now}】保存测温数据成功!保存数量:{query.Count}");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -170,8 +170,9 @@ namespace Aucma.Core.TemperatureTask
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="list"></param>
|
|
|
|
/// <param name="list"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool PostToMes(List<TemperatureHistory> list)
|
|
|
|
public async Task<bool> ToMes()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
var list=await _temperatureHistoryServices.QueryAsync();
|
|
|
|
Console.WriteLine($"【{DateTime.Now}】开始向质检发送测温数据");
|
|
|
|
Console.WriteLine($"【{DateTime.Now}】开始向质检发送测温数据");
|
|
|
|
string address = Appsettings.app("Common", "TemperatureApiAddRess");//测温地址
|
|
|
|
string address = Appsettings.app("Common", "TemperatureApiAddRess");//测温地址
|
|
|
|
Console.WriteLine($"【{DateTime.Now}】请求路径:{address}/report/qualityInspection/temperatureApi");
|
|
|
|
Console.WriteLine($"【{DateTime.Now}】请求路径:{address}/report/qualityInspection/temperatureApi");
|
|
|
|