diff --git a/solarApp/Service/getStationSvc.cs b/solarApp/Service/getStationSvc.cs index 50a7f1e..fa4b003 100644 --- a/solarApp/Service/getStationSvc.cs +++ b/solarApp/Service/getStationSvc.cs @@ -93,10 +93,10 @@ namespace solarApp.Service { conn.Open(); string sql = @" select DATE_FORMAT(`TIMESTAMP`,'%Y-%m-%d %H') reportdate, siteid, round(KWH, 2) KWH, - round(TODAYKWH, 2) TODAYKWH, round(TOTALKWH, 2) TOTALKWH, - round(PR, 3) PR, round(KWHKWP, 3) KWHKWP, - round(money, 3) money, round(todaymoney, 3) todaymoney, round(totalmoney, 3) totalmoney, - round(carbon, 3) carbon, round(todayCarbon, 3) todayCarbon, round(totalCarbon, 3) totalCarbon + round(TODAYKWH, 2) TODAYKWH, round(TOTALKWH, 2) TOTALKWH, + round(PR, 3) PR, round(KWHKWP, 3) KWHKWP, + round(money, 3) money, round(todaymoney, 3) todaymoney, round(totalmoney, 3) totalmoney, + round(carbon, 3) carbon, round(todayCarbon, 3) todayCarbon, round(totalCarbon, 3) totalCarbon from power_station_history_hour where siteID = @siteID and left(`TIMESTAMP`, 10) = '" + reportDate + "' "; List ds = conn.Query(sql, new { siteID = siteID.Substring(0, 9) }).AsList();