${if(len(cpname) == 0,"","and cpname like '"%name%")}
要实现模糊查询和空值查全部的需求,cpname like 后面不会写了,在线等。。
${if(len(cpname) == 0,"","and cpname like '%"+cpname+"%'")}
${if(len(cpname) == 0,"","and cpname like '%"name"%'")}
模糊查询