This commit is contained in:
沈健
2024-08-14 18:08:10 +08:00
parent eb0e37884b
commit 7e60e06c3f
+2 -2
View File
@@ -18,8 +18,8 @@ log.info(f"系统当前时间 : {now}")
def proc():
# 区域维度,统计2个月内样本数据量
es206_client = ElasticSearchClient(host='192.168.0.206')
sql = 'select city,region,p_date,cat,root from seawater where cat = \'sell\' and p_date >=' + str(
last_day) + ' and p_date<' + str(now_day)
sql = 'select city,region,p_date,cat,root from seawater where cat = \'sell\' and p_date >=' + str(last_day) + ' and p_date<' + str(now_day)
log.info(f"城市区域维度 sql : {sql}")
df = es206_client.scan_by_sql_to_data_frame(sql)