|
打开部门文件柜的时候报错。具体sql语句如下:
select distinct '' as orgID, a.sName as orgName,a.sSequence, a.sFID as orgFID, c.fDocNodeID as cabinetNodeID,n.sID as nodeID from
(select o.sID,o.sName,o.sFID,o.sSequence from SA_OPOrg o
join (SELECT sFID FROM SA_OPOrg where sPersonID = '7EDFCD6F1625474291DAE0BAAFD0B8B9'
and sValidState = 1) p on p.sFID like o.sFid + '%'
and (o.sOrgKindID = 'ogn' or o.sOrgKindID = 'dpt')) a
left join AP_FileCabinet c on a.sFID = c.FORGFID and c.fType = 'dept' left join SA_DocNode n on n.sID = c.fDocNodeID
主要是最后两句话,AP_FileCabinet 这张表里没有数据,但是这张表不是手动录入的,个人文件柜的时候是打开页面的时候就会插入一条数据。所以部门文件柜也应该是打开页面就插入数据,但是表里没有关于部门的数据。所以想请教一下怎么解决这个问题。
|
|