| | |
| | | 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; |
| | |
| | | @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); |
| | | } |
| | | |