新建finedb数据连接,参考文档:报表内置 HSQL 数据库 FineDB-https://help.fanruan.com/finereport/doc-view-1573.html
公式改为下面的:
10.0:SQL("finedb","select realName from fine_user where userName='"+$fine_username+"'",1,1)
9.0:SQL("finedb","select REALNAME from FR_T_USER where USERNAME='"+$fr_username+"'",1,1)