SQL("fr","SELECT * FROM 表1 where 填报单位='${GETUSERDEPARTMENTS()}'")
参考写法,根据需求自行扩展;GETUSERDEPARTMENTS()函数注意在决策平台下使用!
——————————
=SQL("fr","SELECT * FROM 表1 where 填报单位='"+${GETUSERDEPARTMENTS()}+"'",1,1)
SQL函数-https://help.fanruan.com/finereport/doc-view-846.html