select * from 销量
where 1=1
${if(len('${comboCheckBox0}')==0,"",AND 产品 in ('${comboCheckBox0}')}
${if(len(comboCheckBox0)==0,"","AND 产品 in ('"+comboCheckBox0+"')")}
分割符也要改
看你下拉多选框怎么设置
按这个设置,就是
========================
按这个设置就是
${if(len(comboCheckBox0)==0,"","AND 产品 in ('"+replace(comboCheckBox0,",","','")+"')")}
and 产品 in('"+comboCheckBox0+"')
然后分隔符设置为 ','