diff --git a/dags/office/sell/base_price.py b/dags/office/sell/base_price.py index 8364afe..4dbccec 100644 --- a/dags/office/sell/base_price.py +++ b/dags/office/sell/base_price.py @@ -129,7 +129,7 @@ def calcByCity(city, year_month): 写字楼基准价 """ sql = "select * from latest_seawater where cat='office_sell' " - if pd.notna(city): + if pd.notna(city) and city != "": sql += "and city='" + city + "' " if pd.notna(year_month): last_year_month = dateutils.format_date(