| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得设备点检记录") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-check-record:query')") |
| | | public CommonResult<MesDvCheckRecordRespVO> getCheckRecord(@RequestParam("id") Long id) { |
| | | MesDvCheckRecordDO checkRecord = checkRecordService.getCheckRecord(id); |
| | | if (checkRecord == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得设备点检记录分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-check-record:query')") |
| | | public CommonResult<PageResult<MesDvCheckRecordRespVO>> getCheckRecordPage(@Valid MesDvCheckRecordPageReqVO pageReqVO) { |
| | | PageResult<MesDvCheckRecordDO> pageResult = checkRecordService.getCheckRecordPage(pageReqVO); |
| | | return success(new PageResult<>(buildCheckRecordRespVOList(pageResult.getList()), pageResult.getTotal())); |