liuwf 10 months ago
commit ced09af030

@ -177,5 +177,10 @@ namespace Admin.Core.Model
/// </summary>
[SugarColumn(ColumnName = "SYNC_DATETIME")]
public DateTime SyncDate { get; set; }
/// <summary>
/// 是否同步给质检
/// </summary>
[SugarColumn(ColumnName = "ISFLAG")]
public int IsFlag { get; set; }
}
}

@ -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
/// </summary>
/// <param name="list"></param>
/// <returns></returns>
public bool PostToMes(List<TemperatureHistory> list)
public async Task<bool> ToMes()
{
var list=await _temperatureHistoryServices.QueryAsync();
Console.WriteLine($"【{DateTime.Now}】开始向质检发送测温数据");
string address = Appsettings.app("Common", "TemperatureApiAddRess");//测温地址
Console.WriteLine($"【{DateTime.Now}】请求路径:{address}/report/qualityInspection/temperatureApi");

Loading…
Cancel
Save