我写的:
${IF(len(COMP_TYPE) == 0,""," and a.COMP_TYPE in (SELECT COMP_TYPE_ID FROM csp_sheet_comp_type_cfg WHERE DEL_FLAG=0 AND IS_LEAF=0 and COMP_TYPE_ID in ('"+ COMP_TYPE +"'))")}
传入后报错
下拉树控件在11.0.7以前的版本是不能设置分隔符号的,那么你就不要去设置分隔符号了
直接在sql里面写语句
where 1=1
${if(len(cs)=0,"","and 表中字段 in ('"+SUBSTITUTE(cs,",","','")+"')")}
//上面加粗的部分改成你自己的字段与参数名称
COMP_TYPE
这个参数出现了多值,是不是这个参数不是参数面板上的下拉框,如果是下拉复选框,要设置一下分隔符:','
-------------
${if(len(braCom)=0,"","and bra.id_ in ("+SUBSTITUTE(braCom,",",",")+")")}