泛微OA根據文檔的docid查詢文檔附件存放的路徑


注意看下面兩個鏈接
http://127.0.0.1/docs/docs/DocDspExt.jsp?id=40369
http://127.0.0.1/docs/docs/DocDsp.jsp?id=41353
DocDspExt.jsp地址的文檔才會把附件存放到/WEAVER/ecology/filesystem目錄下。
DocDsp.jsp地址的文檔是網頁形式的文檔,直接插入到數據庫,沒有附件存放到服務器目錄下,是查詢不到附件的存放路徑的。

例如下面這個鏈接中40369就是docid。把你要查詢的文檔的docid寫到現在查詢語句的docid處即可查詢,記住新建查詢來查詢。
http://127.0.0.1/docs/docs/DocDspExt.jsp?id=40369&versionId=41428&imagefileId=42306&from=&userCategory=0&isFromAccessory=true

SELECT
      imagefileid,
      imagefilename,
      imagefiletype,
      imagefile,
      imagefileused,
      filerealpath,
      iszip,
      isencrypt,
      fileSize,
      downloads,
      miniimgpath,
      imgsize,
      isFTP,
      FTPConfigId
FROM         ImageFile
WHERE     (imagefileid in
                          (SELECT     imagefileid
                            FROM         DocImageFile
                            WHERE     (docid = 40369))
                )

下面這個是DocImageFile表的查詢語句

SELECT
      id,
      docid,
      imagefileid,
      imagefilename,
      imagefiledesc,
      imagefilewidth,
      imagefileheight,
      imagefielsize,
      docfiletype,
      versionId,
      versionDetail,
      isextfile,
      hasUsedTemplet
FROM         DocImageFile
WHERE     (id = 41353)

下面這個是DocDetail表的查詢語句

SELECT
      id,
      maincategory,
      subcategory,
      seccategory,
      doctype,
      doclangurage,
      docapprovable,
      docreplyable,
      isreply,
      replydocid,
      docsubject,
      doccontent,
      docsharetype,
      shareroleid,
      docpublishtype,
      itemid,
      itemmaincategoryid,
      hrmresid,
      crmid,
      projectid,
      financeid,
      financerefenceid1,
      financerefenceid2,
      doccreaterid,
      docdepartmentid,
      doccreatedate,
      doccreatetime,
      doclastmoduserid,
      doclastmoddate,
      doclastmodtime,
      docapproveuserid,
      docapprovedate,
      docapprovetime,
      docarchiveuserid,
      docarchivedate,
      docarchivetime,
      docstatus,
      parentids,
      assetid,
      ownerid,
      keyword,
      accessorycount,
      replaydoccount,
      usertype,
      docno,
      cancopy,
      canremind,
      countMark,
      sumMark,
      sumReadCount,
      orderable,
      docExtendName,
      doccode,
      docedition,
      doceditionid,
      ishistory,
      maindoc,
      approvetype,
      readoptercanprint,
      docvaliduserid,
      docvaliddate,
      docvalidtime,
      docpubuserid,
      docpubdate,
      docpubtime,
      docreopenuserid,
      docreopendate,
      docreopentime,
      docinvaluserid,
      docinvaldate,
      docinvaltime,
      doccanceluserid,
      doccanceldate,
      doccanceltime,
      selectedpubmouldid,
      checkOutStatus,
      checkOutUserId,
      checkOutUserType,
      checkOutDate,
      checkOutTime,
      hasUsedTemplet,
      invalidationdate,
      docCreaterType,
      docLastModUserType,
      docApproveUserType,
      docValidUserType,
      docInvalUserType,
      docArchiveUserType,
      docCancelUserType,
      docPubUserType,
      docReopenUserType,
      ownerType,
      canPrintedNum,
      hasPrintedNum,
      approverequestid,
      fromworkflow,
      istop,
      topdate,
      toptime,
      topstartdate,
      topenddate,
      invalidRequestId
FROM         DocDetail
WHERE     (docsubject = '消防設備維護保養合同')


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM