Skip to content

Commit

Permalink
[2022-05-05] fix: một vài huyện đảo không có xã
Browse files Browse the repository at this point in the history
  • Loading branch information
manh-gntvn committed May 5, 2022
1 parent aecd509 commit 67d579e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions export.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ function readExcelFile($file)
'code' => $row['ma_px'],
'parent_code' => $current_quan_huyen_code
);
if (!$xa_phuong_data['code']) {
echo (" - Bỏ qua xác định xã: ${row['ten_quan_huyen_va_cap']}") . "\n";
continue;
}
$xa_phuong[$xa_phuong_data['code']] = $xa_phuong_data;
$current_xa_phuong_by_quan[$current_quan_huyen_code][$xa_phuong_data['code']] = $xa_phuong_data;

Expand Down

0 comments on commit 67d579e

Please sign in to comment.