使用复选框的参数组件,使用数据集参数进行筛选, 筛选语句为:where ${if(len(参数A)==0,"","and sp.fid in ('"+参数A+"')")},选择一个值时可以正常查询,选择多个时会报错。
设置分隔符
${if(len(参数) == 0,"","and 字段 in ('"+SUBSTITUTE(参数,",","','")+"')")}