参考
${if(len(参数)=0,"","and (字段1 like '%"+参数+"%' or 字段1 like '%"+参数+"%')")}
==0的给个1=1
然后把那四个全部给括起来,把里面的and去掉放到外面
and(
${} or
)