18756
2024-08-23 2d93efd310612e24b99c8a487102638cfa3fbadf
文档借阅功能8.23
已修改3个文件
22 ■■■■ 文件已修改
src/main/java/com/product/file/controller/DocumentController.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/file/service/DocumentService.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/file/service/ide/IDocumentService.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/file/controller/DocumentController.java
@@ -5,7 +5,6 @@
import com.alibaba.fastjson.JSONObject;
import com.product.core.config.CoreConst;
import com.product.core.controller.support.AbstractBaseController;
import com.product.core.dao.BaseDao;
import com.product.core.entity.DataTableEntity;
import com.product.core.entity.FieldSetEntity;
import com.product.core.entity.RequestParameterEntity;
@@ -25,7 +24,7 @@
import javax.servlet.http.HttpServletRequest;
import java.util.*;
import java.util.function.DoubleConsumer;
/**
 * Copyright LX-BASE
@@ -472,7 +471,7 @@
    @RequestMapping(value = "/getApplayFileSort/{version}", method = RequestMethod.POST)
    @ApiVersion(1)
    public String getApplayFileSort(){
        DataTableEntity applayFileSort = documentService.getApplayFileSort();
        DataTableEntity applayFileSort = documentService.getApplyFileSort();
        return  OK_List(applayFileSort);
    }
@@ -484,7 +483,7 @@
    @RequestMapping(value = "/getApplayUserSort/{version}", method = RequestMethod.POST)
    @ApiVersion(1)
    public String getApplayUserSort(){
        DataTableEntity applayFileSort = documentService.getApplayUserSort();
        DataTableEntity applayFileSort = documentService.getApplyUserSort();
        return  OK_List(applayFileSort);
    }
@@ -509,7 +508,7 @@
                    .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());
        }
        FieldSetEntity applayInfo = documentService.getApplayInfo(fse);
        FieldSetEntity applayInfo = documentService.getApplyInfo(fse);
        return OK_List(applayInfo);
    }
src/main/java/com/product/file/service/DocumentService.java
@@ -6,7 +6,6 @@
import com.product.common.collect.ListUtils;
import com.product.common.collect.MapUtils;
import com.product.common.lang.DateUtils;
import com.product.core.config.Global;
import com.product.core.dao.BaseDao;
import com.product.core.entity.DataTableEntity;
import com.product.core.entity.FieldMetaEntity;
@@ -565,7 +564,7 @@
    }
    @Override
    public DataTableEntity getApplayFileSort() throws BaseException {
    public DataTableEntity getApplyFileSort() throws BaseException {
        StringBuilder sb=new StringBuilder();
        sb.append(" SELECT b.* FROM (");
        sb.append(" SELECT t.uuid,t.file_name,s.show_name,t.created_utc_datetime,count(t.uuid) as applyCount");
@@ -581,7 +580,7 @@
    }
    @Override
    public DataTableEntity getApplayUserSort() throws BaseException {
    public DataTableEntity getApplyUserSort() throws BaseException {
        StringBuilder sb=new StringBuilder();
        sb.append(" SELECT a.borrower,a.show_name,a.applayCount,a.applayFileCount ");
        sb.append(" FROM (");
@@ -603,7 +602,7 @@
    }
    @Override
    public FieldSetEntity getApplayInfo(FieldSetEntity fes) throws BaseException {
    public FieldSetEntity getApplyInfo(FieldSetEntity fes) throws BaseException {
        String uuid = fes.getString("uuid");
        FieldSetEntity product_oa_document_borrow = baseDao.getFieldSetEntity("product_oa_document_borrow", uuid, false);
        return product_oa_document_borrow;
src/main/java/com/product/file/service/ide/IDocumentService.java
@@ -135,14 +135,14 @@
   * @throws BaseException
   */
  DataTableEntity getApplayFileSort() throws BaseException;
  DataTableEntity getApplyFileSort() throws BaseException;
  /**
   * 获取借阅人排名
   * @return
   * @throws BaseException
   */
  DataTableEntity getApplayUserSort() throws BaseException;
  DataTableEntity getApplyUserSort() throws BaseException;
  /**
   * 获取借阅详情信息
@@ -150,6 +150,6 @@
   * @return
   * @throws BaseException
   */
  FieldSetEntity getApplayInfo(FieldSetEntity fes) throws  BaseException;
  FieldSetEntity getApplyInfo(FieldSetEntity fes) throws  BaseException;
}