where 1=1
${if(len(XXX)==0,"","and XXX ='" + XXX+ "'")}
查询条件为空时,会全部显示,如何在此基础上增加模糊查询;
请帮忙写出SQL
${if(len(XXX)==0,"","and XXX like '%" + XXX+ "%'")}