| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得设备点检记录明细") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-check-record:query')") |
| | | public CommonResult<MesDvCheckRecordLineRespVO> getCheckRecordLine(@RequestParam("id") Long id) { |
| | | MesDvCheckRecordLineDO line = checkRecordLineService.getCheckRecordLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得设备点检记录明细分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-check-record:query')") |
| | | public CommonResult<PageResult<MesDvCheckRecordLineRespVO>> getCheckRecordLinePage(@Valid MesDvCheckRecordLinePageReqVO pageReqVO) { |
| | | PageResult<MesDvCheckRecordLineDO> pageResult = checkRecordLineService.getCheckRecordLinePage(pageReqVO); |
| | | return success(new PageResult<>(buildCheckRecordLineRespVOList(pageResult.getList()), pageResult.getTotal())); |