finereport 数据里面的SQL,where 后面能写if判断的么?
可以。${if(xx==1,"A","B")}这样写
select * from 销量where 1=1${if(len(地区) == 0,"","and 地区 in ('" + 地区 + "')")}
像这样