本帖最后由 sbeg571 于 2015-11-19 15:00 编辑
用bi制作报表,用管理员工号登录可以看到数据,改用其他人工号登录就没数据,服务器数据集已经同步,业务包权限和条件也设置了,前几个包可以正常使用,不同用户登陆只能看到本用户下的数据,但这个不知道为什么不行。求大神帮忙,我的操作步骤,已同步服务器数据集,业务包权限已设置,根据业务包制作报表,用管理员登陆可以看到数据,但用其他用户登陆时不能看到数据,但可以看到业务包中的数据表,已更新BI的JAVA包
下面是我操作的详细信息
先是SQL:
SELECT gdrdtl.gdr,
salrcd.gdsid,
salrcd.dptid,
sum(salrcd.qty) as sqty,
sum(salrcd.sttamt) as samt,
CONVERT(DATETIME, STUFF(STUFF(STUFF(salrcd.trddtm, 9, 0, ' '), 12, 0, ':'), 15, 0, ':')) as time
(select gdsdes from gds where gds.gdsid=salrcd.gdsid) as gdsdes,
(select spc from gds where gds.gdsid=salrcd.gdsid) as spc,
(select unit from gds where gds.gdsid=salrcd.gdsid) as bsepkg,
(select mfcfct from gds where gds.gdsid=salrcd.gdsid) as mftfct,
(select empdes from emp where emp.empid=gdrdtl.gdr ) as empdes
FROM gdrdtl,salrcd
WHERE ( salrcd.scd = gdrdtl.scd ) and
( salrcd.rcdidx= gdrdtl.rcdidx ) and
(salrcd.trddtm>'20151119000000') and
(salrcd.gdsid in ('21337','00547','21097'))
group by gdrdtl.gdr, salrcd.gdsid, salrd.dptid, salrcd.trddtm
原始表:
salrcd:
30752
gdrdtl:
:30749
gds: 30753
emp: 30754