From c40ea1eaa6ac4eb6d4ca0d4c86492fe205535160 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 17 Feb 2024 18:14:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20CRM=EF=BC=9Acode=20review=20?= =?UTF-8?q?=E5=95=86=E4=B8=9A=E6=99=BA=E8=83=BD=E7=9A=84=E6=8E=92=E8=A1=8C?= =?UTF-8?q?=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crm/dal/mysql/bi/CrmBiRankingMapper.java | 1 + .../crm/service/bi/CrmBiRankingService.java | 1 + .../mapper/bi/CrmBiRankingMapper.xml | 22 ++++++++++--------- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/dal/mysql/bi/CrmBiRankingMapper.java b/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/dal/mysql/bi/CrmBiRankingMapper.java index 75dbc7a8a..9b71df7b6 100644 --- a/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/dal/mysql/bi/CrmBiRankingMapper.java +++ b/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/dal/mysql/bi/CrmBiRankingMapper.java @@ -77,4 +77,5 @@ public interface CrmBiRankingMapper { * @return 跟进客户数排行榜 */ List selectFollowCustomerCountRank(CrmBiRankReqVO rankReqVO); + } diff --git a/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/bi/CrmBiRankingService.java b/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/bi/CrmBiRankingService.java index 5520911a3..2ff28d385 100644 --- a/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/bi/CrmBiRankingService.java +++ b/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/bi/CrmBiRankingService.java @@ -76,4 +76,5 @@ public interface CrmBiRankingService { * @return 跟进客户数排行榜 */ List getFollowCustomerCountRank(CrmBiRankReqVO rankReqVO); + } diff --git a/yudao-module-crm/yudao-module-crm-biz/src/main/resources/mapper/bi/CrmBiRankingMapper.xml b/yudao-module-crm/yudao-module-crm-biz/src/main/resources/mapper/bi/CrmBiRankingMapper.xml index f8e5737a5..10030e0a7 100644 --- a/yudao-module-crm/yudao-module-crm-biz/src/main/resources/mapper/bi/CrmBiRankingMapper.xml +++ b/yudao-module-crm/yudao-module-crm-biz/src/main/resources/mapper/bi/CrmBiRankingMapper.xml @@ -13,7 +13,7 @@ #{userId} AND order_date between #{times[0],javaType=java.time.LocalDateTime} and - #{times[1],javaType=java.time.LocalDateTime} + #{times[1],javaType=java.time.LocalDateTime} GROUP BY owner_user_id @@ -28,7 +28,7 @@ #{userId} AND return_time between #{times[0],javaType=java.time.LocalDateTime} and - #{times[1],javaType=java.time.LocalDateTime} + #{times[1],javaType=java.time.LocalDateTime} GROUP BY owner_user_id @@ -43,7 +43,7 @@ #{userId} AND order_date between #{times[0],javaType=java.time.LocalDateTime} and - #{times[1],javaType=java.time.LocalDateTime} + #{times[1],javaType=java.time.LocalDateTime} GROUP BY owner_user_id @@ -59,7 +59,7 @@ #{userId} AND order_date between #{times[0],javaType=java.time.LocalDateTime} and - #{times[1],javaType=java.time.LocalDateTime} + #{times[1],javaType=java.time.LocalDateTime} GROUP BY owner_user_id @@ -73,7 +73,7 @@ #{userId} AND create_time between #{times[0],javaType=java.time.LocalDateTime} and - #{times[1],javaType=java.time.LocalDateTime} + #{times[1],javaType=java.time.LocalDateTime} GROUP BY owner_user_id @@ -87,14 +87,15 @@ #{userId} AND create_time between #{times[0],javaType=java.time.LocalDateTime} and - #{times[1],javaType=java.time.LocalDateTime} + #{times[1],javaType=java.time.LocalDateTime} GROUP BY owner_user_id