大佬们,报表做了复选框多选查询,返回值类型选的字符串,分隔符是逗号,然后报错:错误代码:11300001 数据集配置错误“(研发中心,研发部,电气软件部,设计部)”附近有语法错误。
数据集里的sql是这么写的:{if(len(comboCheckBox_department_name)==0,"","AND SUBSTRING(SUBSTRING(TR.EmployeeName, CHARINDEX('-', TR.EmployeeName) + 1, LEN(TR.EmployeeName)),1,CHARINDEX('-',SUBSTRING(TR.EmployeeName, CHARINDEX('-', TR.EmployeeName) + 1, LEN(TR.EmployeeName)))-0.5) in'"+'('+comboCheckBox_department_name+')'+"'")}
in后面正常应该是("xxx","xxx","xxx","xxx"),现在变成了"(xxx,xxx,xxx)"这种形式了,怎么修改