${if(len(region)=0," ","and t1.region = '"+region+"'")}${if(len(company)=0," ","and t1.company = '"+company+"'")}${if(len(company)=0 and len(region)=0 ," ","and coalesce(t1.region,'')='""' and coalesce(t1.company,'') = '""' ")}问题在第三个if条件这里,题主本意是想 company 和region 都为空的时候,sql应该显示成 and coalesce(t1.region,'') = '' and coalesce(t1.company,'') = ''放到第三个条件语句里面,我应该加转义字符吗?