|
|
|
@ -1,9 +1,9 @@
|
|
|
|
package cn.iocoder.yudao.module.crm.controller.admin.statistics;
|
|
|
|
package cn.iocoder.yudao.module.crm.controller.admin.statistics;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
|
|
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
|
|
|
import cn.iocoder.yudao.module.crm.controller.admin.statistics.vo.CrmStatisticsRanKRespVO;
|
|
|
|
import cn.iocoder.yudao.module.crm.controller.admin.statistics.vo.rank.CrmStatisticsRankRespVO;
|
|
|
|
import cn.iocoder.yudao.module.crm.controller.admin.statistics.vo.CrmStatisticsRankReqVO;
|
|
|
|
import cn.iocoder.yudao.module.crm.controller.admin.statistics.vo.rank.CrmStatisticsRankReqVO;
|
|
|
|
import cn.iocoder.yudao.module.crm.service.statistics.CrmStatisticsRankingService;
|
|
|
|
import cn.iocoder.yudao.module.crm.service.statistics.CrmStatisticsRankService;
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
import jakarta.annotation.Resource;
|
|
|
|
import jakarta.annotation.Resource;
|
|
|
|
@ -19,69 +19,69 @@ import java.util.List;
|
|
|
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
|
|
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Tag(name = "管理后台 - CRM 排行榜统计")
|
|
|
|
@Tag(name = "管理后台 - CRM 数据统计 排行榜统计")
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
|
@RequestMapping("/crm/statistics-rank")
|
|
|
|
@RequestMapping("/crm/statistics-rank")
|
|
|
|
@Validated
|
|
|
|
@Validated
|
|
|
|
public class CrmStatisticsRankController {
|
|
|
|
public class CrmStatisticsRankController {
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private CrmStatisticsRankingService rankingService;
|
|
|
|
private CrmStatisticsRankService rankService;
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/get-contract-price-rank")
|
|
|
|
@GetMapping("/get-contract-price-rank")
|
|
|
|
@Operation(summary = "获得合同金额排行榜")
|
|
|
|
@Operation(summary = "获得合同金额排行榜")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
public CommonResult<List<CrmStatisticsRanKRespVO>> getContractPriceRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
public CommonResult<List<CrmStatisticsRankRespVO>> getContractPriceRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
return success(rankingService.getContractPriceRank(rankingReqVO));
|
|
|
|
return success(rankService.getContractPriceRank(rankingReqVO));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/get-receivable-price-rank")
|
|
|
|
@GetMapping("/get-receivable-price-rank")
|
|
|
|
@Operation(summary = "获得回款金额排行榜")
|
|
|
|
@Operation(summary = "获得回款金额排行榜")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
public CommonResult<List<CrmStatisticsRanKRespVO>> getReceivablePriceRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
public CommonResult<List<CrmStatisticsRankRespVO>> getReceivablePriceRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
return success(rankingService.getReceivablePriceRank(rankingReqVO));
|
|
|
|
return success(rankService.getReceivablePriceRank(rankingReqVO));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/get-contract-count-rank")
|
|
|
|
@GetMapping("/get-contract-count-rank")
|
|
|
|
@Operation(summary = "获得签约合同数量排行榜")
|
|
|
|
@Operation(summary = "获得签约合同数量排行榜")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
public CommonResult<List<CrmStatisticsRanKRespVO>> getContractCountRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
public CommonResult<List<CrmStatisticsRankRespVO>> getContractCountRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
return success(rankingService.getContractCountRank(rankingReqVO));
|
|
|
|
return success(rankService.getContractCountRank(rankingReqVO));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/get-product-sales-rank")
|
|
|
|
@GetMapping("/get-product-sales-rank")
|
|
|
|
@Operation(summary = "获得产品销量排行榜")
|
|
|
|
@Operation(summary = "获得产品销量排行榜")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
public CommonResult<List<CrmStatisticsRanKRespVO>> getProductSalesRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
public CommonResult<List<CrmStatisticsRankRespVO>> getProductSalesRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
return success(rankingService.getProductSalesRank(rankingReqVO));
|
|
|
|
return success(rankService.getProductSalesRank(rankingReqVO));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/get-customer-count-rank")
|
|
|
|
@GetMapping("/get-customer-count-rank")
|
|
|
|
@Operation(summary = "获得新增客户数排行榜")
|
|
|
|
@Operation(summary = "获得新增客户数排行榜")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
public CommonResult<List<CrmStatisticsRanKRespVO>> getCustomerCountRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
public CommonResult<List<CrmStatisticsRankRespVO>> getCustomerCountRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
return success(rankingService.getCustomerCountRank(rankingReqVO));
|
|
|
|
return success(rankService.getCustomerCountRank(rankingReqVO));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/get-contacts-count-rank")
|
|
|
|
@GetMapping("/get-contacts-count-rank")
|
|
|
|
@Operation(summary = "获得新增联系人数排行榜")
|
|
|
|
@Operation(summary = "获得新增联系人数排行榜")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
public CommonResult<List<CrmStatisticsRanKRespVO>> getContactsCountRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
public CommonResult<List<CrmStatisticsRankRespVO>> getContactsCountRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
return success(rankingService.getContactsCountRank(rankingReqVO));
|
|
|
|
return success(rankService.getContactsCountRank(rankingReqVO));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/get-follow-count-rank")
|
|
|
|
@GetMapping("/get-follow-count-rank")
|
|
|
|
@Operation(summary = "获得跟进次数排行榜")
|
|
|
|
@Operation(summary = "获得跟进次数排行榜")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
public CommonResult<List<CrmStatisticsRanKRespVO>> getFollowCountRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
public CommonResult<List<CrmStatisticsRankRespVO>> getFollowCountRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
return success(rankingService.getFollowCountRank(rankingReqVO));
|
|
|
|
return success(rankService.getFollowCountRank(rankingReqVO));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/get-follow-customer-count-rank")
|
|
|
|
@GetMapping("/get-follow-customer-count-rank")
|
|
|
|
@Operation(summary = "获得跟进客户数排行榜")
|
|
|
|
@Operation(summary = "获得跟进客户数排行榜")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
@PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')")
|
|
|
|
public CommonResult<List<CrmStatisticsRanKRespVO>> getFollowCustomerCountRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
public CommonResult<List<CrmStatisticsRankRespVO>> getFollowCustomerCountRank(@Valid CrmStatisticsRankReqVO rankingReqVO) {
|
|
|
|
return success(rankingService.getFollowCustomerCountRank(rankingReqVO));
|
|
|
|
return success(rankService.getFollowCustomerCountRank(rankingReqVO));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|