diff --git a/dags/business/business/community/estate_charge_complete.py b/dags/business/business/community/estate_charge_complete.py index 74ba860..014a2e9 100644 --- a/dags/business/business/community/estate_charge_complete.py +++ b/dags/business/business/community/estate_charge_complete.py @@ -248,11 +248,11 @@ def find_estate_charge(community, max_now): """ estate_charge = None if pd.isna(community['location']) or pd.isna(community['location']['lon']): - return estate_charge + return estate_charge, 5 location = [community['location']['lon'], community['location']['lat']] docs = find_nearest_by_location(community['city'], location) if len(docs) <= 0 or 'estate_charge' not in docs.columns: - return estate_charge + return estate_charge, 5 if 'estate_charge_fix' not in docs.columns: docs['estate_charge_fix'] = None # 用修正后的物业费补充 @@ -297,7 +297,7 @@ def deal_fill(community): def fill_estate_charge(city_now): log.info(f"{city_now}开始补充物业费....") - sql = "select id, city, region, name, estate_charge, estate_charge_fix, finish_building_date, estate_type, location from community_summary where city='" + city_now + "' and (estate_charge is null or estate_charge_flag=1)" + sql = "select id, city, region, name, estate_charge, estate_charge_fix, finish_building_date, estate_type, location from community_summary where city='" + city_now + "' and (estate_charge is null or estate_charge_flag=1) " community_summary_df = es206_client.scan_by_sql_to_data_frame(sql) community_summary_list = list()