From 1aae1190d959f0d878780953bf2719bfcda58d0d Mon Sep 17 00:00:00 2001 From: "wanling040@gmail.com" Date: Sun, 14 Aug 2022 00:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B6=B2=E9=A0=81:=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E7=99=BC=E9=9B=BB=E9=87=8F=E7=9A=84=E5=8F=96=E5=80=BC=E6=99=82?= =?UTF-8?q?=E9=96=93=E5=B0=91=E6=B8=9B=E4=B8=80=E5=B0=8F=E6=99=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SolarPower/Quartz/Jobs/CalcPowerStationJob.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SolarPower/Quartz/Jobs/CalcPowerStationJob.cs b/SolarPower/Quartz/Jobs/CalcPowerStationJob.cs index cb480c1..a7d8118 100644 --- a/SolarPower/Quartz/Jobs/CalcPowerStationJob.cs +++ b/SolarPower/Quartz/Jobs/CalcPowerStationJob.cs @@ -269,7 +269,7 @@ namespace SolarPower.Quartz.Jobs #endregion #region 計算單一電站每小時發電量、發電金額等資料 for calcPowerStation - var dateTimeforPowerStation = DateTime.Now.ToString("yyyy-MM-dd");//取當天 + var dateTimeforPowerStation = DateTime.Now.AddHours(-1).ToString("yyyy-MM-dd");//取當天 logger.LogInformation("【CalcPowerStationJob】【開始取得電站[{0}]在{1}的每小時歷史資料 for calcPowerStation】", powerStation.Code, dateTimeforPowerStation); var history_for_powerStation = await powerStationRepository.GetPowerStationHistoryPerHourForPowerStation(dateTimeforPowerStation, full_table_name); if (history_for_powerStation == null)