From 623732d9ec020fb1398c9ad13d460a7078264e10 Mon Sep 17 00:00:00 2001 From: dev02 Date: Wed, 29 Nov 2023 15:40:35 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=BE=8C=E7=AB=AF]=20=E4=BF=AE=E6=94=B9api=20?= =?UTF-8?q?weather=E7=8D=B2=E5=8F=96=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontendWebApi/ApiControllers/BuildController.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/FrontendWebApi/ApiControllers/BuildController.cs b/FrontendWebApi/ApiControllers/BuildController.cs index 7c18521..230e870 100644 --- a/FrontendWebApi/ApiControllers/BuildController.cs +++ b/FrontendWebApi/ApiControllers/BuildController.cs @@ -60,13 +60,15 @@ namespace FrontendWebApi.ApiControllers ( SELECT w.get_value FROM api_weateher w - WHERE w.weather_type = 'T' AND @DateNow < w.start_time + WHERE w.weather_type = 'T' AND @DateNow >= w.start_time + order by created_at desc, id desc limit 1 ) AS Temp, ( SELECT w.get_value FROM api_weateher w - WHERE w.weather_type = 'RH' AND @DateNow < w.start_time + WHERE w.weather_type = 'RH' AND @DateNow >= w.start_time + order by created_at desc, id desc limit 1 ) AS RH ";