src/main/java/com/product/file/controller/DocumentController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/product/file/service/DocumentService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/product/file/service/ide/IDocumentService.java | ●●●●● 补丁 | 查看 | 原始文档 | 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 @@ -517,7 +516,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); } @@ -529,7 +528,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); } @@ -554,7 +553,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
@@ -625,7 +625,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"); @@ -641,7 +641,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 ("); @@ -663,7 +663,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; }