Hackpads are smart collaborative documents. Join Hackpad Now.
829 days ago
Unfiled. Edited by che wei liu 829 days ago
「未來,一直來一直來,不管好的壞的,它都一直來。」 - 電影《天馬茶房》
1512 days ago
Unfiled. Edited by John Lin 1512 days ago
產品規劃 | Product Planning
1756 days ago
1781 days ago
2 / 2
Unfiled. Edited by ANDY S 1781 days ago
選舉黃頁基本上是由兩棵 MPTT 樹狀結構所組成, areas 為行政區、 elections 為選舉區,這樣子切割的原因是部份選舉區跟行政區需要額外對應,像是個別議員選區經常會對應到一個以上的行政區,因此切開來處理。 透過 api 取得的資料都會有 rght 與 lft 用在 MPTT 索引的欄位,只要 rght - lft = 1 就表示該節點為樹葉 (leaf node) ,它不會有下一層。

Stop sharing the collection with ?

This pad is open to "", so will still be able to access it.
Cancel
Feed

Contact Support



Please check out our How-to Guide and FAQ first to see if your question is already answered! :)

If you have a feature request, please add it to this pad. Thanks!


Log in / Sign up