| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得电力作业计划") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-maintenance-plan:query')") |
| | | public CommonResult<MesProMaintenancePlanRespVO> getPlan(@RequestParam("id") Long id) { |
| | | MesProMaintenancePlanDO plan = planService.getPlan(id); |
| | | if (plan == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得电力作业计划分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-maintenance-plan:query')") |
| | | public CommonResult<PageResult<MesProMaintenancePlanRespVO>> getPlanPage(@Valid MesProMaintenancePlanPageReqVO pageReqVO) { |
| | | PageResult<MesProMaintenancePlanDO> pageResult = planService.getPlanPage(pageReqVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |