支持的类似这样
${if(len(tname)==0,"","and tname like '"+tname+"%'")}
你这个提示是说数据太大了。查询超时了,你限制一下时间吧
类似这样限制时间
where todate(time)>='${start} 00:00:00'
and todate(time)<='${end} 23:59:59'