后面不用套todate函数了

='${year_code}'
类似这样,而且最好不要用函数为参数名称
='${month_code}'
建议直接用日期控件,录入一个5月整月的数据
报表日志 LogDB 数据库- FineReport帮助文档 - 全面的报表使用教程和学习资料


select * from fine_record_execute where todate(time)>='${ks}' and todate(time)<='${js}'
你的格式必须要是年月日,时分秒的格式!!
2025-05-20 00:00:00
2025-05-29 23:59:59

select * from fine_record_execute
where todate(time)>='${CONCATENATE(ks," 00:00:00")}'
and todate(time)<='${CONCATENATE(js," 23:59:59")}'
