| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得班组") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-team:query')") |
| | | public CommonResult<MesCalTeamRespVO> getTeam(@RequestParam("id") Long id) { |
| | | MesCalTeamDO team = teamService.getTeam(id); |
| | | return success(BeanUtils.toBean(team, MesCalTeamRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得班组分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-team:query')") |
| | | public CommonResult<PageResult<MesCalTeamRespVO>> getTeamPage(@Valid MesCalTeamPageReqVO pageReqVO) { |
| | | PageResult<MesCalTeamDO> pageResult = teamService.getTeamPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesCalTeamRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "获得班组列表") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-team:query')") |
| | | public CommonResult<List<MesCalTeamRespVO>> getTeamList() { |
| | | List<MesCalTeamDO> list = teamService.getTeamList(); |
| | | return success(BeanUtils.toBean(list, MesCalTeamRespVO.class)); |