baolhyhzhg
2024-12-23 4a337086ad99317b359ab026aaec3b3ecb6fd21d
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/contract/rest/ContractController.java
@@ -194,4 +194,12 @@
    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);
    }
}