求大神:
fr_authority 有多个角色,sql应该如何写?
SELECT
*
FROM dbo.[REP_ARTOT]
where 1=1
and BAREA in ('"+concatenate(fr_authority,"")+"'),这个没能实现,是不是哪写错了?
and BAREA in (''||replace('${fr_authority}',',',''',''')||'')
顺便补充下参数应用
权限细粒度之参数控制-http://help.finereport.com/doc-view-865.html
是不是要 ${}这样写。
BAREA in ('${fr_authority}')
SELECT * FROM dbo.[REP_ARTOT] where 1=1 and BAREA in ('${replace(fr_authority,",","','")}')