下拉树如何把101本身也一起选中
sql里面这样写就行了。。
select * FROM 表名称
where 1=1
${if(len(jg)=0,"","and v_createorgid in ('"+SUBSTITUTE(jg,",","','")+"')")}
-----------不判断为空的-----------
and v_createorgid in ('${replace(jp,",","','")}')
select * FROM S订单 as 订单 where 货主地区 is not null ${if(len(地区)=0,"","and 货主城市 in ('"+SUBSTITUTE(地区,",","','")+"')")}
多选下拉树实现多值查询- FineReport帮助文档 - 全面的报表使用教程和学习资料 (fanruan.com)
where ${if(len(jgid) == 0,""," jgid in ('" + jg + "')")}