| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得安灯呼叫配置") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-andon-config:query')") |
| | | public CommonResult<MesProAndonConfigRespVO> getAndonConfig(@RequestParam("id") Long id) { |
| | | MesProAndonConfigDO config = andonConfigService.getAndonConfig(id); |
| | | if (config == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得安灯呼叫配置分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-andon-config:query')") |
| | | public CommonResult<PageResult<MesProAndonConfigRespVO>> getAndonConfigPage(@Valid MesProAndonConfigPageReqVO pageReqVO) { |
| | | PageResult<MesProAndonConfigDO> pageResult = andonConfigService.getAndonConfigPage(pageReqVO); |
| | | return success(new PageResult<>(buildConfigRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "获得安灯呼叫配置列表") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-andon-config:query')") |
| | | public CommonResult<List<MesProAndonConfigRespVO>> getAndonConfigList() { |
| | | List<MesProAndonConfigDO> list = andonConfigService.getAndonConfigList(); |
| | | return success(buildConfigRespVOList(list)); |