你的传递的值什么格式
1,2,3
这个格式的话
zsjb
改下,改成
SUBSTITUTE(zsjb,",","','")
====
where 1=1
${if(len(zsjb)=0,""," and zsmc in ('"+SUBSTITUTE(zsjb,",","','")+"')")}
and前加一个空格试试看