diff --git a/dags/business/business/community/total_price_complete.py b/dags/business/business/community/total_price_complete.py index 1c75677..4e82951 100644 --- a/dags/business/business/community/total_price_complete.py +++ b/dags/business/business/community/total_price_complete.py @@ -113,11 +113,11 @@ def sync(city=None): sql += " and city='" + city + "'" community_df = es206_client.scan_by_sql_to_data_frame(sql) - community_factor_df = complete_by_area(community_df) - complete_by_build_year_area(community_factor_df) - complete_by_region_area(community_factor_df) - - save(community_factor_df) + if len(community_df) > 0: + community_factor_df = complete_by_area(community_df) + complete_by_build_year_area(community_factor_df) + complete_by_region_area(community_factor_df) + save(community_factor_df) log.info(f"完成补全户均总价信息至206 {index_name}")