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