${if(len(replace(搜索框控件名,"'",""))=0, "",
" and (字段a like '%"+replace(搜索框控件名,"'","")+"%'
or 字段b like '%"+replace(搜索框控件名,"'","")+"%'
or 字段c like '%"+replace(搜索框控件名,"'","")+"%'
or 字段d like '%"+replace(搜索框控件名,"'","")+"%'
or 字段e like '%"+replace(搜索框控件名,"'","")+"%')")}
之前我经常这么写,搜索框模糊查询多字段,一个搜索框就可以,不需要做太多的控件,显得参数面板太拥挤,但是这个不走索引,大量数据查询慢