and t.update_time <=
to_date('${endtime}', 'yyyy/mm/dd hh24:mi:ss')
改为可选可不选
${IF(LEN(endtime)=0,""," AND t.update<= to_date('"+endtime+"','yyyy-mm-dd hh24:mi:ss') ")}
参考参数为空查询全部
https://help.finereport.com/doc-view-2394.html
选的时候就根据时间控件过滤,不选就不根据它过滤
${if(len(endtime)=0,"","and t.update_time <= to_date(endtime, 'yyyy/mm/dd hh24:mi:ss')")}
修改sql语句 and ( '${endtime}'='' or t.update_time <=
to_date('${endtime}', 'yyyy/mm/dd hh24:mi:ss') )