这个条件改成
len(wd)=2
${if(count(SPLIT(wd,","))=2,"","")}
where ${ if(len(wd)=0,"",
if( wd=="1","x.prov_id in('"+prov_id+"')"
,if(wd="2","x.dept_id in('"+dept_id+"')",
" x. dept_id in('"+ dept_id+"') and x. prov_id in('"+prov_id+"')")))}