Commit b05178d2cdd0b32a45752e3f3bc79a3ad9693d59
1 parent
214259ff
feat(crm): 新增 CRM 统计分析与业绩目标能力
- 新增客户公海、销售漏斗、产品销售、合同汇总等统计分析 - 新增业绩目标设置与业绩达成统计 - 新增客户负责人变更记录能力,并用于公海客户分析 - 完善销售漏斗阶段统计、商机转化率和明细筛选 - 补充产品分类、时间范围、空金额等统计边界处理 - 新增相关前端页面、API 与数据库菜单配置
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-crm/src/main/resources/mapper/statistics/CrmStatisticsProductMapper.xml
| @@ -62,7 +62,7 @@ | @@ -62,7 +62,7 @@ | ||
| 62 | LEFT JOIN crm_product_category AS category ON product.category_id = category.id AND category.deleted = 0 | 62 | LEFT JOIN crm_product_category AS category ON product.category_id = category.id AND category.deleted = 0 |
| 63 | WHERE <include refid="ProductStatisticsWhere"/> | 63 | WHERE <include refid="ProductStatisticsWhere"/> |
| 64 | GROUP BY category.id, category.name | 64 | GROUP BY category.id, category.name |
| 65 | - ORDER BY product_total_price DESC, product_count DESC | 65 | + ORDER BY product_count DESC, product_total_price DESC |
| 66 | </select> | 66 | </select> |
| 67 | 67 | ||
| 68 | </mapper> | 68 | </mapper> |