18756
2024-08-23 8e8b26ea3b7306fca701fac934e26300b9043fd1
文档列表优化8.23
已修改3个文件
24 ■■■■ 文件已修改
src/main/java/com/product/file/controller/DocumentConstoller.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/file/service/DocumentService.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/file/service/ide/IDocumentService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/file/controller/DocumentConstoller.java
@@ -387,7 +387,21 @@
    @RequestMapping(value = "/getApplyDocument/{version}", method = RequestMethod.POST)
    @ApiVersion(1)
    public String getApplyDocument(HttpServletRequest request){
        DataTableEntity applyDocument = documentService.getApplyDocument();
        //获取参数
        FieldSetEntity fse = null;
        Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
        if (bean != null) {
            RequestParameterEntity reqp = (RequestParameterEntity) bean;
            fse = reqp.getFormData();
        }
        //判断参数是否为空
        if (fse == null) {
            SpringMVCContextHolder
                    .getSystemLogger().error(DocumentCode.DOCUMENT_FORM_NODATA.getValue(), DocumentCode.DOCUMENT_FORM_NODATA.getText());
            return this.error(DocumentCode.DOCUMENT_FORM_NODATA.getValue(), DocumentCode.DOCUMENT_FORM_NODATA.getText());
        }
        DataTableEntity applyDocument = documentService.getApplyDocument(fse);
        return OK_List(applyDocument);
    }
src/main/java/com/product/file/service/DocumentService.java
@@ -471,9 +471,11 @@
    }
    @Override
    public DataTableEntity getApplyDocument() throws BaseException {
    public DataTableEntity getApplyDocument(FieldSetEntity fse) throws BaseException {
        DataTableEntity product_oa_document = baseDao.listTable("product_oa_document");
        String document_name = fse.getString("document_name");
        String filter="file_name like '%"+document_name+"'%";
        DataTableEntity product_oa_document = baseDao.listTable("product_oa_document",filter);
        return product_oa_document;
    }
src/main/java/com/product/file/service/ide/IDocumentService.java
@@ -122,7 +122,7 @@
   * @return
   * @throws BaseException
   */
  DataTableEntity getApplyDocument() throws BaseException;
  DataTableEntity getApplyDocument(FieldSetEntity fse) throws BaseException;
  /**
   * 更新添加借阅申请