下拉复选框里选择1,或2,或者1和2都选的话,查询语句通过参数A来查询数据,没有选1或2的,查询语句通过参数B来查询数据
数据集用这个写法
select * from 表 where 1=1
${if(or(find("1",下拉复选空名)>0,find("2",下拉复选空名)>0)," and 字段='"+参数A+"'"," and 字段='"+参数B+"'")}
where 1=1 ${if(len(复选框控件)>0," and a='"+参数A+"'"," and a='"+参数B+"'")}