SELECT * FROM ABC
where 1=1
${if(len(KK)=0,""," and (字段 like '"+replace(KK," ","' or 字段 like '")+"')")}
-- KK 传递参数值「A B」 -- 中间以空格分开,返回语句如下:
——————————————————————————

——————————————————————————————————————
更新版本:
SELECT * FROM ABC
where 1=1
${if(len(KK)=0,""," and (字段 like '%"+replace(KK," ","%' or 字段 like '%")+"%')")}
——————————
