電站交叉分析: 曲線圖表Y軸加入風速的欄位
This commit is contained in:
parent
162338d3e9
commit
c78802b387
@ -168,6 +168,7 @@ namespace SolarPower.Controllers
|
||||
{ "EnvTemperature", "環境溫度計"},
|
||||
{ "Humidity", "濕度"},
|
||||
{ "Vane", "風速"},
|
||||
{ "WingDirection", "風向"},
|
||||
{ "Dust", "落塵%"},
|
||||
{ "OUTPUT_KWH", "輸出發電量(kWh)"},
|
||||
{ "INPUT_KWH", "輸入發電量(kWh)"},
|
||||
@ -588,6 +589,10 @@ namespace SolarPower.Controllers
|
||||
suffix = analysisDevice.MultipleYaxes["Humidity"];
|
||||
YaxesKey = "Humidity";
|
||||
break;
|
||||
case "WIN": //風向計
|
||||
suffix = analysisDevice.MultipleYaxes["WingDirection"];
|
||||
YaxesKey = "WingDirection";
|
||||
break;
|
||||
default:
|
||||
suffix = string.Empty;
|
||||
break;
|
||||
|
||||
@ -89,7 +89,7 @@ namespace SolarPower.Repository.Implement
|
||||
{
|
||||
try//tableName
|
||||
{
|
||||
var sql = $"SELECT * FROM {tableName} WHERE deleted = 0 AND id = @Id";
|
||||
var sql = $"SELECT * FROM {tableName} WHERE deleted = 0 AND Id = @id";
|
||||
|
||||
result = await conn.QueryFirstOrDefaultAsync<SensorDetail>(sql, new { Id = id });
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user