现在有个查询,筛选框采用的下拉树,在数据集里是这么写的:
${if(len(zSerstd)==0,""," AND ditm.zserstd_0 IN ("+"'"+treelayer(zSerstd,true,"\',\'")+"'"+")")}
下拉树不能采用这个文档里的写法Oracle多值查询参数个数限制https://help.fanruan.com/finereport10.0/doc-view-2066.html
大伙有办法么
${if(len(zSerstd)==0,""," AND (ditm.zserstd_0 ='"+treelayer(zSerstd,true,"\' or ditm.zserstd_0 =\'")+"')")}
原理一样的
自己维护一个表,做数据关联吧。这种写1000多个in的有什么效率可言
一样的可以
${if(len(zSerstd)==0,""," AND ("+C2+")"}