${if(len(DEP) = 0,""," AND regexp_like(DEPT_FULL_PATH,'"+DEP+"')")}
和
${if(len(DEP) = 0,""," AND DEPT_FULL_PATH like '%"+DEP+"%'")}
都试过了 单选或者不选的时候都不报错 然后 多选就报错 应该怎么修改
dep是文本框的返回值,他存的是树形下拉框的截取值,内容是
TREELAYER($DEPC,TRUE,"\',\'")
你估计没有看到这里的设置
https://help.fanruan.com/finereport/doc-view-2499.html
----
用${if(len(DEP) = 0,""," AND regexp_like(DEPT_FULL_PATH,'"+DEP+"')")}
这个的话:
TREELAYER($DEPC,TRUE,"|")
用${if(len(DEP) = 0,""," AND DEPT_FULL_PATH like '%"+DEP+"%'")}
TREELAYER($DEPC,TRUE,"%' OR DEPT_FULL_PATH like '%")
而且要改成:${if(len(DEP) = 0,""," AND ( DEPT_FULL_PATH like '%"+DEP+"%')")}
直接使用 where 字段 like '%${控件名}%'
${if(len(DEP) = 0,""," AND (DEPT_FULL_PATH like '%"+DEP+"%')")} 用这个
同时分隔符 那边 写 %' or DEPT_FULL_PATH like '%