| | |
| | | import com.ruoyi.system.dto.EditHiddenDangerResponsiblePersonDto; |
| | | import com.ruoyi.system.model.*; |
| | | import com.ruoyi.system.model.Record; |
| | | import com.ruoyi.system.query.DeviceListQuery; |
| | | import com.ruoyi.system.query.HiddenDangerListQuery; |
| | | import com.ruoyi.system.service.*; |
| | | import com.ruoyi.system.vo.HiddenDangerListVo; |
| | | import com.ruoyi.system.vo.HiddenDangerVo; |
| | | import com.ruoyi.system.vo.ProblemVo; |
| | | import com.ruoyi.system.vo.ProjectVo; |
| | | import com.ruoyi.system.vo.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.var; |
| | |
| | | return R.ok(record); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "获取设备列表",response = DeviceListVo.class) |
| | | @PostMapping("/getDeviceList") |
| | | public R<Page<DeviceListVo>> getDeviceList(@RequestBody @Valid DeviceListQuery query) { |
| | | Page<DeviceListVo> page = new Page<>(query.getPageNum(), query.getPageSize()); |
| | | List<DeviceListVo> list = deviceUsageService.getDeviceList(page,query); |
| | | page.setRecords(list); |
| | | return R.ok(page); |
| | | } |
| | | } |