收文登记慢,分了两个。
1、点击流转慢,大约11秒,3条记录
select FGUID from TORGSYSTEM where FGUID IN (SELECT b.FGUID FROM TORGSYSTEM b, TORGSYSTEM a where a.FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE (FDEPT = 'O100O001') and (FPOSITION = '' or FPOSITION is null) and (FPERSON = '' or FPERSON is null))) AND ((( (b.FPATH LIKE a.FPATH || a.FID || a.FKIND || '\%') OR ((a.FKIND = '.PTN') AND ((b.FID = a.FID AND b.FKIND = '.PTM') OR (b.FPATH || b.FID || b.FKIND LIKE '%\' || a.FID || '.PTM' || '\%'))) ) OR ( a.FPATH || a.FID || a.FKIND = b.FPATH || b.FID || b.FKIND )))) AND FGUID IN (SELECT b.FGUID FROM TORGSYSTEM b, TORGSYSTEM a where a.FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE (FGUID in (select FGUID from TORGINDEX where UPPER(FID) = 'ORGUNIT.FUNCREF' and UPPER(FVALUE) = '\OPERATION\CR15OA\CR15OA_RECEIVEDOC_NB.FUNC'))) AND b.FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE ( (UPPER(FFILENAME) LIKE '%.PSM') )) AND ((( (b.FPATH LIKE a.FPATH || a.FID || a.FKIND || '\%') OR ((a.FKIND = '.PTN') AND ((b.FID = a.FID AND b.FKIND = '.PTM') OR (b.FPATH || b.FID || b.FKIND LIKE '%\' || a.FID || '.PTM' || '\%'))) ) OR ( a.FPATH || a.FID || a.FKIND = b.FPATH || b.FID || b.FKIND )))) and FDELETELEVEL = 0
2、在流转框里点添加执行人 按钮,这个更离谱61秒,5条记录
select FGUID from TORGSYSTEM where FGUID IN (SELECT b.FGUID FROM TORGSYSTEM b, TORGSYSTEM a where a.FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE (FDEPT = 'O100O001') and (FPOSITION = '' or FPOSITION is null) and (FPERSON = '' or FPERSON is null))) AND ((( (b.FPATH LIKE a.FPATH || a.FID || a.FKIND || '\%') OR ((a.FKIND = '.PTN') AND ((b.FID = a.FID AND b.FKIND = '.PTM') OR (b.FPATH || b.FID || b.FKIND LIKE '%\' || a.FID || '.PTM' || '\%'))) ) OR ( a.FPATH || a.FID || a.FKIND = b.FPATH || b.FID || b.FKIND )))) AND FGUID IN (SELECT b.FGUID FROM TORGSYSTEM b, TORGSYSTEM a where a.FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE (FGUID in (select FGUID from TORGINDEX where UPPER(FID) = 'ORGUNIT.FUNCREF' and UPPER(FVALUE) = '\OPERATION\CR15OA\CR15OA_RECEIVEDOC_BMCB.FUNC'))) AND b.FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE ( (UPPER(FFILENAME) LIKE '%.PSM') )) AND ((( (b.FPATH LIKE a.FPATH || a.FID || a.FKIND || '\%') OR ((a.FKIND = '.PTN') AND ((b.FID = a.FID AND b.FKIND = '.PTM') OR (b.FPATH || b.FID || b.FKIND LIKE '%\' || a.FID || '.PTM' || '\%'))) ) OR ( a.FPATH || a.FID || a.FKIND = b.FPATH || b.FID || b.FKIND )))) and FDELETELEVEL = 0 |