| | |
| | | |
| | | @GetMapping("/get-funnel-summary") |
| | | @Operation(summary = "获取销售漏斗统计数据", description = "用于【销售漏斗】页面的【销售漏斗分析】") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-funnel:query')") |
| | | public CommonResult<CrmStatisticFunnelSummaryRespVO> getFunnelSummary(@Valid CrmStatisticsFunnelReqVO reqVO) { |
| | | return success(funnelService.getFunnelSummary(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-business-summary-by-end-status") |
| | | @Operation(summary = "获取商机结束状态统计", description = "用于【销售漏斗】页面的【销售漏斗分析】") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-funnel:query')") |
| | | public CommonResult<List<CrmStatisticsBusinessSummaryByEndStatusRespVO>> getBusinessSummaryByEndStatus(@Valid CrmStatisticsFunnelReqVO reqVO) { |
| | | return success(funnelService.getBusinessSummaryByEndStatus(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-business-summary-by-date") |
| | | @Operation(summary = "获取新增商机分析(按日期)", description = "用于【销售漏斗】页面") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-funnel:query')") |
| | | public CommonResult<List<CrmStatisticsBusinessSummaryByDateRespVO>> getBusinessSummaryByDate(@Valid CrmStatisticsFunnelReqVO reqVO) { |
| | | return success(funnelService.getBusinessSummaryByDate(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-business-inversion-rate-summary-by-date") |
| | | @Operation(summary = "获取商机转化率分析(按日期)", description = "用于【销售漏斗】页面") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-funnel:query')") |
| | | public CommonResult<List<CrmStatisticsBusinessInversionRateSummaryByDateRespVO>> getBusinessInversionRateSummaryByDate(@Valid CrmStatisticsFunnelReqVO reqVO) { |
| | | return success(funnelService.getBusinessInversionRateSummaryByDate(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-business-page-by-date") |
| | | @Operation(summary = "获得商机分页(按日期)", description = "用于【销售漏斗】页面的【新增商机分析】") |
| | | @PreAuthorize("@ss.hasPermission('crm:business:query')") |
| | | public CommonResult<PageResult<CrmBusinessRespVO>> getBusinessPageByDate(@Valid CrmStatisticsFunnelReqVO pageVO) { |
| | | PageResult<CrmBusinessDO> pageResult = funnelService.getBusinessPageByDate(pageVO); |
| | | return success(new PageResult<>(buildBusinessDetailList(pageResult.getList()), pageResult.getTotal())); |