電站交叉分析: 曲線圖表Y軸加入風速的欄位

This commit is contained in:
wanling040@gmail.com 2022-07-22 16:57:06 +08:00
parent 162338d3e9
commit c78802b387
2 changed files with 6 additions and 1 deletions

View File

@ -168,6 +168,7 @@ namespace SolarPower.Controllers
{ "EnvTemperature", "環境溫度計"}, { "EnvTemperature", "環境溫度計"},
{ "Humidity", "濕度"}, { "Humidity", "濕度"},
{ "Vane", "風速"}, { "Vane", "風速"},
{ "WingDirection", "風向"},
{ "Dust", "落塵%"}, { "Dust", "落塵%"},
{ "OUTPUT_KWH", "輸出發電量(kWh)"}, { "OUTPUT_KWH", "輸出發電量(kWh)"},
{ "INPUT_KWH", "輸入發電量(kWh)"}, { "INPUT_KWH", "輸入發電量(kWh)"},
@ -588,6 +589,10 @@ namespace SolarPower.Controllers
suffix = analysisDevice.MultipleYaxes["Humidity"]; suffix = analysisDevice.MultipleYaxes["Humidity"];
YaxesKey = "Humidity"; YaxesKey = "Humidity";
break; break;
case "WIN": //風向計
suffix = analysisDevice.MultipleYaxes["WingDirection"];
YaxesKey = "WingDirection";
break;
default: default:
suffix = string.Empty; suffix = string.Empty;
break; break;

View File

@ -89,7 +89,7 @@ namespace SolarPower.Repository.Implement
{ {
try//tableName 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 }); result = await conn.QueryFirstOrDefaultAsync<SensorDetail>(sql, new { Id = id });
} }