| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得点检保养方案") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-check-plan:query')") |
| | | public CommonResult<MesDvCheckPlanRespVO> getCheckPlan(@RequestParam("id") Long id) { |
| | | MesDvCheckPlanDO checkPlan = checkPlanService.getCheckPlan(id); |
| | | return success(BeanUtils.toBean(checkPlan, MesDvCheckPlanRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得点检保养方案分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-check-plan:query')") |
| | | public CommonResult<PageResult<MesDvCheckPlanRespVO>> getCheckPlanPage(@Valid MesDvCheckPlanPageReqVO pageReqVO) { |
| | | PageResult<MesDvCheckPlanDO> pageResult = checkPlanService.getCheckPlanPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesDvCheckPlanRespVO.class)); |