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