propList是下拉复选框,我想再加一个如果propList全选了那么就为空,len(propList)=0那么为空,全选了也为空,否则再加后面这个and条件
"+if(len(propList)=0,""," and d.cinvname in ('"+replace(propList,",","','")+"')")+"
参考文件
全选.rar
把过滤改成这样测试一下:
${if(len(propList)=0 || count(split(propList,','))=sql("数据库名称","select count( distinct cinvname) from 表名",1),""," and d.cinvname in ('"+replace(propList,",","','")+"')")}