This commit is contained in:
沈健
2025-06-05 17:28:57 +08:00
parent 49a387f9ed
commit f502d7f05e
+2 -2
View File
@@ -14,8 +14,8 @@ def sync(province):
company_ids = ids['_id'].to_list() company_ids = ids['_id'].to_list()
else: else:
company_ids = list() company_ids = list()
shape_df = DIDATA_DEV_ELASTIC_CLIENT.scan_by_sql_to_data_frame(f"select city_name, area_name, street_name, name, shape from community where province_name='{province}' ") shape_df = DIDATA_DEV_ELASTIC_CLIENT.scan_by_sql_to_data_frame(f"select city_name, area_name, street_name, name, shape from community where province_name='{province}'")
if len(shape_df) == 0: if len(shape_df) == 0 or len(shape_df[shape_df['shape']]) == 0:
log.info(f"{province}无围栏数据") log.info(f"{province}无围栏数据")
return return
actions = list() actions = list()