finereport决策系统导出目录列表

请问决策系统可以直接导出吗,还是要再后台数据库导出,有对应的sql吗

FineReport 九日 发布于 2024-2-19 09:01
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共3回答
最佳回答
0
snrtuemcLv8专家互助
发布于2024-2-19 09:02(编辑于 2024-2-19 09:10)

这个不支持直接导出

可以去后台sql查询下

对应sql参考

查询报表目录

select id1,id2,id3,id4,concat(lv1, '/', lv2,  concat( '/', lv3 ), concat( '/', lv4 )) as dictory ,lv1 ,lv2 ,lv3 ,lv4 ,paths from

(select a.id as id1,b.id as id2,c.id as id3,d.id as id4,a.displayName as lv1 ,b.displayName as lv2 ,c.displayName as lv3 ,d.displayName as lv4 ,ifnull( ifnull( b.path, c.path ), d.path ) as paths from fine_authority_object a

left join fine_authority_object b on a.id = b.parentId

left join fine_authority_object c on b.id = c.parentId

left join fine_authority_object d on c.id = d.parentId

where a.parentid = 'decision-directory-root'

order by a.sortIndex ) a

=========

image.png

=========

或者

权限导出插件-https://help.fanruan.com/finereport/doc-view-3508.html

image.png

  • 九日 九日(提问者) ifnull有报错,is not a recognized built-in function name a.parentid也不存在
    2024-02-19 09:07 
  • snrtuemc snrtuemc 回复 九日(提问者) 这个是sql是自带finedb数据库,要简单,可以直接权限导出插件,看修改答案
    2024-02-19 09:10 
最佳回答
1
jenniferjunLv4初级互助
发布于2024-2-19 09:30

select 

a.displayName,

    REPLACE(group_concat(b.displayName separator '-'),'Dec-Entry_Management-','') film_star -- 拿到的值用逗号拼接起来

from (

SELECT

    distinct fi.id, -- 可以关联的列id

fi.displayName,

    substring_index( substring_index( CONCAT(fi.fullPath,"-_-" ,fi.id), '-_-', b.help_topic_id + 1 ), '-_-', - 1 ) film_star  -- 被拆分的列

FROM

    fine_authority_object fi

    JOIN mysql.help_topic b ON b.help_topic_id < ( 

        length( CONCAT(fi.fullPath,"-_-" ,fi.id) ) - length( REPLACE ( CONCAT(fi.fullPath,"-_-" ,fi.id), '-_-', '' )) + 3 

    ) 

WHERE  fi.expandType=102

) a 

left join fine_authority_object b on a.film_star = b.id

group by a.id,a.displayName -- 按id分组

1708306187407.png

  • 虎虎生威呀 虎虎生威呀 谢谢!有点难,我正好不会写。
    2024-06-18 09:29 
最佳回答
0
用户k6280494Lv6资深互助
发布于2024-2-19 09:02
  • 九日 九日(提问者) 导出目录列表名,类似excel那种,不要实际报表资源
    2024-02-19 09:11 
  • 3关注人数
  • 170浏览人数
  • 最后回答于:2024-2-19 09:30
    请选择关闭问题的原因
    确定 取消
    返回顶部