用了动态显示控件文档的js做出效果但是后面的筛选条件可能填一个,可能填多选,也就是每种类型里面的参数都要用参数为空选全部来定义参数但是我这种方法出错了,sql:那么该怎么做${if(len(type) == 0,"",
if(type=="客户",if(len(code) == 0,"","and iea_project_id = '" + code + "'")
if(len(name) == 0,"","and iea_text_number = '" + name + "'")
if(len(clients) == 0,"","and iea_clients_name = '" + clients + "'")
if(len(start) == 0,"","and left(iea_start_operating_time,10) = '" + start + "'"),
if(type=="运营",if(len(org) == 0,"","and iea_iea_organization = '" + org + "'")
if(len(first) == 0,"","and iea_firstlevel_department = '" + first + "'")
if(len(second) == 0,"","and iea_secondlevel_department = '" + second + "'")type不是字段,只是这个【动态显示参数控件】文档里沿用的参数