| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得排班计划") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-plan:query')") |
| | | public CommonResult<MesCalPlanRespVO> getPlan(@RequestParam("id") Long id) { |
| | | MesCalPlanDO plan = planService.getPlan(id); |
| | | return success(BeanUtils.toBean(plan, MesCalPlanRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得排班计划分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-plan:query')") |
| | | public CommonResult<PageResult<MesCalPlanRespVO>> getPlanPage(@Valid MesCalPlanPageReqVO pageReqVO) { |
| | | PageResult<MesCalPlanDO> pageResult = planService.getPlanPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesCalPlanRespVO.class)); |