| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得作业替代方案") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-alternative-plan:query')") |
| | | public CommonResult<MesProAlternativePlanRespVO> getPlan(@RequestParam("id") Long id) { |
| | | MesProAlternativePlanDO plan = planService.getPlan(id); |
| | | return success(plan != null ? BeanUtils.toBean(plan, MesProAlternativePlanRespVO.class) : null); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得作业替代方案分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-alternative-plan:query')") |
| | | public CommonResult<PageResult<MesProAlternativePlanRespVO>> getPlanPage(@Valid MesProAlternativePlanPageReqVO pageReqVO) { |
| | | PageResult<MesProAlternativePlanDO> pageResult = planService.getPlanPage(pageReqVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |