[RT.Core]
数据库process_flow_data更名为process_data_stat_per_run。 process_data_stat_per_run数据库的列c3h8更名为c2h4.
This commit is contained in:
parent
b0c5451a43
commit
3ec5fa4813
|
@ -139,12 +139,12 @@ namespace MECF.Framework.RT.Core.Managers.PDS
|
|||
{
|
||||
try
|
||||
{
|
||||
var sql = $"INSERT INTO process_flow_data " +
|
||||
$"(process_guid, module_name, recipe_name, wafer_guid, process_begin_time, process_end_time, h2, ar, pn2, hcl, sih4, c3h8, tcs, tma) " +
|
||||
var sql = $"INSERT INTO process_data_stat_per_run " +
|
||||
$"(process_guid, module_name, recipe_name, wafer_guid, process_begin_time, process_end_time, h2, ar, pn2, hcl, sih4, c2h4, tcs, tma, heater_power_consumption) " +
|
||||
$"VALUES " +
|
||||
$"('{runData.StatisticsUid:D}', '{Module}', '{runData.RecipeName}', '{runData.WaferId:D}', " +
|
||||
$"'{runData.StatisticsStart:yyyy/MM/dd HH:mm:ss.fff}', '{runData.StatisticsEnd:yyyy/MM/dd HH:mm:ss.fff}', " +
|
||||
$"{runData.H2}, {runData.Ar}, {runData.PN2}, {runData.HCL}, {runData.SiH4}, {runData.C2H4}, {runData.TCS}, {runData.TMA})";
|
||||
$"{runData.H2}, {runData.Ar}, {runData.PN2}, {runData.HCL}, {runData.SiH4}, {runData.C2H4}, {runData.TCS}, {runData.TMA}, {runData.HeaterPowerConsumption})";
|
||||
|
||||
QueryDataClient.Instance.Service.QueryData(sql);
|
||||
}
|
||||
|
@ -163,10 +163,10 @@ namespace MECF.Framework.RT.Core.Managers.PDS
|
|||
try
|
||||
{
|
||||
var sql =
|
||||
$"SELECT * FROM process_flow_data where module_name = '{Module}' " +
|
||||
$"SELECT * FROM process_data_stat_per_run where module_name = '{Module}' " +
|
||||
$" ORDER BY process_begin_time DESC LIMIT {limit}";
|
||||
var dt = QueryDataClient.Instance.Service.QueryData(sql);
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
if (dt is { Rows.Count: > 0 })
|
||||
{
|
||||
for (var i = 0; i < dt.Rows.Count; i++)
|
||||
{
|
||||
|
@ -183,7 +183,7 @@ namespace MECF.Framework.RT.Core.Managers.PDS
|
|||
var pn2 = double.Parse(row["pn2"].ToString());
|
||||
var hcl = double.Parse(row["hcl"].ToString());
|
||||
var sih4 = double.Parse(row["sih4"].ToString());
|
||||
var cxhx = double.Parse(row["c3h8"].ToString());
|
||||
var cxhx = double.Parse(row["c2h4"].ToString());
|
||||
var tcs = double.Parse(row["tcs"].ToString());
|
||||
var tma = double.Parse(row["tma"].ToString());
|
||||
var heaterPowerConsumption = double.Parse(row["heater_power_consumption"].ToString());
|
||||
|
@ -194,7 +194,7 @@ namespace MECF.Framework.RT.Core.Managers.PDS
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LOG.Error($"Unable to load process flow count history at row {i}, {ex.Message}", ex);
|
||||
LOG.Error($"Unable to load process data statistic history at row {i}, {ex.Message}", ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -202,7 +202,7 @@ namespace MECF.Framework.RT.Core.Managers.PDS
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LOG.Error($"Unable to load process flow count history, {ex.Message}", ex);
|
||||
LOG.Error($"Unable to load process data statistic history, {ex.Message}", ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue