数据集参数,不选则全选。但是如果选择的话,单选可以,多选报错。这个数据集参数公式应该怎么改,我把 = 改成 in 不好使 select 客户,部门编号,部门,业务员,case when (AVG(期初)+sum(借-贷) >= 0) then (AVG(期初)+sum(借-贷)) else 0 end 借方余额,case when (AVG(期初)+sum(借-贷) < 0 ) then -(AVG(期初)+sum(借-贷)) else 0 end 贷方余额,账套 from ye where 客户 != '部门领用' and 客户 != '待查' ${if(len(公司) == 0,"","and 账套 = '" + 公司 + "'")} ${if(len(部门) == 0,"","and 部门编号 = '" + 部门 + "'")} ${if(len(客户) == 0,"","and 客户 = '" + 客户 + "'")} GROUP BY 客户,部门编号,部门,业务员,账套 |