比如, and dept in ('${p3}')这个sql语句,我p3传的是GETUSERDEPARTMENTS()这个函数,但是这个函数出来是A,B这样一个部门值,但是sql里面查询是and dept in ('A','B')这样的才能查询出来结果,请问我应该如何修改呢?
and dept in ('${joinarray(p3,"','")}')
where 1=1 ${if(len(p3)=0,"","and dept in ('"+SUBSTITUTE(p3,",","','")+"')")}
或者改下面分隔符