${if(len(company)==0,"","and t.company_id in ('" + company + "')")}
改成 in 就好
我这里还加入了复选框参数为空时,默认选全部的功能。
下图是返回值类型设置
一样的,${if(len(testYear)=0,""," and p.year='"+testYear+"'")},testYear是下拉控件对应的参数名
忘了改成in了,3楼正解。
下拉框参数联动-https://help.fanruan.com/finereport/doc-view-1284.html
参考
第五题.cpt