| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得赔付/服务补偿单") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:compensation:query')") |
| | | public CommonResult<AfterSaleCompensationRespVO> getCompensation(@RequestParam("id") Long id) { |
| | | AfterSaleCompensationDO compensation = compensationService.getCompensation(id); |
| | | return success(compensation != null ? BeanUtils.toBean(compensation, AfterSaleCompensationRespVO.class, vo -> { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得赔付/服务补偿单分页") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:compensation:query')") |
| | | public CommonResult<PageResult<AfterSaleCompensationRespVO>> getCompensationPage(@Valid AfterSaleCompensationPageReqVO pageReqVO) { |
| | | PageResult<AfterSaleCompensationDO> pageResult = compensationService.getCompensationPage(pageReqVO); |
| | | List<AfterSaleCompensationRespVO> list = buildCompensationDetailList(pageResult.getList()); |
| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "获得审批人编号集合,供前端判断是否展示审核按钮") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:compensation:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(compensationService.getCompensationApproverUserIds()); |
| | | } |