怎么改这个参数sql,可以实现不选的时候显示全部,按照帮助文档的写我总在报错,and c.title in (select factory from fr_access_app where factory in ('${factory}'))
(select factory from fr_access_app where factory in ('${factory}'))
改成
(select factory from fr_access_app where 1=1
${if(len(factory)=0,"","and factory in('"+ factory+ "')")})
where 1=1 ${IF(LEN(factory)==0,""," AND factory in ('"+factory+")'"}