From 20b606a0dd7fbfc93ac7b9a2513e8509112e2dca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=81=A5?= Date: Thu, 5 Jun 2025 17:47:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/company/company/bd2gaode.py | 2 +- dags/company/company/fill_company_comm.py | 2 +- dags/company/company/fill_company_dev.py | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 dags/company/company/fill_company_dev.py diff --git a/dags/company/company/bd2gaode.py b/dags/company/company/bd2gaode.py index dc59c9b..1434b3e 100644 --- a/dags/company/company/bd2gaode.py +++ b/dags/company/company/bd2gaode.py @@ -1,3 +1,3 @@ """ -第一步: 将百度经纬度转为高德经纬度(只需跑批一次即可) +第一步: 将百度经纬度转为高德经纬度(只需跑批一次即可) TODO """ \ No newline at end of file diff --git a/dags/company/company/fill_company_comm.py b/dags/company/company/fill_company_comm.py index ff83e20..ddd407f 100644 --- a/dags/company/company/fill_company_comm.py +++ b/dags/company/company/fill_company_comm.py @@ -28,7 +28,7 @@ def sync(province): if 'district' in source and (source['district'] != item['area_name']): errors.append(source) continue - if ('registered_address' not in source) or ('company_name' not in source): + if ('registered_address' not in source) or ('company_name' not in source) or ('district' not in source) or ('city' not in source): continue doc_info = {'province': source['province'], 'city': source['city'], 'district': source['district'], 'company_name': source['company_name'], 'registered_address': source['registered_address'], diff --git a/dags/company/company/fill_company_dev.py b/dags/company/company/fill_company_dev.py new file mode 100644 index 0000000..6d6b691 --- /dev/null +++ b/dags/company/company/fill_company_dev.py @@ -0,0 +1,3 @@ +""" +通过开发区围栏更新企业开发区 TODO +""" \ No newline at end of file