Merge branch 'master' of https://github.com/shanghohui-Company/SolarPower
This commit is contained in:
commit
c7651dcd56
@ -727,7 +727,9 @@ namespace SolarPower.Quartz.Jobs
|
|||||||
"EnvTemperature",
|
"EnvTemperature",
|
||||||
"Humidity",
|
"Humidity",
|
||||||
"Vane",
|
"Vane",
|
||||||
"Dust"
|
"Dust",
|
||||||
|
"WingDirection",
|
||||||
|
"IrrDay",
|
||||||
};
|
};
|
||||||
|
|
||||||
await powerStationRepository.AddSensorHistoryHour(sensorHistoriesHour, sensor_history_properties);
|
await powerStationRepository.AddSensorHistoryHour(sensorHistoriesHour, sensor_history_properties);
|
||||||
|
|||||||
@ -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