| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "获得退费单的审批人编号集合,供前端判断是否展示审核按钮") |
| | | @PreAuthorize("@ss.hasPermission('crm:refund:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(refundService.getRefundApproverUserIds()); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得退费单") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('crm:refund:query')") |
| | | public CommonResult<CrmRefundRespVO> getRefund(@RequestParam("id") Long id) { |
| | | return success(refundService.getRefund(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得退费单分页") |
| | | @PreAuthorize("@ss.hasPermission('crm:refund:query')") |
| | | public CommonResult<PageResult<CrmRefundRespVO>> getRefundPage(@Valid CrmRefundPageReqVO pageReqVO) { |
| | | return success(refundService.getRefundPage(pageReqVO)); |
| | | } |
| | |
| | | ExcelUtils.write(response, "退费单.xls", "数据", CrmRefundRespVO.class, list); |
| | | } |
| | | |
| | | } |
| | | } |