| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得计划班次") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-plan:query')") |
| | | public CommonResult<MesCalPlanShiftRespVO> getPlanShift(@RequestParam("id") Long id) { |
| | | MesCalPlanShiftDO planShift = planShiftService.getPlanShift(id); |
| | | return success(BeanUtils.toBean(planShift, MesCalPlanShiftRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得计划班次分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-plan:query')") |
| | | public CommonResult<PageResult<MesCalPlanShiftRespVO>> getPlanShiftPage(@Valid MesCalPlanShiftPageReqVO pageReqVO) { |
| | | PageResult<MesCalPlanShiftDO> pageResult = planShiftService.getPlanShiftPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesCalPlanShiftRespVO.class)); |
| | |
| | | @GetMapping("/list-by-plan") |
| | | @Operation(summary = "获得指定排班计划的班次列表") |
| | | @Parameter(name = "planId", description = "排班计划编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-plan:query')") |
| | | public CommonResult<List<MesCalPlanShiftRespVO>> getPlanShiftListByPlan(@RequestParam("planId") Long planId) { |
| | | List<MesCalPlanShiftDO> list = planShiftService.getPlanShiftListByPlanId(planId); |
| | | return success(BeanUtils.toBean(list, MesCalPlanShiftRespVO.class)); |