两个值之间以','作为分隔符
${if(len(OPNAME) == 0,""," and OPNAME IN ('" + OPNAME +"')")}
在选择多个值的时候,生成执行SQL时,FR把参数默认值里的','变成了,(草莓,苹果)导致复选失效。可能是什么原因啊?
最直接,直接sql语句替换
${if(len(OPNAME) == 0,""," and OPNAME IN ('" + replace(OPNAME,",","','") +"')")}
这儿改一下