sql
WHERE 1=1 ${IF(LEN(控件名)==0,""," AND 字段 IN('"+控件名+"')")}
----------
case when then else end 改成
${if(len(b)==0,""," XXX字段")} as