这个报错是因为在函数last_sale()中使用了变量start_date和end_date,但是这两个变量没有被定义。你需要在函数中定义这两个变量,或者在函数调用前将其定义并赋值。例如:

start_date = '2021-01-01' end_date = '2021-01-31' last_sale()

# 最新一单业绩out_text_sql_ssmd = select id 咨询师 组别 round业绩金额 as yeji提交时间from sales_performance_recordwhere 状态 = 1 and 咨询师 彭露order by id desclimit 1# 部门-组别department = select 工作台组别 dd_manager 端口

原文地址: https://www.cveoy.top/t/topic/fIul 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录