baolhyhzhg
2024-12-18 e86f13d1522e8ca93983d81d123c10a33dc785b5
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);
    }