liding
2025-03-28 9fce552f48c898b61fa1cb9be73aa4ae7dfc5bb4
cnas-device/src/main/java/com/ruoyi/device/controller/DeviceBorrowController.java
@@ -30,7 +30,7 @@
    //分页
    @PostMapping("/deviceBorrowPage")
    @GetMapping("/deviceBorrowPage")
    public Result deviceBorrowPage(Page page, DeviceBorrow deviceBorrow) throws Exception {
        return Result.success(deviceBorrowService.deviceBorrowPage(page, deviceBorrow));
    }
@@ -48,13 +48,13 @@
    }
    //删除
    @PostMapping("/deleteDeviceBorrow")
    @DeleteMapping("/deleteDeviceBorrow")
    public Result deleteDeviceBorrow(Integer id) {
        return Result.success(deviceBorrowService.removeById(id));
    }
    //导出
    @PostMapping("/deviceBorrowExport")
    @GetMapping("/deviceBorrowExport")
    public Result deviceBorrowExport(@RequestParam("deviceId") Integer deviceId, HttpServletResponse response) throws Exception {
        List<DeviceBorrow> deviceBorrows = deviceBorrowService.getDeviceBorrowBydeviceId(deviceId);
        response.setHeader("requestType", "excel");