SELECT * FROM 订单 WHERE 1=1 ${if(len(area) == 0,"","and 货主地区 = '" + area + "'")}
或者:字段名='${参数控件名}'
参考:https://help.fanruan.com/finereport/doc-view-2394.html?source=4##5
可以看一下教程:
参数简介:https://help.fanruan.com/finereport/doc-view-155.html