Merge branch 'master' of https://github.com/shanghohui-Company/SolarPower
This commit is contained in:
commit
75b72e4e2a
@ -796,7 +796,7 @@ namespace SolarPower.Quartz.Jobs
|
|||||||
procStationSvc siteSvc = new procStationSvc(Connection_string);
|
procStationSvc siteSvc = new procStationSvc(Connection_string);
|
||||||
foreach (var powerStation in powerStations)
|
foreach (var powerStation in powerStations)
|
||||||
{
|
{
|
||||||
|
start_date = DateTimeNow.AddDays(-1 * gobackDay);
|
||||||
for (; start_date <= end_date; start_date = start_date.AddDays(1))
|
for (; start_date <= end_date; start_date = start_date.AddDays(1))
|
||||||
{
|
{
|
||||||
var day_str = start_date.ToString("yyyy-MM-dd");
|
var day_str = start_date.ToString("yyyy-MM-dd");
|
||||||
|
|||||||
@ -119,7 +119,7 @@ namespace solarApp.Service
|
|||||||
#region 15 min
|
#region 15 min
|
||||||
string sql = @"
|
string sql = @"
|
||||||
INSERT INTO solar_master.inverter_history_15min( PowerStationId, TIMESTAMP, INVERTERID, KWH, TODAYKWH, KWHKWP)
|
INSERT INTO solar_master.inverter_history_15min( PowerStationId, TIMESTAMP, INVERTERID, KWH, TODAYKWH, KWHKWP)
|
||||||
select PowerStationId, reportdate, a.inverterid, KWH, TODAYKWH, (kwh/capacity) kwpkwp from
|
select PowerStationId, reportdate, a.inverterid, KWH, TODAYKWH, (kwh/(capacity/4)) kwpkwp from
|
||||||
(
|
(
|
||||||
select @PowerStationId PowerStationId, CONCAT(FROM_UNIXTIME(`TIMESTAMP`/1000,'%Y-%m-%d %H'), ':00:00')reportdate, inverterid,
|
select @PowerStationId PowerStationId, CONCAT(FROM_UNIXTIME(`TIMESTAMP`/1000,'%Y-%m-%d %H'), ':00:00')reportdate, inverterid,
|
||||||
(sum(WH)/1000) KWH, max(TODAYKWH) TODAYKWH
|
(sum(WH)/1000) KWH, max(TODAYKWH) TODAYKWH
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user