From c5dfc09145e4e10f99dbf388a4a1433b5c2973e5 Mon Sep 17 00:00:00 2001
From: BAOLH <baolh@yhzhg.cn>
Date: Tue, 10 Nov 2026 01:40:38 +0000
Subject: [PATCH] 适应高版本Nodejs对应修改(二)
---
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/contract/rest/ContractController.java | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/contract/rest/ContractController.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/contract/rest/ContractController.java
index 178223a..0b42b62 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/contract/rest/ContractController.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/contract/rest/ContractController.java
@@ -22,6 +22,7 @@
import me.zhengjie.modules.contract.domain.Contract;
import me.zhengjie.modules.contract.service.ContractService;
import me.zhengjie.modules.contract.service.dto.ContractQueryCriteria;
+import me.zhengjie.utils.SecurityUtils;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
@@ -51,6 +52,7 @@
@GetMapping(value = "/download/old")
@PreAuthorize("@el.check('contract:download')")
public void exportContract(HttpServletResponse response, ContractQueryCriteria criteria) throws IOException {
+ criteria.setCompanys(SecurityUtils.getCompanyIds());
contractService.download(contractService.queryAll(criteria), response);
}
@@ -192,4 +194,20 @@
public void downloadContractAttachments(HttpServletResponse response, Long id) {
contractService.downloadContractAttachments(id, response);
}
+
+ @Log("统计合同信息")
+ @ApiOperation("统计合同信息")
+ @GetMapping(value = "/statistics/{type}")
+ @PreAuthorize("@el.check('contract:list')")
+ public ResponseEntity<Object> contractStatistics(ContractQueryCriteria criteria, @PathVariable Integer type){
+ return new ResponseEntity<>(contractService.contractStatistics(criteria, type), HttpStatus.OK);
+ }
+
+ @Log("导出数据(表格内容)")
+ @ApiOperation("导出数据(表格内容)")
+ @GetMapping(value = "/downloadTable")
+ @PreAuthorize("@el.check('contract:download')")
+ public void exportContractTable(HttpServletResponse response, ContractQueryCriteria criteria) throws IOException {
+ contractService.downloadTable(contractService.queryAll(criteria), response);
+ }
}
\ No newline at end of file
--
Gitblit v1.9.3