| | |
| | | @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())); |
| | |
| | | .build() |
| | | ); |
| | | // 输出 |
| | | ExcelUtils.write(response, "设备点检记录导入模板.xls", "设备点检记录列表", MesDvCheckRecordImportExcelVO.class, list); |
| | | ExcelUtils.writeTemplate(response, "设备点检记录导入模板.xls", "设备点检记录列表", MesDvCheckRecordImportExcelVO.class, list); |
| | | } |
| | | |
| | | @PostMapping("/import") |