Sfoglia il codice sorgente

FIX: 进线转化统计字段修复

xdd 2 giorni fa
parent
commit
385d63255f

+ 2 - 2
fs-service/src/main/resources/mapper/statis/FsStatisQwWatchMapper.xml

@@ -413,8 +413,8 @@
             company_user_id,
             qw_user_id,
             COUNT(DISTINCT log_id) as send_count,
-            COUNT(DISTINCT sop_id,camp_period_time) as period_person_count,
-            COUNT(DISTINCT qw_external_contact_id) as period_count,
+            COUNT(DISTINCT sop_id) as period_count,
+            COUNT(DISTINCT CASE WHEN sop_id is not null then qw_external_contact_id END) as period_person_count,
             COUNT(DISTINCT CASE WHEN log_type = 3 THEN log_id END) as not_register_count,
             COUNT(DISTINCT CASE WHEN log_type = 2 THEN log_id END) as completed_count,
             COUNT(DISTINCT CASE WHEN (log_type = 4 OR log_type = 1) THEN log_id END) as interrupt_count