Commit 379bd958400c43c3f4844b15b0ec1f4f91fd9ae2
1 parent
2bf5c7a7
CRM:code review 客户分析(客户总量分析)
Showing
7 changed files
with
11 additions
and
6 deletions
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/controller/admin/statistics/CrmStatisticsCustomerController.java
| @@ -18,6 +18,7 @@ import java.util.List; | @@ -18,6 +18,7 @@ import java.util.List; | ||
| 18 | 18 | ||
| 19 | import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; | 19 | import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
| 20 | 20 | ||
| 21 | +// TODO @dhb52:数据统计 员工客户分析,改成“客户统计” | ||
| 21 | @Tag(name = "管理后台 - CRM 数据统计 员工客户分析") | 22 | @Tag(name = "管理后台 - CRM 数据统计 员工客户分析") |
| 22 | @RestController | 23 | @RestController |
| 23 | @RequestMapping("/crm/statistics-customer") | 24 | @RequestMapping("/crm/statistics-customer") |
| @@ -27,6 +28,10 @@ public class CrmStatisticsCustomerController { | @@ -27,6 +28,10 @@ public class CrmStatisticsCustomerController { | ||
| 27 | @Resource | 28 | @Resource |
| 28 | private CrmStatisticsCustomerService customerService; | 29 | private CrmStatisticsCustomerService customerService; |
| 29 | 30 | ||
| 31 | + // TODO @dhb52:建议 getCustomerCount 和 getDealTotalCustomerCount 搞成一个接口; | ||
| 32 | + // 1. 数量接口:【方法:getCustomerSummaryByDate】,VO:CrmStatisticsCustomerSummaryByDateRespVO,然后里面是 time、customerCreateCount customerDealCount | ||
| 33 | + // 2. 按人统计:【方法:getCustomerSummaryByUser】,VO:CrmStatisticsCustomerSummaryByOwnerRespVO,然后里面是 ownerUserId、ownerUserName、customerCreateCount customerDealCount、contractPrice、receivablePrice;客户成交率、未回款金额、回款完成率,交给前端计算; | ||
| 34 | + | ||
| 30 | @GetMapping("/get-total-customer-count") | 35 | @GetMapping("/get-total-customer-count") |
| 31 | @Operation(summary = "获得新建客户数量") | 36 | @Operation(summary = "获得新建客户数量") |
| 32 | @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") | 37 | @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/controller/admin/statistics/CrmStatisticsRankController.java
| @@ -19,7 +19,7 @@ import java.util.List; | @@ -19,7 +19,7 @@ import java.util.List; | ||
| 19 | import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; | 19 | import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | -@Tag(name = "管理后台 - CRM 数据统计 排行榜统计") | 22 | +@Tag(name = "管理后台 - CRM 排行榜统计") |
| 23 | @RestController | 23 | @RestController |
| 24 | @RequestMapping("/crm/statistics-rank") | 24 | @RequestMapping("/crm/statistics-rank") |
| 25 | @Validated | 25 | @Validated |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/controller/admin/statistics/vo/rank/CrmStatisticsRankReqVO.java
| @@ -11,7 +11,7 @@ import java.util.List; | @@ -11,7 +11,7 @@ import java.util.List; | ||
| 11 | 11 | ||
| 12 | import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; | 12 | import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
| 13 | 13 | ||
| 14 | -@Schema(description = "管理后台 - CRM 数据统计 排行榜统计 Request VO") | 14 | +@Schema(description = "管理后台 - CRM 排行榜统计 Request VO") |
| 15 | @Data | 15 | @Data |
| 16 | public class CrmStatisticsRankReqVO { | 16 | public class CrmStatisticsRankReqVO { |
| 17 | 17 |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/controller/admin/statistics/vo/rank/CrmStatisticsRankRespVO.java
| @@ -4,7 +4,7 @@ import io.swagger.v3.oas.annotations.media.Schema; | @@ -4,7 +4,7 @@ import io.swagger.v3.oas.annotations.media.Schema; | ||
| 4 | import lombok.Data; | 4 | import lombok.Data; |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | -@Schema(description = "管理后台 - CRM 数据统计 排行榜统计 Response VO") | 7 | +@Schema(description = "管理后台 - CRM 排行榜统计 Response VO") |
| 8 | @Data | 8 | @Data |
| 9 | public class CrmStatisticsRankRespVO { | 9 | public class CrmStatisticsRankRespVO { |
| 10 | 10 |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/dal/mysql/statistics/CrmStatisticsRankMapper.java
| @@ -7,7 +7,7 @@ import org.apache.ibatis.annotations.Mapper; | @@ -7,7 +7,7 @@ import org.apache.ibatis.annotations.Mapper; | ||
| 7 | import java.util.List; | 7 | import java.util.List; |
| 8 | 8 | ||
| 9 | /** | 9 | /** |
| 10 | - * CRM 数据统计 排行榜统计 Mapper | 10 | + * CRM 排行榜统计 Mapper |
| 11 | * | 11 | * |
| 12 | * @author anhaohao | 12 | * @author anhaohao |
| 13 | */ | 13 | */ |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/statistics/CrmStatisticsRankService.java
| @@ -7,7 +7,7 @@ import cn.iocoder.yudao.module.crm.controller.admin.statistics.vo.rank.CrmStatis | @@ -7,7 +7,7 @@ import cn.iocoder.yudao.module.crm.controller.admin.statistics.vo.rank.CrmStatis | ||
| 7 | import java.util.List; | 7 | import java.util.List; |
| 8 | 8 | ||
| 9 | /** | 9 | /** |
| 10 | - * CRM 数据统计 排行榜统计 Service 接口 | 10 | + * CRM 排行榜统计 Service 接口 |
| 11 | * | 11 | * |
| 12 | * @author anhaohao | 12 | * @author anhaohao |
| 13 | */ | 13 | */ |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/statistics/CrmStatisticsRankServiceImpl.java
| @@ -23,7 +23,7 @@ import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils. | @@ -23,7 +23,7 @@ import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils. | ||
| 23 | import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertSet; | 23 | import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertSet; |
| 24 | 24 | ||
| 25 | /** | 25 | /** |
| 26 | - * CRM 数据统计 排行榜统计 Service 实现类 | 26 | + * CRM 排行榜统计 Service 实现类 |
| 27 | * | 27 | * |
| 28 | * @author anhaohao | 28 | * @author anhaohao |
| 29 | */ | 29 | */ |