From d409e18845c5eb2e034763ae99125e70d0a311ce Mon Sep 17 00:00:00 2001 From: keke Date: Tue, 29 Aug 2023 15:09:10 +0800 Subject: [PATCH] =?UTF-8?q?[FE=20API]=20=E4=BF=AE=E6=94=B9=E6=99=82?= =?UTF-8?q?=E9=96=93=E6=88=B3=E8=A1=A8=E7=A4=BA=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontendWebApi/ApiControllers/HydroMeterController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FrontendWebApi/ApiControllers/HydroMeterController.cs b/FrontendWebApi/ApiControllers/HydroMeterController.cs index 8aab0b3..902cd2d 100644 --- a/FrontendWebApi/ApiControllers/HydroMeterController.cs +++ b/FrontendWebApi/ApiControllers/HydroMeterController.cs @@ -1057,9 +1057,9 @@ namespace FrontendWebApi.ApiControllers return Ok(apiResult); } - string header_now = start_year + "_" + start_month; - string header_lastM = start_year + "_" + last_month; - string header_lastY = last_year + "_" + start_month; + string header_now = start_year + "-" + start_month; + string header_lastM = start_year + "-" + last_month; + string header_lastY = last_year + "-" + start_month; var sql = $@" select e.full_name building_name, a.device_number, '{header_now}' searchMT, ifnull(b.kwh_sum, 0) searchM, '{header_lastM}' lastMT, ifnull(c.kwh_sum, 0) lastM, '{header_lastY}' lastYT, ifnull(d.kwh_sum, 0) lastY