${if(len(area) == 0,\"\",\"and 货主地区 = \'\" +area + \"\'\")} 问下这个如果用like,后面怎么拼接
${if(len(area) == 0,"","and 货主地区 like '%'||'" +area + "'||'%'")} 这样是可以的,用拼接字符
一样的啊
${if(len(area) == 0,"","and 货主地区 like'%" +area + "%'")}
${if(参数="", "", "and 数据库字段 like ('%"+replace(参数,"'","") +"%')")}