CRM:code review 客户分析(客户总量分析)
This commit is contained in:
parent
2bf5c7a701
commit
379bd95840
@ -18,6 +18,7 @@ import java.util.List;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||
|
||||
// TODO @dhb52:数据统计 员工客户分析,改成“客户统计”
|
||||
@Tag(name = "管理后台 - CRM 数据统计 员工客户分析")
|
||||
@RestController
|
||||
@RequestMapping("/crm/statistics-customer")
|
||||
@ -27,6 +28,10 @@ public class CrmStatisticsCustomerController {
|
||||
@Resource
|
||||
private CrmStatisticsCustomerService customerService;
|
||||
|
||||
// TODO @dhb52:建议 getCustomerCount 和 getDealTotalCustomerCount 搞成一个接口;
|
||||
// 1. 数量接口:【方法:getCustomerSummaryByDate】,VO:CrmStatisticsCustomerSummaryByDateRespVO,然后里面是 time、customerCreateCount customerDealCount
|
||||
// 2. 按人统计:【方法:getCustomerSummaryByUser】,VO:CrmStatisticsCustomerSummaryByOwnerRespVO,然后里面是 ownerUserId、ownerUserName、customerCreateCount customerDealCount、contractPrice、receivablePrice;客户成交率、未回款金额、回款完成率,交给前端计算;
|
||||
|
||||
@GetMapping("/get-total-customer-count")
|
||||
@Operation(summary = "获得新建客户数量")
|
||||
@PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')")
|
||||
|
@ -19,7 +19,7 @@ import java.util.List;
|
||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||
|
||||
|
||||
@Tag(name = "管理后台 - CRM 数据统计 排行榜统计")
|
||||
@Tag(name = "管理后台 - CRM 排行榜统计")
|
||||
@RestController
|
||||
@RequestMapping("/crm/statistics-rank")
|
||||
@Validated
|
||||
|
@ -11,7 +11,7 @@ import java.util.List;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - CRM 数据统计 排行榜统计 Request VO")
|
||||
@Schema(description = "管理后台 - CRM 排行榜统计 Request VO")
|
||||
@Data
|
||||
public class CrmStatisticsRankReqVO {
|
||||
|
||||
|
@ -4,7 +4,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@Schema(description = "管理后台 - CRM 数据统计 排行榜统计 Response VO")
|
||||
@Schema(description = "管理后台 - CRM 排行榜统计 Response VO")
|
||||
@Data
|
||||
public class CrmStatisticsRankRespVO {
|
||||
|
||||
|
@ -7,7 +7,7 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* CRM 数据统计 排行榜统计 Mapper
|
||||
* CRM 排行榜统计 Mapper
|
||||
*
|
||||
* @author anhaohao
|
||||
*/
|
||||
|
@ -7,7 +7,7 @@ import cn.iocoder.yudao.module.crm.controller.admin.statistics.vo.rank.CrmStatis
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* CRM 数据统计 排行榜统计 Service 接口
|
||||
* CRM 排行榜统计 Service 接口
|
||||
*
|
||||
* @author anhaohao
|
||||
*/
|
||||
|
@ -23,7 +23,7 @@ import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.
|
||||
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertSet;
|
||||
|
||||
/**
|
||||
* CRM 数据统计 排行榜统计 Service 实现类
|
||||
* CRM 排行榜统计 Service 实现类
|
||||
*
|
||||
* @author anhaohao
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user