mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	crm:code review 公海客户分析
This commit is contained in:
		| @@ -9,7 +9,6 @@ GET {{baseUrl}}/crm/statistics-customer/get-customer-summary-by-user?deptId=100& | ||||
| Authorization: Bearer {{token}} | ||||
| tenant-id: {{adminTenentId}} | ||||
|  | ||||
|  | ||||
| # == 2. 客户跟进次数分析 == | ||||
| ### 2.1 客户跟进次数分析(按日期) | ||||
| GET {{baseUrl}}/crm/statistics-customer/get-follow-up-summary-by-date?deptId=100&interval=2×[0]=2024-01-01 00:00:00×[1]=2024-01-29 23:59:59 | ||||
| @@ -21,14 +20,12 @@ GET {{baseUrl}}/crm/statistics-customer/get-follow-up-summary-by-user?deptId=100 | ||||
| Authorization: Bearer {{token}} | ||||
| tenant-id: {{adminTenentId}} | ||||
|  | ||||
|  | ||||
| # == 3. 客户跟进方式分析 == | ||||
| ### 3.1 客户跟进方式分析 | ||||
| GET {{baseUrl}}/crm/statistics-customer/get-follow-up-summary-by-type?deptId=100&interval=2×[0]=2023-01-01 00:00:00×[1]=2024-12-12 23:59:59 | ||||
| Authorization: Bearer {{token}} | ||||
| tenant-id: {{adminTenentId}} | ||||
|  | ||||
|  | ||||
| # == 4. 客户成交周期 == | ||||
| ### 4.1 合同摘要信息(客户转化率页面) | ||||
| GET {{baseUrl}}/crm/statistics-customer/get-contract-summary?deptId=100&interval=2×[0]=2023-01-01 00:00:00×[1]=2024-12-12 23:59:59 | ||||
|   | ||||
| @@ -69,14 +69,14 @@ public class CrmStatisticsCustomerController { | ||||
|     } | ||||
|  | ||||
|     @GetMapping("/get-pool-summary-by-date") | ||||
|     @Operation(summary = "获取客户成交周期(按日期)") | ||||
|     @Operation(summary = "获取公海客户分析(按日期)") | ||||
|     @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") | ||||
|     public CommonResult<List<CrmStatisticsPoolSummaryByDateRespVO>> getPoolSummaryByDate(@Valid CrmStatisticsCustomerReqVO reqVO) { | ||||
|         return success(customerService.getPoolSummaryByDate(reqVO)); | ||||
|     } | ||||
|  | ||||
|     @GetMapping("/get-pool-summary-by-user") | ||||
|     @Operation(summary = "获取客户成交周期(按用户)") | ||||
|     @Operation(summary = "获取公海客户分析(按用户)") | ||||
|     @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") | ||||
|     public CommonResult<List<CrmStatisticsPoolSummaryByUserRespVO>> getPoolSummaryByUser(@Valid CrmStatisticsCustomerReqVO reqVO) { | ||||
|         return success(customerService.getPoolSummaryByUser(reqVO)); | ||||
|   | ||||
| @@ -138,7 +138,6 @@ public interface CrmStatisticsCustomerMapper { | ||||
|         return voList; | ||||
|     } | ||||
|  | ||||
|  | ||||
|     /** | ||||
|      * 公海领取客户数(按日期) | ||||
|      * | ||||
|   | ||||
| @@ -16,6 +16,7 @@ | ||||
|          GROUP BY time | ||||
|     </select> | ||||
|  | ||||
|     <!-- TODO 芋艿:应该不用过滤时间 --> | ||||
|     <select id="selectCustomerDealCountGroupByDate" | ||||
|             resultType="cn.iocoder.yudao.module.crm.controller.admin.statistics.vo.customer.CrmStatisticsCustomerSummaryByDateRespVO"> | ||||
|         SELECT DATE_FORMAT(customer.create_time, '%Y-%m-%d') AS time, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV