帆软报表平台怎么获取登录人员的真实姓名
通过$fine_username查询帆软数据库获得真实姓名
FineDB 表结构-https://help.fanruan.com/finereport/doc-view-3151.html
[平台]HSQL数据连接-https://help.fanruan.com/finereport/doc-view-2574.html
9.0版本看这个
报表内置hsql数据库finedb-http://help.finereport.com/finereport9.0/doc-view-1573.html
公式:sql("finedb","select realname from PUBLIC.FR_T_USER where username='"+$fr_username+"'",1,1)
$fine_username
第一种:用户管理,有没有和你们自己的系统对接 同步用户到帆软,同步了的话信息在FR_T_USER这个表里,数据库是帆软自带的finedb,文档里有,然后用参数$fine_username写sql获取
第二种:如果没全部同步,你们登录帆软是不是用的统一的工号,是的话,可以用参数$fine_username写sql和你们自己系统的用户表做关联
没有直接的参数,
新建一张对应表关联上,或者找到 PUBLIC.FR_T_USER 这张存储用户信息的表,通过把
$fr_username传入,关联到对应人名
$fine_display_name