+ *
* 1. 金额:合同金额排行、回款金额排行
* 2. 个数:签约合同排行、产品销量排行、产品销量排行、新增客户数排行、新增联系人排行、跟进次数排行、跟进客户数排行
+ *
+ * 为什么使用 BigDecimal 的原因:
*/
@Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
- private Integer count;
+ private BigDecimal count;
}
diff --git a/yudao-module-crm/yudao-module-crm-biz/src/main/resources/mapper/statistics/CrmStatisticsRankMapper.xml b/yudao-module-crm/yudao-module-crm-biz/src/main/resources/mapper/statistics/CrmStatisticsRankMapper.xml
index ae84e1d47..abd63f27d 100644
--- a/yudao-module-crm/yudao-module-crm-biz/src/main/resources/mapper/statistics/CrmStatisticsRankMapper.xml
+++ b/yudao-module-crm/yudao-module-crm-biz/src/main/resources/mapper/statistics/CrmStatisticsRankMapper.xml
@@ -12,8 +12,7 @@
#{userId}
- AND order_date between #{times[0],javaType=java.time.LocalDateTime} and
- #{times[1],javaType=java.time.LocalDateTime}
+ AND order_date between #{times[0],javaType=java.time.LocalDateTime} and #{times[1],javaType=java.time.LocalDateTime}
GROUP BY owner_user_id
@@ -27,8 +26,7 @@
#{userId}
- AND return_time between #{times[0],javaType=java.time.LocalDateTime} and
- #{times[1],javaType=java.time.LocalDateTime}
+ AND return_time between #{times[0],javaType=java.time.LocalDateTime} and #{times[1],javaType=java.time.LocalDateTime}
GROUP BY owner_user_id
@@ -42,25 +40,23 @@
#{userId}
- AND order_date between #{times[0],javaType=java.time.LocalDateTime} and
- #{times[1],javaType=java.time.LocalDateTime}
+ AND order_date between #{times[0],javaType=java.time.LocalDateTime} and #{times[1],javaType=java.time.LocalDateTime}
GROUP BY owner_user_id
-
@@ -86,8 +81,7 @@
#{userId}
- AND create_time between #{times[0],javaType=java.time.LocalDateTime} and
- #{times[1],javaType=java.time.LocalDateTime}
+ AND create_time between #{times[0],javaType=java.time.LocalDateTime} and #{times[1],javaType=java.time.LocalDateTime}
GROUP BY owner_user_id
@@ -102,8 +96,7 @@
#{userId}
- AND cfur.create_time between #{times[0],javaType=java.time.LocalDateTime} and
- #{times[1],javaType=java.time.LocalDateTime}
+ AND cfur.create_time between #{times[0],javaType=java.time.LocalDateTime} and #{times[1],javaType=java.time.LocalDateTime}
GROUP BY cc.owner_user_id
@@ -118,8 +111,7 @@
#{userId}
- AND cfur.create_time between #{times[0],javaType=java.time.LocalDateTime} and
- #{times[1],javaType=java.time.LocalDateTime}
+ AND cfur.create_time between #{times[0],javaType=java.time.LocalDateTime} and #{times[1],javaType=java.time.LocalDateTime}
GROUP BY cc.owner_user_id