and b.title in (select factory from fr_access_app where factory='${factory}') 这个语句的参数我怎么改才能用在下拉复选框呀
and b.title in (select factory from fr_access_app where factory in('${factory}'))
factory的分隔符再设置为
先去数据库查询这一段
select factory from fr_access_app where factory in('张三','李四')
改成这样就行了呀。。看你上面的语句这样就可以了。
and b.title in ('${factory}')
select factory from fr_access_app where factory in '(${factory})'
返回值字符串,分隔符','