debug 重複計算 已刪除的 inv
This commit is contained in:
parent
5e184d050c
commit
42a2d95df6
@ -455,7 +455,8 @@ namespace solarApp.Service
|
|||||||
select DATE_FORMAT(a.TIMESTAMP, '%Y-%m-%d') AS reportDate, Irradiance
|
select DATE_FORMAT(a.TIMESTAMP, '%Y-%m-%d') AS reportDate, Irradiance
|
||||||
from sensor_history_day a
|
from sensor_history_day a
|
||||||
where powerstationID = @powerstationID and DATE_FORMAT(a.TIMESTAMP, '%Y-%m-%d') = @date1 and Irradiance <> 0 limit 1
|
where powerstationID = @powerstationID and DATE_FORMAT(a.TIMESTAMP, '%Y-%m-%d') = @date1 and Irradiance <> 0 limit 1
|
||||||
)irr on a.reportDate = irr.reportDate ;";
|
)irr on a.reportDate = irr.reportDate
|
||||||
|
where i.enabled = 1;";
|
||||||
// conn.Execute(sql, new { date1 = _date1, PowerStationID = _powerStationID });
|
// conn.Execute(sql, new { date1 = _date1, PowerStationID = _powerStationID });
|
||||||
MySqlCommand cmd = new MySqlCommand();
|
MySqlCommand cmd = new MySqlCommand();
|
||||||
cmd.Connection = conn;
|
cmd.Connection = conn;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user