| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得应急处置预案") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-emergency-plan:query')") |
| | | public CommonResult<MesProEmergencyPlanRespVO> getPlan(@RequestParam("id") Long id) { |
| | | MesProEmergencyPlanDO plan = planService.getPlan(id); |
| | | return success(plan != null ? BeanUtils.toBean(plan, MesProEmergencyPlanRespVO.class) : null); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得应急处置预案分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-emergency-plan:query')") |
| | | public CommonResult<PageResult<MesProEmergencyPlanRespVO>> getPlanPage(@Valid MesProEmergencyPlanPageReqVO pageReqVO) { |
| | | PageResult<MesProEmergencyPlanDO> pageResult = planService.getPlanPage(pageReqVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |