bug
许鹏程
2024-08-28 241e351dcb4b5aa33dde2c05b711b7f2066f3be8
src/main/java/com/product/file/controller/DocumentController.java
@@ -58,6 +58,7 @@
            String uuids = service.addDocument(fse);
            return OK_Add(uuids);
        } catch (BaseException e) {
         e.printStackTrace();
            SpringMVCContextHolder.getSystemLogger().error(e);
            return this.error(e);
        } catch (Exception e) {
@@ -373,6 +374,7 @@
    /**
     *    文档收藏
    *
     * @param request
     * @return
     */
@@ -391,8 +393,10 @@
            return this.error(DocumentCode.DOCUMENT_COLLECTION_FAIL.getValue(), DocumentCode.DOCUMENT_COLLECTION_FAIL.getText() + e.getMessage());
        }
    }
    /**
     *    文档取消收藏
    *
     * @param request
     * @return
     */
@@ -417,6 +421,7 @@
    /**
     *    文档历史版本
    *
     * @param request
     * @return
     */
@@ -425,7 +430,7 @@
    public String findDocumentHistory(HttpServletRequest request) {
        try {
            //获取参数
            FieldSetEntity fse = BaseUtil.getFieldSetEntity(request, CmnConst.PRODUCT_OA_DOCUMENT_COLLECTION);
         FieldSetEntity fse = BaseUtil.getFieldSetEntity(request, CmnConst.PRODUCT_OA_DOCUMENT_HISTORY);
            return OK_List(documentService.findDocumentHistory(fse.getUUID()));
        } catch (BaseException e) {
           e.printStackTrace();
@@ -438,6 +443,7 @@
    /**
     *    文档最新版本保存
    *
     * @param request
     * @return
     */
@@ -446,7 +452,7 @@
    public String documentSaveNewVersion(HttpServletRequest request) {
        try {
            //获取参数
            FieldSetEntity fse = BaseUtil.getFieldSetEntity(request, CmnConst.PRODUCT_OA_DOCUMENT_COLLECTION);
         FieldSetEntity fse = BaseUtil.getFieldSetEntity(request, CmnConst.PRODUCT_OA_DOCUMENT);
            if (documentService.documentSaveNewVersion(fse)) {
            return OK();
         }
@@ -486,6 +492,7 @@
    /**
     * 文档申请保存与更新
    *
     * @param request
     * @return
     */
@@ -511,6 +518,7 @@
    /**
     * 借阅文档排名
    *
     * @return
     */
    @RequestMapping(value = "/getApplayFileSort/{version}", method = RequestMethod.POST)
@@ -523,6 +531,7 @@
    /**
     * 文档借阅人员排名
    *
     * @return
     */
    @RequestMapping(value = "/getApplayUserSort/{version}", method = RequestMethod.POST)
@@ -534,6 +543,7 @@
    /**
     * 获取借阅详情信息
    *
     * @param request
     */