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 ";