| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.device.dto.DeviceLedgerDto; |
| | |
| | | |
| | | |
| | | @GetMapping("getDeviceLedger") |
| | | @Operation(summary = "获取设备台账") |
| | | public AjaxResult getDeviceLedger() { |
| | | return AjaxResult.success(deviceLedgerService.list(new QueryWrapper<DeviceLedger>().lambda() |
| | | .select(DeviceLedger::getId, DeviceLedger::getDeviceName, DeviceLedger::getDeviceModel))); |
| | | @Operation(summary = "获取设备台账(巡检选择设备,支持按区域筛选)") |
| | | public AjaxResult getDeviceLedger(Long areaId) { |
| | | return AjaxResult.success(deviceLedgerService.selectDeviceOptions(areaId)); |
| | | } |
| | | |
| | | @GetMapping("scanDevice") |