你的空是null还是假空,就是空白?在数据库显示的是什么?
null这种很特殊。。。你这种复选的时候。想把这种选择进来。。建议还是在数据查询的时候先处理一下吧
select t.* from (
/*先把null处理为一种字符*/
select case when state is null then 3 else state end as state from table_cs
) t
where 1=1
${if(len(zt) == 0,"","and t.STATE in ('" + zt + "')")}