改成这样,where 后面的加上1=1
where 1=1
xxxxx
where 后面少 1=1
每个语句前面,加and
========================
${if(h2==1,"and t.yznr is not null","")}
${if(h2==2,"and t.yznr is null","")}
https://help.fanruan.com/finereport/doc-view-2394.html?source=1
下拉框参数为空选择全部值
https://help.fanruan.com/finereport/doc-view-2395.html
下拉复选框参数为空选择全部
WHERE 1=1 ${IF(H2==1," AND T.XXXXX","")} ${IF(H2==0," AND xxxx")}....