刚接触帆软不就,有些代码实在是看不懂呀,请各位大神解释一下啊

${IF(fr_authority="SUPERROLE" ||INARRAY("公司高层",fr_authority)>0,"","AND PARENTID IN (SELECT PARENTID FROM IMP_DEPARTMANAGER A LEFT JOIN IMP_ADMIN_DTL B ON A.DEPARTID=B.ADMINID WHERE A.MANAGERID='"+fr_username+"')")}

${if(fr_username="admin" || INARRAY("公司高层",fr_authority)>0,"","AND B.PERSONID IN (SELECT PERSONID FROM DIM_PERSON
WHERE INSTR(MANAGERSTR,(SELECT ','||ID||',' FROM DIM_PERSON WHERE PERSONID='"+fr_username+"'),1,1)>0
UNION ALL SELECT PERSONID FROM DIM_PERSON WHERE PERSONID='"+fr_username+"')")}
${IF(LEN(deptId)==0,"","AND A.ADMINIDTREE IN (SELECT DISTINCT T.ADMINIDTREE
FROM DIM_ADMIN T
WHERE DATAFROM='OA'--OA部门
AND ISCOMPANY='0'--部门
AND ISCANCELED = '0'--未取消
AND COMPANYID IN ('181', '381')
START WITH T.ADMINIDTREE IN ('"+deptId+"') CONNECT BY T.FADMINID=PRIOR T.ADMINID)")}

${IF(LEN(DEPT)==0,"","AND A .ADMINIDTREE IN ("+"'"+treelayer(DEPT,true,"\',\'")+"'"+")")}

这三段代码都有什么作用啊,还有("+"'"+treelayer(DEPT,true,"\',\'")+"'"+")")}这是什么意思呀

FineReportaasd 发布于 2017-1-6 16:35
回答问题
悬赏:0 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共2回答
最佳回答
0
touyuan001发布于2017-1-6 16:44(编辑于 2023-9-6 09:34)
555
最佳回答
0
Bernie任发布于2017-7-20 10:09(编辑于 2023-9-6 09:34)
555
  • 0关注人数
  • 742浏览人数
  • 最后回答于:2017-7-20 10:09
    活动推荐 更多
    热门课程 更多
    返回顶部