| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得安灯呼叫记录") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-andon-record:query')") |
| | | public CommonResult<MesProAndonRecordRespVO> getAndonRecord(@RequestParam("id") Long id) { |
| | | MesProAndonRecordDO record = andonRecordService.getAndonRecord(id); |
| | | if (record == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得安灯呼叫记录分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-andon-record:query')") |
| | | public CommonResult<PageResult<MesProAndonRecordRespVO>> getAndonRecordPage(@Valid MesProAndonRecordPageReqVO pageReqVO) { |
| | | PageResult<MesProAndonRecordDO> pageResult = andonRecordService.getAndonRecordPage(pageReqVO); |
| | | return success(new PageResult<>(buildRecordRespVOList(pageResult.getList()), pageResult.getTotal())); |