select * from shengchan where 1=1
${ if(len(danwei)==0,"","and depart= '" + value("ds1",1,3)+ "'")}
这样在数据集写语句,为啥预览没数据,是不是格式不正确?
https://help.fanruan.com/finereport/doc-view-4244.html SQL中使用SQL函数这样写
Value函数- FineReport帮助文档 - 全面的报表使用教程和学习资料 找票画葫芦