| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得业务附件配置") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('bpm:business-attach:query')") |
| | | public CommonResult<BpmBusinessAttachRespVO> getBusinessAttach(@RequestParam("id") Long id) { |
| | | BpmBusinessAttachDO attach = businessAttachService.getBusinessAttach(id); |
| | | return success(BeanUtils.toBean(attach, BpmBusinessAttachRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得业务附件配置分页") |
| | | @PreAuthorize("@ss.hasPermission('bpm:business-attach:query')") |
| | | public CommonResult<PageResult<BpmBusinessAttachRespVO>> getBusinessAttachPage(@Valid BpmBusinessAttachPageReqVO pageReqVO) { |
| | | PageResult<BpmBusinessAttachDO> pageResult = businessAttachService.getBusinessAttachPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, BpmBusinessAttachRespVO.class)); |