,为什么报错:
and ${if(len(p_lc)=0,"1=1","floor in ('"+p_lc+"')")} 参考这个改吧
你没写完啊
最后的if语句里,怎么没参数,留空了。当然报错啦
这里面很多例子
参考
参数为空查询全部 https://help.fanruan.com/finereport/doc-view-4455.html