例如统计年份,一共有6个年份,用户一次只可以选择两个年份去查看对应两个年份的数据
因为复选要用in,你们的分隔符号也要改
${if(len(参数名称)=0,"","and 表中的字段 in('"+ 参数名称 + "')")}
参考
JS限制复选框选中个数 https://help.fanruan.com/finereport/doc-view-1212.html