From b0295ba003f2a706687d36831368249abdaace31 Mon Sep 17 00:00:00 2001 From: dev02 Date: Mon, 20 Nov 2023 12:37:28 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=BE=8C=E7=AB=AF]=20=E4=BF=AE=E6=94=B9api-ra?= =?UTF-8?q?in=E5=8F=83=E6=95=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BackendWorkerService/Quartz/Jobs/WeatherAPIJob.cs | 4 +++- .../Implement/NiagaraDataSynchronizeRepository.cs | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BackendWorkerService/Quartz/Jobs/WeatherAPIJob.cs b/BackendWorkerService/Quartz/Jobs/WeatherAPIJob.cs index 0a8bed1..7a82ac1 100644 --- a/BackendWorkerService/Quartz/Jobs/WeatherAPIJob.cs +++ b/BackendWorkerService/Quartz/Jobs/WeatherAPIJob.cs @@ -545,7 +545,9 @@ namespace BackendWorkerService.Quartz.Jobs } else { - if (Headline.Contains("大雨")) + if (Headline.Contains("解除")) + rint = 0; + else if (Headline.Contains("大雨")) { rint = 1; } diff --git a/Repository/BackendRepository/Implement/NiagaraDataSynchronizeRepository.cs b/Repository/BackendRepository/Implement/NiagaraDataSynchronizeRepository.cs index 5ce8b2e..674df09 100644 --- a/Repository/BackendRepository/Implement/NiagaraDataSynchronizeRepository.cs +++ b/Repository/BackendRepository/Implement/NiagaraDataSynchronizeRepository.cs @@ -781,8 +781,6 @@ namespace Repository.BackendRepository.Implement await KeepTimeLog("insert into device_item", stopwatchSection.ElapsedMilliseconds); #endregion - - //device有,niagara沒有,is_link 更新成 0 //sb.Append($@" SET SQL_SAFE_UPDATES = 0; // UPDATE device_item d LEFT JOIN import_niagara_item m