From 855fa4024d4cf8240273674d1ed6b22d7ff2a8f4 Mon Sep 17 00:00:00 2001 From: JiaHao Liu Date: Mon, 16 Aug 2021 12:04:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=9B=BB=E7=AB=99=20rowcount?= =?UTF-8?q?=20=E6=AA=A2=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- solarApp/Service/getStationSvc.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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();