[後台] 後端修改building_menu 同步
後台排程測試
This commit is contained in:
parent
f4e4e40cf3
commit
7417f09d7d
@ -1,192 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<alert xmlns="urn:oasis:names:tc:emergency:cap:1.2">
|
|
||||||
|
|
||||||
<identifier>CWB-Weather_extremely-rain_202305081515001</identifier>
|
|
||||||
<sender>weather@cwb.gov.tw</sender>
|
|
||||||
<sent>2023-05-08T15:21:31+08:00</sent>
|
|
||||||
<status>Actual</status>
|
|
||||||
<msgType>Cancel</msgType>
|
|
||||||
<scope>Public</scope>
|
|
||||||
<references>weather@cwb.gov.tw,CWB-Weather_extremely-rain_202305081030001,2023-05-08T10:37:48+08:00 weather@cwb.gov.tw,CWB-Weather_extremely-rain_202305080840001,2023-05-08T08:51:11+08:00</references>
|
|
||||||
<info>
|
|
||||||
<language>zh-TW</language>
|
|
||||||
<category>Met</category>
|
|
||||||
<event>降雨</event>
|
|
||||||
<urgency>Past</urgency>
|
|
||||||
<severity>Minor</severity>
|
|
||||||
<certainty>Observed</certainty>
|
|
||||||
<eventCode>
|
|
||||||
<valueName>profile:CAP-TWP:Event:1.0</valueName>
|
|
||||||
<value>rainfall</value>
|
|
||||||
</eventCode>
|
|
||||||
<effective>2023-05-08T15:15:00+08:00</effective>
|
|
||||||
<onset>2023-05-08T15:17:00+08:00</onset>
|
|
||||||
<expires>2023-05-08T15:31:31+08:00</expires>
|
|
||||||
<senderName>中央氣象局</senderName>
|
|
||||||
<headline>解除大雨特報</headline>
|
|
||||||
<description>
|
|
||||||
由於降雨趨於緩和,發生大雨的機率降低,故解除大雨特報;今(8)日屏東及臺東山區仍有局部較大雨勢發生,請注意。
|
|
||||||
</description>
|
|
||||||
<instruction></instruction>
|
|
||||||
<web>https://www.cwb.gov.tw/V8/C/P/Warning/FIFOWS.html</web>
|
|
||||||
<parameter>
|
|
||||||
<valueName>alert_title</valueName>
|
|
||||||
<value>大雨特報</value>
|
|
||||||
</parameter>
|
|
||||||
|
|
||||||
<area>
|
|
||||||
<areaDesc>基隆市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10017</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>臺北市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>63</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>新北市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>65</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>桃園市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>68</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>新竹市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10018</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>新竹縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10004</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>苗栗縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10005</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>臺中市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>66</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>彰化縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10007</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>雲林縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10009</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>南投縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10008</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>嘉義縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10010</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>嘉義市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10020</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>臺南市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>67</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>高雄市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>64</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>屏東縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10013</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>宜蘭縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10002</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>花蓮縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10015</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>臺東縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10014</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>澎湖縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10016</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>金門縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>09020</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>連江縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>09007</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
</info>
|
|
||||||
</alert>
|
|
@ -1,197 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<alert xmlns="urn:oasis:names:tc:emergency:cap:1.2">
|
|
||||||
|
|
||||||
<identifier>CWB-Weather_typhoon-warning_202210162030001</identifier>
|
|
||||||
<sender>weather@cwb.gov.tw</sender>
|
|
||||||
<sent>2022-10-16T20:20:41+08:00</sent>
|
|
||||||
<status>Actual</status>
|
|
||||||
<msgType>Cancel</msgType>
|
|
||||||
<scope>Public</scope>
|
|
||||||
<references>weather@cwb.gov.tw,CWB-Weather_typhoon-warning_202210161730001,2022-10-16T17:20:00+08:00</references>
|
|
||||||
<info>
|
|
||||||
<language>zh-TW</language>
|
|
||||||
<category>Met</category>
|
|
||||||
<event>颱風</event>
|
|
||||||
<urgency>Past</urgency>
|
|
||||||
<severity>Minor</severity>
|
|
||||||
<certainty>Observed</certainty>
|
|
||||||
<eventCode>
|
|
||||||
<valueName>profile:CAP-TWP:Event:1.0</valueName>
|
|
||||||
<value>typhoon</value>
|
|
||||||
</eventCode>
|
|
||||||
<effective>2022-10-16T20:30:00+08:00</effective>
|
|
||||||
<onset>2022-10-16T20:30:00+08:00</onset>
|
|
||||||
<expires>2022-10-16T20:40:00+08:00</expires>
|
|
||||||
<senderName>中央氣象局</senderName>
|
|
||||||
<headline>解除颱風警報</headline>
|
|
||||||
<description>
|
|
||||||
[颱風動態]
|
|
||||||
根據最新資料顯示,第20號颱風已增強為中度颱風,中心目前在鵝鑾鼻西南方海面,向西南西移動,對巴士海峽近海的威脅已解除。
|
|
||||||
|
|
||||||
[注意事項]
|
|
||||||
*今(16日)晚至明(17)日巴士海峽及臺灣附近各海面風浪仍偏大,各沿海地區(含蘭嶼、綠島)及澎湖、金門、馬祖有長浪發生的機率,請避免前往海邊活動。*今(16日)晚雲林以北、恆春半島沿海空曠地區及澎湖、馬祖易有9至10級強陣風,東半部、嘉義、臺南沿海空曠地區及蘭嶼、綠島、金門亦有較強陣風;明(17)日臺南以北沿海空曠地區、蘭嶼、綠島、澎湖、金門、馬祖易有9至12級強陣風,東半部沿海地區及西半部地區有8至9級強陣風,路樹、懸掛物、招牌等物品宜加強固定,外出活動、機車騎士行車或行經高架橋車輛,請特別注意安全。*自15日0時至16日20時出現較大累積雨量如下:臺北市擎天崗989.0毫米,宜蘭縣樂水分校973.5毫米,新北市汐止579.5毫米,基隆市五堵578.0毫米,桃園市嘎拉賀555.0毫米,新竹縣西丘斯山478.0毫米,臺中市南湖圈谷394.5毫米,花蓮縣和平林道361.0毫米。*本警報單之颱風半徑為平均半徑,第20號颱風之7級風暴風半徑北半象限約220公里,南半象限約180公里,平均半徑約為200公里。颱風詳細特性請參考本局颱風輔助說明(https://www.cwb.gov.tw/Data/typhoon/TY_ PDF.pdf)。*此為第20號颱風警報最後一次報告。
|
|
||||||
|
|
||||||
</description>
|
|
||||||
<instruction></instruction>
|
|
||||||
<web>https://www.cwb.gov.tw/V8/C/P/Warning/FIFOWS.html</web>
|
|
||||||
<parameter>
|
|
||||||
<valueName>alert_title</valueName>
|
|
||||||
<value>颱風警報</value>
|
|
||||||
</parameter>
|
|
||||||
|
|
||||||
<area>
|
|
||||||
<areaDesc>基隆市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10017</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>臺北市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>63</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>新北市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>65</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>桃園市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>68</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>新竹市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10018</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>新竹縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10004</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>苗栗縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10005</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>臺中市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>66</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>彰化縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10007</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>雲林縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10009</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>南投縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10008</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>嘉義縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10010</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>嘉義市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10020</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>臺南市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>67</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>高雄市</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>64</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>屏東縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10013</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>宜蘭縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10002</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>花蓮縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10015</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>臺東縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10014</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>澎湖縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>10016</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>金門縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>09020</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
<area>
|
|
||||||
<areaDesc>連江縣</areaDesc>
|
|
||||||
<geocode>
|
|
||||||
<valueName>Taiwan_Geocode_103</valueName>
|
|
||||||
<value>09007</value>
|
|
||||||
</geocode>
|
|
||||||
</area>
|
|
||||||
</info>
|
|
||||||
</alert>
|
|
@ -589,10 +589,10 @@ namespace Repository.BackendRepository.Implement
|
|||||||
select device_building_tag, device_system_tag, device_name_tag
|
select device_building_tag, device_system_tag, device_name_tag
|
||||||
from import_niagara_tag
|
from import_niagara_tag
|
||||||
group by device_building_tag, device_system_tag, device_name_tag
|
group by device_building_tag, device_system_tag, device_name_tag
|
||||||
) AS a ON b.device_building_tag = a.device_building_tag
|
) AS a ON b.device_building_tag = a.building_tag
|
||||||
and a.device_system_tag = b.device_system_tag and a.device_name_tag = b.sub_system_tag
|
and a.device_system_tag = b.main_system_tag and a.device_name_tag = b.sub_system_tag
|
||||||
SET b.is_link = 0
|
SET b.is_link = 0
|
||||||
WHERE b.device_building_tag IS NULL");
|
WHERE b.building_tag IS NULL");
|
||||||
await conn.ExecuteAsync(sb.ToString());
|
await conn.ExecuteAsync(sb.ToString());
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
|
Loading…
Reference in New Issue
Block a user